up square support for kernel 4.4.x

asilvaasilva New Member Posts: 13

Any member of dev team here? where can i get the driver to support gpio in kernel 4.4.x?

right now i can't export any pin win the gpio..

echo 27 > /sys/class/gpio/export
-bash: echo: write error: Invalid argument

Although i can communicate with gpio hat S.USV UP using i2c...

i suspect that could be because of missing drivers/platform/x86/up_board.c that is available for linux kernel 4.9.x. but i can't use this kernel because there is an issue with network encapsulated traffic and vpns.

Thanks for the help.



  • asilvaasilva New Member Posts: 13

    if it helps others, i got it working without special drivers.. i was using the wrong gpio number... in my case it was 434.

    ls -l /sys/class/gpio/

    total 0
    --w------- 1 root root 4096 May 2 10:21 export
    lrwxrwxrwx 1 root root 0 May 2 10:21 gpiochip434 -> ../../devices/platform/INT3452:00/gpio/gpiochip434
    --w------- 1 root root 4096 May 2 10:21 unexport

Sign In or Register to comment.