Kernel modules: Configure gpio_chips for external GPIO pins

27 Views Asked by At

I am working with FPD Link III. My set-up contains an nvidia platform, deserializer, a serializer and a camera. The camera has GPIO pins and I want to access them using fpd_link (which use i2c commands). Is it possible to configure a gpio_chip for the camera's gpio pins? The problem is that those GPIO pins does not have valid numbers, addresses, ... They are accessed through the serializer registers.

Appreciate your help!

I have already instantiated the gpio_chip and had already defined the get,set,input_direction and output_direction functions but didn't how to map gpio lines of the gpio_chip and the external physical pins I tried gpio_desc but did not work.

0

There are 0 best solutions below