Hi,
You’re right, the documentation for Linux customization (especially MDM kernel/BSP details) is quite poor.
For GPIO numbers matching (Sierra WP7xxx versus Qualcomm MDM9xxx), you can extract the structure from source code by using this command line at the root of your “yocto
” folder:
awk 'BEGIN { in_struct=0; } /^.*ext_gpio_wp\[\]=.*/ { in_struct=1; } /^};/ && in_struct { print; in_struct=0; } in_struct == 1 { print; }' kernel/drivers/gpio/gpiolib-sysfs.c
Result obtained from WP76xx release 10.1.1 (SWI9X07Y_02.18.06.00):
WP76xx | MDM9607 |
---|---|
2 | 38 |
4 | 30 |
7 | 16 |
8 | 58 |
13 | 76 |
21 | 8 |
22 | 9 |
23 | 10 |
24 | 11 |
25 | 51 |
28 | 45 |
29 | 46 |
30 | 47 |
31 | 48 |
32 | 77 |
33 | 78 |
35 | 37 |
42 | 79 |
BR
Jay