I used the GPIO tools to see what GPIO I have available on the Verdin Plus SOM however the nomenclature of the Dahlia eval board, the Verdin SOM and the what is coming up on the gpioinfo are not lining up. ADC is the same way.
For example - In the Dahlia x20 connector has a GPIO_3 which goes to pin 210 on the SOM. Pin 210 is GPIO_3. Here’s were it gets weird. For the Verdin I only have gpiochip0 and it has 32 lines. 0 to 31. I figure GPIO_3 would be either line 3 or maybe 4. Nope it Line 5.
Another example - In the Dahlia x20 connector it has ADC_1 to ADC_4. When I go to read the ADC by channel 0 to 3. I would expect ADC_1 to be channel 0 and ADC_2 to be channel 1. Nope, ADC_1 is channel 3 and ADC_4 is channel 0.
Question- How do I find out how the GPIO is mapped to the line numbers with out experimentation. DTS overlays maybe?