forked from bluerobotics/BlueOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install: overlays: add spi0-led.dts for neopixel support on navigator…
… board
- Loading branch information
1 parent
2b2c613
commit 5d6fee8
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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>; | ||
}; | ||
}; | ||
}; |