I’m using Variscite board with DART-MX8M-MINI
When I run the command cat /sys/kernel/debug/gpio I get the following output:
root@6c1fd38:/sys/devices/platform/gpio-keys/input/input2/event1# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/30200000.gpio, 30200000.gpio:
gpio-7 ( |eth_phy_pwr ) out lo
gpio-9 ( |phy-reset ) out hi
gpio-11 ( |sysfs ) out lo
gpio-12 ( |spi_imx ) out hi
gpiochip1: GPIOs 32-63, parent: platform/30210000.gpio, 30210000.gpio:
gpio-38 ( |sysfs ) out hi
gpio-39 ( |sysfs ) out hi
gpio-42 ( |sysfs ) out hi
gpio-43 ( |enable ) out hi
gpio-44 ( |cd ) in hi IRQ
gpio-51 ( |VSD_3V3 ) out lo
gpio-52 ( |sysfs ) out lo
gpiochip2: GPIOs 64-95, parent: platform/30220000.gpio, 30220000.gpio:
gpiochip3: GPIOs 96-127, parent: platform/30230000.gpio, 30230000.gpio:
gpio-102 ( |Back ) in hi IRQ
gpio-109 ( |Home ) in hi IRQ
gpio-110 ( |sysfs ) out lo
gpio-111 ( |Down ) in hi IRQ
gpio-112 ( |sysfs ) in lo
gpio-113 ( |eMMC ) out lo
gpio-114 ( |Up ) in hi IRQ
gpiochip4: GPIOs 128-159, parent: platform/30240000.gpio, 30240000.gpio:
gpio-133 ( |sysfs ) out lo
gpio-109 is a button on my dev board and it marked as “Home”, I need it to be under sysfs, is it possible? (I can access it via /dev/input/event1)
If yes, what about ONOFF gpio (available under /dev/input/event0)?
Thanks.