Skip to content

Instantly share code, notes, and snippets.

@joshperry
Created July 27, 2016 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshperry/aa501d3311bae3135a98f4e29fea2b70 to your computer and use it in GitHub Desktop.
Save joshperry/aa501d3311bae3135a98f4e29fea2b70 to your computer and use it in GitHub Desktop.
// Definitions for SC16IS750 UART on spi0.0
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
/* disable spi-dev for spi0.0 */
fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
spidev@0{
status = "disabled";
};
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
sc16is752: sc16is752@0 {
compatible = "nxp,sc16is752";
reg = <0>; /* CE0 */
spi-max-frequency = <4000000>;
interrupt-parent = <&gpio>;
interrupts = <21 0x2>; /* gpio 21, falling edge */
clocks = <&klok>;
klok: klok {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <1843200>;
};
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment