Skip to content

Commit

Permalink
install: overlays: add spi0-led.dts for neopixel support on navigator…
Browse files Browse the repository at this point in the history
… board
  • Loading branch information
jaxxzer authored and patrickelectric committed Mar 26, 2021
1 parent 2b2c613 commit 5d6fee8
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions install/overlays/spi0-led.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// This is a custom device tree overlay for the spi0 peripheral on the
// Raspberry Pi 4. It will configure only the spi0 mosi pin
// (The other spi0 pins will not be driven by the spi0 peripheral,
// and can be used for other functions). This is to be used with
// the Blue Robotics Navigator autopilot hat, where the RGB
// 'neopixel' led data pin is connected to the spi0 mosi pin on the
// Raspberry Pi 4.

/dts-v1/;
/plugin/;


/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&spi0_cs_pins>;
frag0: __overlay__ {
brcm,pins = <>;
};
};

fragment@1 {
target = <&spi0>;
frag1: __overlay__ {
cs-gpios = <>;
status = "okay";
};
};

fragment@2 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};

fragment@3 {
target = <&spi0_pins>;
__overlay__ {
brcm,pins = <10>;
};
};
};

0 comments on commit 5d6fee8

Please sign in to comment.