Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Device Tree • Re: Pi5 - overlay for enabling 3 SPI interfaces and using RP1 PWM controller

$
0
0
That's spi0-1cs - it enables SPI0 with 1 chip select, i.e. chip select 0. spidev1 makes no sense when there is only no chip select 1.
that means I've used an incorrect overlay as my starting point and can simply get rid of

Code:

fragment@2 {target = <&spidev1>;__overlay__ {status = "disabled";};};
I need to make sure that only GPIO8 is enabled as CS for SPI0, because GPIO7 is required by SPI3.

During debugging the issue with my overlay I've changed the SPI0 related fragments already as per below

Code:

fragment@10 {target = <&spi0>;frag11: __overlay__ {/* needed to avoid dtc warning */#address-cells = <1>;#size-cells = <0>;cs-gpios = <&gpio 8 1>;status = "okay";spidev0_0: spidev@0 {compatible = "spidev";reg = <0>;      /* CE0 */#address-cells = <1>;#size-cells = <0>;spi-max-frequency = <125000000>;status = "okay";};};};__overrides__ {cs0_pin_0 = <&frag11>,"cs-gpios:4";cs0_spidev_0 = <&spidev0_0>,"status";};
and added below to config,txt, but that also did not bring the expected results - or is this incorrect as well (as SPI0_CE1 remained enable viewtopic.php?p=2196554#p2196306)

Code:

dtparam=cs0_pin_0=0,cs0_spidev_0=off

Statistics: Posted by aBUGSworstnightmare — Fri Feb 23, 2024 5:58 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles