Skip to content
Snippets Groups Projects
  1. Oct 06, 2022
  2. Aug 09, 2022
  3. Jun 25, 2022
  4. Apr 09, 2022
    • Jean-François Milants's avatar
      Fix SPI and GPIO handling to support recent kernels. · 5a7f4930
      Jean-François Milants authored
      This driver was previously using the SYSFS API to interact with GPIO. This API is deprecated since kernel 4.8 but was still working up to 5.10. The SYSFS API was removed in more recent version and is now replaced by a character device interface.
      
      In this commit, I replaced calls to the old SYSFS API to this new GPIO interface. I also added a small test program to test GPIO (display info about all GPIO chips and tries to detect the gpiochip corresponding to the CH341 of the USB adapter).
      
      Also, the initialization of the SPI bus now binds to spidev driver since this is needed to make /dev/spidevx.y available since kernel 5.1.
      5a7f4930
  5. Jan 01, 2022
Loading