Jump to content

Falcounet

Members
  • Posts

    10
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Falcounet got a reaction from going 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  
  2. Like
    Falcounet got a reaction from mdrmdr 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  
  3. Like
    Falcounet got a reaction from nagaudio 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  
  4. Like
    Falcounet got a reaction from TCB13 in 5.15.25 breaks SPI on NanoPi Neo and does not create /dev/spidev0.0   
    Do you have any hint on what to look at to try to fix that issue ?
    I might invest some time on it (and hopefully also get some more knowledge about these things)
  5. Like
    Falcounet got a reaction from TCB13 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  
  6. Like
    Falcounet got a reaction from TRS-80 in 5.15.25 breaks SPI on NanoPi Neo and does not create /dev/spidev0.0   
    Do you have any hint on what to look at to try to fix that issue ?
    I might invest some time on it (and hopefully also get some more knowledge about these things)
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines