-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add device tree fragment to add SPI CS lines on BCM pins 5 and 20
- Loading branch information
1 parent
f7edab0
commit 63c3250
Showing
1 changed file
with
41 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,41 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
|
||
/ { | ||
compatible = "brcm,bcm2835"; | ||
|
||
fragment@0 { | ||
target = <&spi0_cs_pins>; | ||
frag0: __overlay__ { | ||
brcm,pins = <8 7 5 20>; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spi0>; | ||
frag1: __overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cs-gpios = <&gpio 8 1>, <&gpio 7 1>, <&gpio 5 1>, <&gpio 20 1>; | ||
status = "okay"; | ||
|
||
spidev0_2: spidev@2 { | ||
compatible = "spidev"; | ||
reg = <2>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
spi-max-frequency = <125000000>; | ||
}; | ||
|
||
spidev0_3: spidev@3 { | ||
compatible = "spidev"; | ||
reg = <3>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
spi-max-frequency = <125000000>; | ||
}; | ||
}; | ||
}; | ||
}; |