Jump to content

nagaudio

Members
  • Posts

    13
  • Joined

  • Last visited

Reputation Activity

  1. Like
    nagaudio reacted to Falcounet in 5.15.25 breaks SPI on NanoPi Neo and does not create /dev/spidev0.0   
    Doing what is explained in this post make it to work but spidev isn't anymore controlled through /boot/armbianEnv.conf file but the DT.
     
    I used the "quick and dirty" fix for now by using "rohm,dh2228fv" which is already in the spidev_dt_ids[] list and avoid me creating a new build with a patch to modify drivers/spi/spidev.c
     
    So basically, I used armian-config to edit the Device Tree (System => Dtc),
    Browse the DT over soc => spi@1c68000
    And I added these lines :
    spi@1c68000 { ... spidev@0x00 { compatible = "rohm,dh2228fv"; spi-max-frequency = <100000000>; reg = <0x00>; }; }  
    And the same for the second SPI controller :
     
    spi@1c69000 { ... spidev@0x00 { compatible = "rohm,dh2228fv"; spi-max-frequency = <100000000>; reg = <0x00>; }; }  
    I also had to remove the spidev stuff from /boot/armbianEnv.conf (No spi-spidev overlay)

    This way, I get two SPI devices and the SBC is working again with 5.15 kernel :
     
    # ls /dev/ | grep spi spidev0.0 spidev1.0  
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines