Note the help text from "pinctrl -h"You're using output 17 of the GPIO chip, but the mapping between gpiochips and the deprecated /sysfs/class/gpio and gpio_ kernel functions is now internal to the kernel, and generally starts at 512 for the first chip to register.
gpiochip_find_base - https://github.com/raspberrypi/linux/bl ... #L202-L225
I've just found the TODO for deprecating the global GPIO numberspace - https://github.com/raspberrypi/linux/bl ... /gpio/TODO
Code:
WARNING! pinctrl set writes directly to the GPIO control registersignoring whatever else may be using them (such as Linux drivers) -it is designed as a debug tool, only use it if you know what youare doing and at your own risk!
gpiochip_find_base - https://github.com/raspberrypi/linux/bl ... #L202-L225
I've just found the TODO for deprecating the global GPIO numberspace - https://github.com/raspberrypi/linux/bl ... /gpio/TODO
Statistics: Posted by 6by9 — Tue Jul 09, 2024 12:57 pm