ii_ltd
1
Which system do you use? Android, Ubuntu, OOWOW or others?
Android
Which version of system do you use? Please provide the version of the system here:
13
Please describe your issue below:
When I setup GPIO using
echo 24 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio24/direction
Are there any internal pullups here? When i read the floating GPIO, I always read “1”. Pulling this pin to GND outputs “0”.
# Floating pin
cat /sys/class/gpio/gpio24/value # -> 1
# Tied to GND
cat /sys/class/gpio/gpio24/value # -> 0
I ask this in case I should put my own pullups on these pins.
Thanks
numbqq
2
Hello, you need to set i2C6 to disabled status to use this gpio
xiong@builder:~/work/edge2-14/kernel-6.1$ git diff
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
index e387433f788d..3ca3e23deff8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts
@@ -444,7 +444,7 @@ &i2c5 {
};
&i2c6 {
- status = "okay";
+ status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&i2c6m0_xfer>;

ii_ltd
5
OK, I can see there is pullup, thank you