Part Number: TDA4VM-Q1
Other Parts Discussed in Thread: TCA9539
my Application is compiled with libgpiod 1.6.3 with ti-kernel 6.1.X.
For the case of pin where pad is modified to work as GPIO . Libgpiod api are working fine.
gpioget and gpioset.
For the case of IO expander libgpiod api (gpioset and gpioget)are not working. Eventhough DTS are changed to list Gpio as extra chip .
Attaching log for more clarity.
------------------------------------------------------------------------------------------------------------
root@j784s4-ospas120:~# gpiodetect
gpiochip0 [42110000.gpio] (89 lines)
gpiochip1 [600000.gpio] (66 lines)
gpiochip2 [0-0075] (16 lines) <expander>
-------------------------------------------------------------------------------------------------
root@j784s4-ospas120:~# ls /sys/class/i2c-dev/i2c-0/device/0-0075/
driver name subsystem uevent
gpiochip2 of_node supplier:platform:600000.gpio
modalias power supplier:regulator:regulator.0
---------------------------------------------------------------------------------------------------
root@j784s4-ospas120:~# gpioget gpiochip2 0
gpioget: error reading GPIO values: Invalid argument
---------------------------------------------------------------------------------------------------
root@j784s4-ospas120:~# gpioinfo gpiochip2
gpiochip2 - 16 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed unused input active-high
line 8: unnamed unused input active-high
line 9: unnamed unused input active-high
line 10: unnamed unused input active-high
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: unnamed unused input active-high
line 15: unnamed unused input active-high
-----------------------------------------------------------------------------------------------------------