Hi,
we have a module where exporting GPIOs doesn’t work for most of the GPIOs:
root@swi-mdm9x28-wp:~# echo 42 > /sys/class/gpio/export
root@swi-mdm9x28-wp:~# echo 7 > /sys/class/gpio/export
sh: write error: Device or resource busy
root@swi-mdm9x28-wp:~# echo 8 > /sys/class/gpio/export
sh: write error: Device or resource busy
root@swi-mdm9x28-wp:~# echo 13 > /sys/class/gpio/export
sh: write error: Device or resource busy
root@swi-mdm9x28-wp:~# echo 41 > /sys/class/gpio/export
sh: write error: No such device
sylog:
[ 290.354295] gpio_map_name_to_num: find GPIO 79
[ 306.054822] gpio_map_name_to_num: find GPIO 16
[ 306.054861] gpio-16 (sysfs): gpiod_request: status -16
[ 306.054878] export_store: status -16
[ 309.584440] gpio_map_name_to_num: find GPIO 58
[ 309.584470] gpio-58 (sysfs): gpiod_request: status -16
[ 309.584484] export_store: status -16
[ 313.857413] gpio_map_name_to_num: find GPIO 76
[ 313.857452] gpio-76 (sysfs): gpiod_request: status -16
[ 313.857468] export_store: status -16
[ 320.562841] gpio_map_name_to_num: find GPIO 204
[ 320.562877] gpio-204 (?): gpiod_request: status -517
[ 320.562894] export_store: status -19
On all other modules this worked without a problem.
WIOCFG:
AT+WIOCFG?
+WIOCFG: 2,16,0,0,1,0,0
+WIOCFG: 4,3,0,0,1,0,0
+WIOCFG: 6,0,0,0,1,0,0
+WIOCFG: 7,16,0,0,1,0,0
+WIOCFG: 8,16,0,0,1,0,0
+WIOCFG: 13,16,0,0,1,0,0
+WIOCFG: 21,16,0,0,1,0,0
+WIOCFG: 22,16,0,0,1,0,0
+WIOCFG: 23,16,0,0,1,0,0
+WIOCFG: 24,16,0,0,1,0,0
+WIOCFG: 25,16,0,0,1,0,0
+WIOCFG: 28,16,0,0,1,0,0
+WIOCFG: 29,16,0,0,1,0,0
+WIOCFG: 30,16,0,0,1,0,0
+WIOCFG: 31,16,0,0,1,0,0
+WIOCFG: 32,16,0,0,1,0,0
+WIOCFG: 33,16,0,0,1,0,0
+WIOCFG: 35,16,0,0,1,0,0
+WIOCFG: 42,16,0,0,1,0,0
OK
What could cause this behavior?
Thx!