Hi,
I'm using an imx8qm based carrier board which I would like to control M41_GPIO0_01 and M41_GPIO0_00.
How do I map M41_GPIO0 to a userspace "gpiochip"?
The QM RM should have the details you are looking for:
https://www.nxp.com/webapp/Download?colCode=IMX8QMRM
Look at Chapter 9 for the Chip IO configuration.
As mentioned above, the SCFW actually owns the control so you will need to also review the changes required there. See this guide:
SCFW porting kits can be downloaded here:
Thanks,
Lydia
Hi, @johnbeckett_sp
You probably want to familiarize yourself with the System Controller firmware and how it handles the signals. Start here:
For your question, you can focus on the Resource Management service page for specifics.
Hope this helps,
Lydia
Hi @lydia_ziegler ,
I probably should have mentioned that this is a custom board, and I am not fully in control of the kernel or the image that it is running.
I've got the following register maps for the gpiochip devices from decompiling the dtb to a dts:
gpio0 = "/bus@5d000000/gpio@5d080000";
gpio1 = "/bus@5d000000/gpio@5d090000";
gpio2 = "/bus@5d000000/gpio@5d0a0000";
gpio3 = "/bus@5d000000/gpio@5d0b0000";
gpio4 = "/bus@5d000000/gpio@5d0c0000";
gpio5 = "/bus@5d000000/gpio@5d0d0000";
gpio6 = "/bus@5d000000/gpio@5d0e0000";
gpio7 = "/bus@5d000000/gpio@5d0f0000";
I've not been able to find a document that contains the map to show me which GPIO device is at which address, and also the details such as pull resister config.