Hi,
I am running Angstrom on VF50.I need to make some pins as GPIOs ,so i added them to additional gpios in
device tree source file(.dts).
The code i added to vf500 dts source file is:-
&iomuxc {
vf610-colibri{
pinctrl_uart3:uart3group {
fsl,pins = <
VF610_PAD_PTA20__UART3_TX 0x21a2
VF610_PAD_PTA31__UART3_RX 0x21a1
>;
};
pinctrl_uart4:uart4group {
fsl,pins = <
VF610_PAD_PTA28__UART4_TX 0x21a2
VF610_PAD_PTA29__UART4_RX 0x21a1
>;
};
pinctrl_additionalgpio: additionalgpios {
fsl,pins = <
VF610_PAD_PTE2__GPIO_107 0x22ed
VF610_PAD_PTE26__GPIO_131 0x22ed
VF610_PAD_PTE25__GPIO_130 0x22ed
VF610_PAD_PTE17__GPIO_122 0x22ed
VF610_PAD_PTD28__GPIO_66 0x22ed
VF610_PAD_PTE4__GPIO_109 0x22ed
>;
};
The device tree code is compiling fine but i am not able to export the gpio109(VF610_PAD_PTE4__GPIO_109) .
When i am executing “echo 109 > /sys/class/gpio/export” .The following error status is reported.
[ 1338.079352] vf610-pinctrl 40048000.iomuxc: request() failed for pin 109
[ 1338.097935] vf610-pinctrl 40048000.iomuxc: pin-109 (vf610-gpio:109) status -22
-sh: echo: write error: Invalid argument
Please explain how to rectify this error and how to know the error depending upon the status number returned(say 22).
Thanks
Amit