Hi, everyone!

I can change the GPIO function mux by 3 files:  pinctrl-ipq8064.c, pinctrl-capri.c, qcom-ipq8064-ap148.dtsi.

After changing these files, for example, I can make GPIO55 to control the LED light, value 1 for on, 0 for off.

By the same way, I want to control GPIO12 to output 1, but it keeps 0 all time. In the earlier hardware design, GPIO12 is a I2C_SDA pin, and GPIO13 is a I2C_SCL pin. We changed this, and use both GPIO12 and GPIO13 as common GPIO pin. How to solve this problem?

Thanks!


Command by serial COM port:

cd /sys/class/gpio
echo 12 > export 
echo out > gpio12/direction 
echo 1 > gpio12/value                 <----- change it to 1.

cat gpio12/value
0                           <--- it's still 0, not changed to 1. 

GPIO_12 has been used as:

GPIO_IN_OUT(12)
GSBI4_1
PCIE2_PWREN_N_A
PCIE1_PWREN_N_A 
PCIE3_PWREN_N 
PCIE2_PWREN_A 
PCIE1_PWREN_A
PCIE3_PWREN 

I am sure I keep the only one function: GPIO_IN_OUT(12), and the others are disabled.

(Last edited by liveonlinux on 4 Jul 2017, 11:21)