Does Edge2 IO Board Have Internal Pullup?

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

Hello @ii_ltd

You can check the Edge2-IO schematic here: https://dl.khadas.com/products/add-ons/edge2-io/schematic/edge2-io_sch_v12_221216.pdf

@william.lin please help to check.

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>;

image

OK, I can see there is pullup, thank you