Hello, everybody.
I'm working on an imx6q, I'm trying to configure the PAD
MX6QDL_PAD_EIM_DA15__EIM_AD15
as a gpio in the devicetree to use it as digital input.
After reading imx6q-pinfunc.h and detecting
#define MX6QDL_PAD_EIM_DA15__EIM_AD15 0x150 0x464 0x000 0x0 0x0
I saw that the gpio function corresponds to the 0x5 functionality, so I configured the devicetree as below:
gpiogrp {
fsl,pins = <0x150 0x464 0x000 0x5 0x0 0x0 0x1b0b0>
linux,phandle = <0x49>;
phandle = <0x49>;
};
gpio@020a4000 {
compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";
reg = <0x20a4000 0x4000>;
interrupts = <0x0 0x46 0x4 0x0 0x47 0x4>;
gpio-controller;
interrupt-controller;
linux,phandle = <0x47>;
phandle = <0x47>;
};
gpiocust {
pinctrl-names = "default";
pinctrl-0 = <0x49>;
status = "okay";
gpios = <0x47 0x0f 0x01>;
};
But the read value is always 0;
What am I doing wrong?
Thanks for your help.