Skip to content

Commit

Permalink
add device tree fragment to add SPI CS lines on BCM pins 5 and 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano-f-r committed Sep 29, 2024
1 parent f7edab0 commit 63c3250
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions daq-dtoverlay/extended-cs-lines.dts
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>;
};
};
};
};

0 comments on commit 63c3250

Please sign in to comment.