Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/user # ls -la /sys/class/gpio/
- total 0
- drwxr-xr-x 2 root root 0 Jan 1 01:00 .
- drwxr-xr-x 64 root root 0 Jan 1 01:00 ..
- --w------- 1 root root 4096 Jan 1 01:01 export
- lrwxrwxrwx 1 root root 0 Jan 1 01:01 gpio623 -> ../../devices/platform/soc@0/500000.pinctrl/gpiochip0/gpio/gpio623
- lrwxrwxrwx 1 root root 0 Jan 1 01:00 gpiochip512 -> ../../devices/platform/soc@0/500000.pinctrl/gpio/gpiochip512
- lrwxrwxrwx 1 root root 0 Jan 1 01:00 gpiochip626 -> ../../devices/platform/i2c1/i2c-0/0-0021/gpio/gpiochip626
- lrwxrwxrwx 1 root root 0 Jan 1 01:00 gpiochip634 -> ../../devices/platform/soc@0/1c40000.spmi/spmi-0/0-00/1c40000.spmi:pmic@0:gpio@c000/gpio/gpiochip634
- lrwxrwxrwx 1 root root 0 Jan 1 01:00 gpiochip643 -> ../../devices/platform/soc@0/1c40000.spmi/spmi-0/0-02/1c40000.spmi:pmic@2:gpio@c000/gpio/gpiochip643
- --w------- 1 root root 4096 Jan 1 01:00 unexport
- /home/user # cat /sys/class/gpio/gpio623/value
- 0
- /home/user # echo 1 > /sys/class/gpio/gpio623/value
- /home/user # cat /sys/class/gpio/gpio623/value
- 0
- /home/user # dmesg
- ...
- [ 79.856769] sm6115-tlmm 500000.pinctrl: request pin 111 (GPIO_111) for 500000.pinctrl:623
- [ 79.856803] gpio gpiochip0: Persistence not supported for GPIO 111
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement