Hi,
With the new Android 7, GPIOs are enabled, we finally have the directory sys/class/gpio !
but we have to export the pin to use them.
I have tried to calculate the GPIO number using the algorithm listed on the following link: http://linux-sunxi.org/GPIO
but without success!
So please what is the GPIO number to be exported for Pin 29 to Pin 33?
The GPIO number list:
<1>Pin 29(GPIOH_7) is 178
<2>Pin 30(GPIOH_6) is 177
<3>Pin 31(GPIOH_9) is 180
<4>Pin 32(GPIOH_8) is 179
<5>Pin 33(GPIOAO_6) is 151
<6>Pin 37(GPIOH5) is 176
Notice: If you want to use the Pin 29~32 , you need to modify two file
1. the file 'kvim.dts' : remove the line 'pinctrl-0 = <&audio_pins>;'
2. the file 'mesongxl.dtsi' : change the status from okay to disable
amlogic-jtag {
compatible = "amlogic, jtag";
status = "okay";
pinctrl-names = "jtag_apao_pins", "jtag_apee_pins";
pinctrl-0 = <&jtag_apao_pins>;
pinctrl-1 = <&jtag_apee_pins>;
};
Hi Terry,
Thank you for your reply!
I tried to export the numbers but whithout success as you see from the following results:
Vim:/sys/class/gpio # echo 178 > export
1|Vim:/sys/class/gpio # ls
export gpiochip145 gpiochip155 unexport
Vim:/sys/class/gpio # cd gpio178
/system/bin/sh: cd: /sys/class/gpio/gpio178: No such file or directory
Should we strat by modifing the file ’ Kvim.dts’ ? Where is it located?