how does a gpiochipNN is selected or set in gpiolib kernel?

Published: 13/10/2019
how does a gpiochipNN is selected or set in gpiolib kernel?
Source: UNIX.STACKEXCHANGE.COM

I am looking into kernel gpiolib and gpio-xilinx.c. I see that my device has only cat /sys/kernel/debug/gpio gpiochip0: GPIOs 960-1023, I am confused on how this 960 has arrived. How does the kernel knows it has to set this number 960? I can't see this number 960 in the device tree. From where this 960 number comes from? /sys/class/gpio/gpiochip960 I am expecting to set - gpio237 gpiochip192 gpio

Read more
Related news
Comment
FACEBOOK