Created
September 14, 2017 16:29
-
-
Save vstk/e0f44d47633b44fc431f54b3457c19d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2708"; | |
/* Enable SPI for Monarco */ | |
fragment@1 { | |
target = <&spi0>; | |
__overlay__ { | |
status = "okay"; | |
}; | |
}; | |
/* Enable I2C for Monarco */ | |
fragment@2 { | |
target = <&i2c_arm>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
mcp7941x@6f { | |
compatible = "microchip,mcp7941x"; | |
reg = <0x6f>; | |
}; | |
ds2482@18 { | |
compatible = "maxim,ds2482"; | |
reg = <0x18>; | |
}; | |
}; | |
}; | |
/* RPi3: switch uart0 (alias serial0) back to HAT pins, uart1 (alias serial1) for bluetooth */ | |
/* We can not reference &uart0_pins and &uart1_pins directly | |
as they are ware not defined before RPi 3, so we define them in &gpio */ | |
fragment@3 { | |
target = <&gpio>; | |
__overlay__ { | |
uart0_pins: uart0_pins { | |
brcm,pins; | |
brcm,function; | |
brcm,pull; | |
}; | |
uart1_pins: uart1_pins { | |
brcm,pins = <32 33>; | |
brcm,function = <2>; | |
brcm,pull = <0 2>; | |
}; | |
}; | |
}; | |
fragment@4 { | |
target = <&uart0>; | |
__overlay__ { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&uart0_pins>; | |
status = "okay"; | |
}; | |
}; | |
fragment@5 { | |
target = <&uart1>; | |
__overlay__ { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&uart1_pins>; | |
status = "okay"; | |
}; | |
}; | |
fragment@6 { | |
target-path = "/aliases"; | |
__overlay__ { | |
serial0 = "/soc/uart@7e201000"; | |
serial1 = "/soc/uart@7e215040"; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment