Code:
compatible = "brcm,bcm2835";Code:
compatible = "brcm,bcm2712";made a short test, don't know if it's 'nice' or even working o.k. but results look as expected on first view
Code:
/* * spi0-4cs-pi5-overlay.dts * aBUGSwowrstnightmare *//dts-v1/;/plugin/;/ {compatible = "brcm,bcm2712";fragment@0 {target = <&spi0>;frag1: __overlay__ {/* needed to avoid dtc warning */#address-cells = <1>;#size-cells = <0>;cs-gpios = <&gpio 8 1>,<&gpio 7 1>,<&gpio 3 1>, <&gpio 2 1>; num-cs = <4>;status = "okay";spidev0_0: spidev@0 {compatible = "spidev";reg = <0>; /* CE0 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <125000000>;status = "okay";};spidev0_1: spidev@1 {compatible = "spidev";reg = <1>; /* CE1 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <125000000>;status = "okay";};spidev0_2: spidev@2 {compatible = "spidev";reg = <2>; /* CE2 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <125000000>;status = "okay";};spidev0_3: spidev@3 {compatible = "spidev";reg = <3>; /* CE3 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <125000000>;status = "okay";};};};};Code:
gpioinfogpiochip0 - 54 lines:line 0: "ID_SDA" unused input active-high line 1: "ID_SCL" unused input active-high line 2: "GPIO2" "spi0 CS3" output active-low [used]line 3: "GPIO3" "spi0 CS2" output active-low [used]line 4: "GPIO4" unused input active-high line 5: "GPIO5" unused input active-high line 6: "GPIO6" unused input active-high line 7: "GPIO7" "spi0 CS1" output active-low [used]line 8: "GPIO8" "spi0 CS0" output active-low [used]line 9: "GPIO9" unused input active-high line 10: "GPIO10" unused input active-high line 11: "GPIO11" unused input active-high .. 0: a3 pu | hi // ID_SDA/GPIO0 = SDA0 1: a3 pu | hi // ID_SCL/GPIO1 = SCL0 2: op dh pu | hi // GPIO2 = output 3: op dh pu | hi // GPIO3 = output 4: no pu | -- // GPIO4 = none 5: no pu | -- // GPIO5 = none 6: no pu | -- // GPIO6 = none 7: op dh pu | hi // GPIO7 = output 8: op dh pu | hi // GPIO8 = output 9: a0 pn | lo // GPIO9 = SPI0_MISO10: a0 pn | lo // GPIO10 = SPI0_MOSI11: a0 pn | lo // GPIO11 = SPI0_SCLK12: no pd | -- // GPIO12 = none13: no pd | -- // GPIO13 = none14: no pd | -- // GPIO14 = none15: no pd | -- // GPIO15 = none16: no pd | -- // GPIO16 = none17: no pd | -- // GPIO17 = none18: no pd | -- // GPIO18 = none19: no pd | -- // GPIO19 = none20: no pd | -- // GPIO20 = none21: no pd | -- // GPIO21 = none22: no pd | -- // GPIO22 = none23: no pd | -- // GPIO23 = none24: no pd | -- // GPIO24 = none25: no pd | -- // GPIO25 = none26: no pd | -- // GPIO26 = none27: no pd | -- // GPIO27 = nonepi@newpi5:/sys/bus/spi/devices $ dirspi0.0spi0.1spi0.2spi0.3spi10.0Statistics: Posted by aBUGSworstnightmare — Tue Jul 29, 2025 1:08 pm