Quantcast
Viewing all articles
Browse latest Browse all 5425

Advanced users • Re: AMA0 RS-485 mode

Note the help text from "pinctrl -h"

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!
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

Statistics: Posted by 6by9 — Tue Jul 09, 2024 12:57 pm



Viewing all articles
Browse latest Browse all 5425

Trending Articles