Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

Interfacing (DSI, CSI, I2C, etc.) • Re: use of gpio lines in kernel modules in RPi5

$
0
0
Many thanks for your fast response and attention. The gpib_bitbang driver is a kernel module, part of the linux-gpib project, that implements a driver for the GPIB bus in a Raspberry Pi computer. It uses 16 (or 20) gpio lines to handle the GPIB bus data and command lines. Allocation of the used gpio lines is performed through calls to gpio_request_one(), then line descriptors are obtained by gpio_to_desc(). Thereafter lines are used with all the standard set of functions gpiod_*(). Four lines are converted for interrupt with gpiod_to_irq(). All this worked fine with RPi4. With RPi5 it fails at the very first request to gpio_request_one(). I hope this description is a satisfactory answer to your question.

Statistics: Posted by marcarla — Wed Mar 13, 2024 6:55 pm



Viewing all articles
Browse latest Browse all 3923

Trending Articles