This post was finally edited by john7 at 2022-9-20 19:23
I have Orange Pi PC 2.
I enable SPI
armbian-config->System->Hardware->spidev
in boot/armbianEnv.txt
overlays=spi-spidev param_spidev_spi_bus=0
Now I see the device - ls -l /dev spidev0.0
But when I try to send nothing heppens, I don't see any clock on SPI0_CLK pin.
So I check dtc -i dtb -o dts boot/overlay/sun50i-h5-spi-spidev.dtbo And I see - /dts-v1/;
- / {
- compatible = "allwinner,sun50i-h5";
- fragment@0 {
- target-path = "/aliases";
- __overlay__ {
- spi0 = "/soc/spi@1c68000";
- spi1 = "/soc/spi@1c69000";
- };
- };
- fragment@1 {
- target = <0xffffffff>;
- __overlay__ {
- #address-cells = <0x01>;
- #size-cells = <0x00>;
- spidev@0 {
- compatible = "armbian,spi-dev";
- status = "disabled";
- reg = <0x00>;
- spi-max-frequency = <0xf4240>;
- };
- };
- };
- fragment@2 {
- target = <0xffffffff>;
- __overlay__ {
- #address-cells = <0x01>;
- #size-cells = <0x00>;
- spidev@0 {
- compatible = "armbian,spi-dev";
- status = "disabled";
- reg = <0x00>;
- spi-max-frequency = <0xf4240>;
- };
- };
- };
- __fixups__ {
- spi0 = "/fragment@1:target:0";
- spi1 = "/fragment@2:target:0";
- };
- };
Copy code
status = "disabled"; ? It means the device is disabled? Why?
|