Hi expert!
I am using the SDK8.0 with the GPIO function. I am using SK-TDA4VM board J3 pin 16 as the GPIO0_5, I changed the device tree in file k3-j721e-eaik.dts like following
&main_pmx0 {
gpio0_pins_default: gpio0-pins-default {
pinctrl-single,pins = <
J721E_IOPAD(0x014, PIN_INPUT, 7) /* (AH23) GPIO0_5 */
>;
};
I put the GPIO0_5 shorted circuit to V3.3
Then I typed the terminal command to get the value but the value was still 0
root@j7-evm:/sys/class/gpio# ls -al
total 0
drwxr-xr-x 2 root root 0 Aug 4 22:20 .
drwxr-xr-x 67 root root 0 Aug 4 22:20 ..
--w------- 1 root root 65536 Aug 4 22:21 export
lrwxrwxrwx 1 root root 0 Aug 4 22:21 gpio305 -> ../../devices/platform/bus@100000/600000.gpio/gpiochip1/gpio/gpio305
lrwxrwxrwx 1 root root 0 Aug 4 22:20 gpiochip264 -> ../../devices/platform/bus@100000/601000.gpio/gpio/gpiochip264
lrwxrwxrwx 1 root root 0 Aug 4 22:20 gpiochip300 -> ../../devices/platform/bus@100000/600000.gpio/gpio/gpiochip300
lrwxrwxrwx 1 root root 0 Aug 4 22:20 gpiochip428 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/42110000.gpio/gpio/gpiochip428
--w------- 1 root root 65536 Aug 4 22:20 unexport
root@j7-evm:/sys/class/gpio# cd gpio305
root@j7-evm:/sys/class/gpio/gpio305# echo in > direction
root@j7-evm:/sys/class/gpio/gpio305# cat value
0
root@j7-evm:/sys/class/gpio/gpio305#
the connection is like this