Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /dts-v1/;
- /plugin/;
- / {
- compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
- fragment@0 {
- target = <&spi0>;
- frag0: __overlay__ {
- #address-cells = <1>;
- #size-cells = <0>;
- status = "okay";
- cs-gpios = <&gpio 8 1>, <&gpio 7 1>, <&gpio 20 1>, <&gpio 21 1>;
- spidev@2{
- compatible = "spidev";
- reg = <2>; /* CE2 */
- #address-cells = <1>;
- #size-cells = <0>;
- spi-max-frequency = <500000>;
- };
- spidev@3{
- compatible = "spidev";
- reg = <3>; /* CE3 */
- #address-cells = <1>;
- #size-cells = <0>;
- spi-max-frequency = <500000>;
- };
- };
- };
- fragment@1 {
- target = <&spi0_cs_pins>;
- frag1: __overlay__ {
- brcm,pins = <8 7 20 21>;
- brcm,function = <1>; /* out */
- };
- };
- __overrides__ {
- cs2_pin = <&frag0>,"cs-gpios:28", <&frag1>,"brcm,pins:8";
- cs3_pin = <&frag0>,"cs-gpios:40", <&frag1>,"brcm,pins:12";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement