cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/pinmux-pins
cat /sys/kernel/debug/gpio
20251223给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】系统时解决给TF卡写入大文件破坏文件系统的问题
2025/12/23 14:05
缘起:给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】后,需要适配好TF卡。
看 飞凌OK3588-C开发板 的Andoid14的SDK是没有适配TF卡的电源使能GPIO口GPIO2C4的。
去 飞凌OK3588-C开发板 的Linux R4/Buildroot中找到了:TF卡的电源使能GPIO口GPIO2C4的。
去适配好!
想实测一下TF卡的读写速度。
实测写入小文件正常,但是大体积的视频文件写入TF卡之后,插入到WIN10的电脑,直接发现分区都给干没了!
原因待查。初步发现是GPIO口冲突:pin-75 (fe2d0000.mmc) status -22
4线USB2.0通过adb直接拿到电脑上的速度是:31.3 MB/s
写入TF卡的速度略微低于31.3 MB/s【大概为20 MB/s】写入之后TF卡分区丢失^_
25.5606790168
缘起:给飞凌OK3588-C开发板适配Rockchip原厂的Buildroot【linux-6.1】后,需要实测开发板丝印ETH1芯片RTL8211F-CG的网速。
通过ifconfig确认为eth0。
需要使用ov5645的驱动框架来适配LVDS接口的105机芯。
按照以前的经验,首先关闭I2C的读写!
结果,肯定会出现某些地方遗漏的,只能通过编译器来检查问题了!
当你把荣品RD-RK3588开发板重新适配一把,就相当于从头做了一个项目:【荣品RD-RK3588开发板】。
当然,开发板的功能都是好的,你免除了调试的过程,也就没有解决相关硬件出错的经验/机会了!
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# [10006.789736] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[10006.789777] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[10007.032664] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[10007.164419] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 253
[10007.164499] mmc1: new ultra high speed SDR104 SDHC card at address b368
[10007.165131] mmcblk1: mmc1:b368 SDABC 29.1 GiB
[10007.166635] mmcblk1: p1
[10007.257429] FAT-fs (mmcblk1p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[10007.259328] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# cd /sdcard
root@rk3588-buildroot:/sdcard#
root@rk3588-buildroot:/sdcard# ll
total 68
drwxr-xr-x 3 root root 32768 Jan 1 1970 ./
drwxr-xr-x 5 root root 4096 Dec 22 12:22 ../
-rwxr-xr-x 1 root root 0 Dec 23 01:22 0922.txt*
-rwxr-xr-x 1 root root 0 Dec 23 01:22 1.txt*
drwxr-xr-x 2 root root 32768 Dec 22 17:51 'System Volume Information'/
root@rk3588-buildroot:/sdcard#
root@rk3588-buildroot:/sdcard# cd -
/
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# cp png/ /sdcard^C
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# time(cp png/ /sdcard -R)
real 1m2.563s
user 0m0.028s
sys 0m6.650s
root@rk3588-buildroot:/# sync
root@rk3588-buildroot:/# sync
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# time(cp mp4/ /sdcard -R && sync)
real 1m47.455s
user 0m0.020s
sys 0m9.610s
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# [10811.409352] mmc_erase: group start error -110, status 0x800
[10811.411928] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[10811.411954] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[10811.424793] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[10811.446776] mmc1: tried to HW reset card, got error -110
[10811.446803] I/O error, dev mmcblk1, sector 19349504 op 0x3:(DISCARD) flags 0x0 phys_seg 1 prio class 2
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# sync
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# dmesg | grep -i mmc
[ 1.361745] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.verifiedbootstate=orange rw rootwait earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 irqchip.gicv3_pseudo_nmi=0 root=PARTUUID=614e0000-0000 rcupdate.rcu_expedited=1 rcu_nocbs=all androidboot.fwver=ddr-v1.17-3488111f83,spl-v1.13,bl31-v1.46,bl32-v1.16,uboot-12/22/2025
[ 1.365020] Unknown kernel command line parameters "storagemedia=emmc", will be passed to user space.
[ 2.884109] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by fe1b0000.ethernet; cannot claim for fe2d0000.mmc
[ 2.884130] rockchip-pinctrl pinctrl: pin-75 (fe2d0000.mmc) status -22
[ 2.884159] dwmmc_rockchip fe2d0000.mmc: Error applying setting, reverse things back
[ 2.885072] dwmmc_rockchip fe2c0000.mmc: No normal pinctrl state
[ 2.885086] dwmmc_rockchip fe2c0000.mmc: No idle pinctrl state
[ 2.885170] dwmmc_rockchip fe2c0000.mmc: IDMAC supports 32-bit address mode.
[ 2.885191] dwmmc_rockchip fe2c0000.mmc: Using internal DMA controller.
[ 2.885205] dwmmc_rockchip fe2c0000.mmc: Version ID is 270a
[ 2.885243] dwmmc_rockchip fe2c0000.mmc: DW MMC controller at irq 103,32 bit host data width,256 deep fifo
[ 2.885836] dwmmc_rockchip fe2c0000.mmc: Failed getting OCR mask: -22
[ 2.886431] mmc0: CQHCI version 5.10
[ 2.886670] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[ 2.886687] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[ 2.900680] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 2.915861] mmc0: SDHCI controller on fe2e0000.mmc [fe2e0000.mmc] using ADMA
[ 3.023227] mmc0: Command Queue Engine enabled
[ 3.023240] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 3.023543] mmcblk0: mmc0:0001 A3A561 57.6 GiB
[ 3.027387] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[ 3.028068] mmcblk0boot0: mmc0:0001 A3A561 4.00 MiB
[ 3.028548] mmcblk0boot1: mmc0:0001 A3A561 4.00 MiB
[ 3.028993] mmcblk0rpmb: mmc0:0001 A3A561 16.0 MiB, chardev (235:0)
[ 3.256478] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Quota mode: disabled.
[ 3.276128] storagemedia=emmc
[ 3.341789] EXT4-fs (mmcblk0p6): re-mounted. Quota mode: disabled.
[ 3.481264] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Quota mode: disabled.
[ 3.487979] EXT4-fs (mmcblk0p8): mounted filesystem without journal. Quota mode: disabled.
[10006.789736] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[10006.789777] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[10007.032664] mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
[10007.164419] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 253
[10007.164499] mmc1: new ultra high speed SDR104 SDHC card at address b368
[10007.165131] mmcblk1: mmc1:b368 SDABC 29.1 GiB
[10007.166635] mmcblk1: p1
[10007.257429] FAT-fs (mmcblk1p1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[10007.259328] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[10811.409352] mmc_erase: group start error -110, status 0x800
[10811.411928] dwmmc_rockchip fe2c0000.mmc: could not set regulator OCR (-22)
[10811.411954] dwmmc_rockchip fe2c0000.mmc: failed to enable vmmc regulator
[10811.424793] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[10811.446776] mmc1: tried to HW reset card, got error -110
[10811.446803] I/O error, dev mmcblk1, sector 19349504 op 0x3:(DISCARD) flags 0x0 phys_seg 1 prio class 2
root@rk3588-buildroot:/#
Y:\new_disk_4t\wyb\A8\rk3588_linux6.1_release_v1.2.0_20241220\kernel-6.1\arch\arm64\boot\dts\rockchip\rk3588-evb7-v11.dtsi
// 2025/12/19 9:21 wenyuanbo close for I2C2M0
vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
compatible = "regulator-fixed";
//gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
//pinctrl-0 = <&sd_s0_pwr>;
regulator-name = "vcc_3v3_sd_s0";
enable-active-high;
};
修改为:
// 2025/12/19 9:21 wenyuanbo close for I2C2M0
vcc_3v3_sd_s0: vcc-3v3-sd-s0-regulator {
compatible = "regulator-fixed";
//gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
gpio = <&gpio2 RK_PC4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&sd_s0_pwr>;
regulator-name = "vcc_3v3_sd_s0";
enable-active-high;
};
&pinctrl {
sdio-pwrseq {
wifi_enable_h: wifi-enable-h {
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
// 2025/12/19 9:21 wenyuanbo close for I2C2M0
//sdmmc {
// sd_s0_pwr: sd-s0-pwr {
// rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
// };
//};
tp_int {
ft5x06_dsi0_gpio: ft5x06-dsi0-gpio {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>,
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
};
ft5x06_dsi1_gpio: ft5x06-dsi1-gpio {
rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
<3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
修改为:
&pinctrl {
sdio-pwrseq {
wifi_enable_h: wifi-enable-h {
rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
// 2025/12/19 9:21 wenyuanbo close for I2C2M0
sdmmc {
sd_s0_pwr: sd-s0-pwr {
//rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
rockchip,pins = <2 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
tp_int {
ft5x06_dsi0_gpio: ft5x06-dsi0-gpio {
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>,
<3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
};
ft5x06_dsi1_gpio: ft5x06-dsi1-gpio {
rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
<3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
&sdio {
max-frequency = <150000000>;
no-sd;
no-mmc;
bus-width = <4>;
disable-wp;
cap-sd-highspeed;
cap-sdio-irq;
keep-power-in-suspend;
mmc-pwrseq = <&sdio_pwrseq>;
non-removable;
pinctrl-names = "default";
pinctrl-0 = <&sdiom0_pins>;
sd-uhs-sdr104;
status = "okay";
};
&sdmmc {
status = "okay";
vmmc-supply = <&vcc_3v3_sd_s0>;
};
&uart0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart0m2_xfer>;
};
cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/pinmux-pins
cat /sys/kernel/debug/gpio
GPIO口修改之前和正确的进行比对:
正确:
gpiochip2: GPIOs 64-95, parent: platform/fec30000.gpio, gpio2:
gpio-84 ( |vcc3v3-sdmmc ) out hi
异常:
gpiochip2: GPIOs 64-95, parent: platform/fec30000.gpio, gpio2:
gpio-81 ( |vcc3v3-lcd0-n ) out lo
gpio-85 ( |vcc3v3-pcie30 ) out lo
正确:
pin 80 (gpio2-16): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 81 (gpio2-17): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 82 (gpio2-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 83 (gpio2-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (gpio2-20): (MUX UNCLAIMED) gpio2:84
pin 85 (gpio2-21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 86 (gpio2-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
异常:
pin 80 (gpio2-16): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 81 (gpio2-17): fe1b0000.ethernet gpio2:81 function gmac0 group gmac0-rx-bus2
pin 82 (gpio2-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 83 (gpio2-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (gpio2-20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (gpio2-21): (MUX UNCLAIMED) gpio2:85
pin 86 (gpio2-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
配置TF卡的电源使能GPIO口GPIO2C4之后:
正确:
gpiochip2: GPIOs 64-95, parent: platform/fec30000.gpio, gpio2:
gpio-84 ( |vcc-3v3-sd-s0-regula) out hi
gpio-85 ( |vcc3v3-pcie30 ) out lo
异常:
gpiochip2: GPIOs 64-95, parent: platform/fec30000.gpio, gpio2:
gpio-81 ( |vcc3v3-lcd0-n ) out lo
gpio-85 ( |vcc3v3-pcie30 ) out lo
正确:
pin 80 (gpio2-16): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 81 (gpio2-17): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 82 (gpio2-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 83 (gpio2-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (gpio2-20): vcc-3v3-sd-s0-regulator gpio2:84 function sdmmc group sd-s0-pwr
pin 85 (gpio2-21): (MUX UNCLAIMED) gpio2:85
异常:
pin 80 (gpio2-16): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 81 (gpio2-17): fe1b0000.ethernet gpio2:81 function gmac0 group gmac0-rx-bus2
pin 82 (gpio2-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 83 (gpio2-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (gpio2-20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (gpio2-21): (MUX UNCLAIMED) gpio2:85
[BEGIN] 2025/12/23 17:02:38
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
pinmux-pins-buildroot:/# cat /sys/kernel/debug/pinctrl/pinctrl-rockchip-pinctrl/p
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (gpio0-0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (gpio0-1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 2 (gpio0-2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (gpio0-3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (gpio0-4): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-det
pin 5 (gpio0-5): feb20000.spi (GPIO UNCLAIMED) function spi2 group spi2m2-pins
pin 6 (gpio0-6): feb20000.spi (GPIO UNCLAIMED) function spi2 group spi2m2-pins
pin 7 (gpio0-7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (gpio0-8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (gpio0-9): feb20000.spi (GPIO UNCLAIMED) function spi2 group spi2m2-cs0
pin 10 (gpio0-10): wireless-wlan (GPIO UNCLAIMED) function wireless-wlan group wifi-host-wake-irq
pin 11 (gpio0-11): feb20000.spi (GPIO UNCLAIMED) function spi2 group spi2m2-pins
pin 12 (gpio0-12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (gpio0-13): fiq-debugger (GPIO UNCLAIMED) function uart2 group uart2m0-xfer
pin 14 (gpio0-14): fiq-debugger (GPIO UNCLAIMED) function uart2 group uart2m0-xfer
pin 15 (gpio0-15): feaa0000.i2c (GPIO UNCLAIMED) function i2c2 group i2c2m0-xfer
pin 16 (gpio0-16): feaa0000.i2c (GPIO UNCLAIMED) function i2c2 group i2c2m0-xfer
pin 17 (gpio0-17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 18 (gpio0-18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 19 (gpio0-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (gpio0-20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (gpio0-21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 22 (gpio0-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (gpio0-23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 24 (gpio0-24): vbus5v0-typec gpio0:24 function usb-typec group typec5v-pwren0
pin 25 (gpio0-25): fd880000.i2c (GPIO UNCLAIMED) function i2c0 group i2c0m2-xfer
pin 26 (gpio0-26): fd880000.i2c (GPIO UNCLAIMED) function i2c0 group i2c0m2-xfer
pin 27 (gpio0-27): vbus5v0-typec1 gpio0:27 function usb-typec group typec5v-pwren1
pin 28 (gpio0-28): fea90000.i2c (GPIO UNCLAIMED) function i2c1 group i2c1m2-xfer
pin 29 (gpio0-29): fea90000.i2c (GPIO UNCLAIMED) function i2c1 group i2c1m2-xfer
pin 30 (gpio0-30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (gpio0-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (gpio1-0): feb90000.serial (GPIO UNCLAIMED) function uart6 group uart6m1-xfer
pin 33 (gpio1-1): feb90000.serial (GPIO UNCLAIMED) function uart6 group uart6m1-xfer
pin 34 (gpio1-2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (gpio1-3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (gpio1-4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 37 (gpio1-5): fde80000.hdmi (GPIO UNCLAIMED) function hdmi group hdmim0-tx0-hpd
pin 38 (gpio1-6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (gpio1-7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (gpio1-8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (gpio1-9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (gpio1-10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 43 (gpio1-11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 44 (gpio1-12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 45 (gpio1-13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (gpio1-14): fdee0000.hdmirx-controller (GPIO UNCLAIMED) function hdmi group hdmim2-rx-hpdin
pin 47 (gpio1-15): fdee0000.hdmirx-controller (GPIO UNCLAIMED) function hdmi group hdmim2-rx-cec
pin 48 (gpio1-16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (gpio1-17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (gpio1-18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (gpio1-19): fe470000.i2s (GPIO UNCLAIMED) function i2s0 group i2s0-sclk
pin 52 (gpio1-20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 53 (gpio1-21): fe470000.i2s gpio1:53 function i2s0 group i2s0-lrck
pin 54 (gpio1-22): (MUX UNCLAIMED) gpio1:54
pin 55 (gpio1-23): fe470000.i2s (GPIO UNCLAIMED) function i2s0 group i2s0-sdo0
pin 56 (gpio1-24): fec90000.i2c (GPIO UNCLAIMED) function i2c7 group i2c7m0-xfer
pin 57 (gpio1-25): fec90000.i2c (GPIO UNCLAIMED) function i2c7 group i2c7m0-xfer
pin 58 (gpio1-26): feb70000.serial (GPIO UNCLAIMED) function uart4 group uart4m0-xfer
pin 59 (gpio1-27): feb70000.serial (GPIO UNCLAIMED) function uart4 group uart4m0-xfer
pin 60 (gpio1-28): fe470000.i2s (GPIO UNCLAIMED) function i2s0 group i2s0-sdi0
pin 61 (gpio1-29): fdee0000.hdmirx-controller gpio1:61 function hdmirxdet group hdmirx-det-gpio
pin 62 (gpio1-30): fdee0000.hdmirx-controller (GPIO UNCLAIMED) function hdmi group hdmim2-rx-scl
pin 63 (gpio1-31): fdee0000.hdmirx-controller (GPIO UNCLAIMED) function hdmi group hdmim2-rx-sda
pin 64 (gpio2-0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (gpio2-1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (gpio2-2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (gpio2-3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (gpio2-4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (gpio2-5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (gpio2-6): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-bus
pin 71 (gpio2-7): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-bus
pin 72 (gpio2-8): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-clk
pin 73 (gpio2-9): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-bus
pin 74 (gpio2-10): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-bus
pin 75 (gpio2-11): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rgmii-clk
pin 76 (gpio2-12): feac0000.i2c (GPIO UNCLAIMED) function i2c4 group i2c4m1-xfer
pin 77 (gpio2-13): feac0000.i2c (GPIO UNCLAIMED) function i2c4 group i2c4m1-xfer
pin 78 (gpio2-14): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 79 (gpio2-15): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 80 (gpio2-16): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-tx-bus2
pin 81 (gpio2-17): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 82 (gpio2-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 83 (gpio2-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (gpio2-20): vcc-3v3-sd-s0-regulator gpio2:84 function sdmmc group sd-s0-pwr
pin 85 (gpio2-21): (MUX UNCLAIMED) gpio2:85
pin 86 (gpio2-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (gpio2-23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 88 (gpio2-24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 89 (gpio2-25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 90 (gpio2-26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 91 (gpio2-27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 92 (gpio2-28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 93 (gpio2-29): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 94 (gpio2-30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 95 (gpio2-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (gpio3-0): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 97 (gpio3-1): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 98 (gpio3-2): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 99 (gpio3-3): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-bus
pin 100 (gpio3-4): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-clk
pin 101 (gpio3-5): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rgmii-clk
pin 102 (gpio3-6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (gpio3-7): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 104 (gpio3-8): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 105 (gpio3-9): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-rx-bus2
pin 106 (gpio3-10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 107 (gpio3-11): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 108 (gpio3-12): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 109 (gpio3-13): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-tx-bus2
pin 110 (gpio3-14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (gpio3-15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (gpio3-16): feba0000.serial (GPIO UNCLAIMED) function uart7 group uart7m1-xfer
pin 113 (gpio3-17): feba0000.serial (GPIO UNCLAIMED) function uart7 group uart7m1-xfer
pin 114 (gpio3-18): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-miim
pin 115 (gpio3-19): fe1c0000.ethernet (GPIO UNCLAIMED) function gmac1 group gmac1-miim
pin 116 (gpio3-20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 117 (gpio3-21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 118 (gpio3-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 119 (gpio3-23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (gpio3-24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (gpio3-25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (gpio3-26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (gpio3-27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 124 (gpio3-28): febc0000.serial (GPIO UNCLAIMED) function uart9 group uart9m2-xfer
pin 125 (gpio3-29): febc0000.serial (GPIO UNCLAIMED) function uart9 group uart9m2-xfer
pin 126 (gpio3-30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 127 (gpio3-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 128 (gpio4-0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 129 (gpio4-1): (MUX UNCLAIMED) gpio4:129
pin 130 (gpio4-2): (MUX UNCLAIMED) gpio4:130
pin 131 (gpio4-3): fd890000.serial (GPIO UNCLAIMED) function uart0 group uart0m2-xfer
pin 132 (gpio4-4): fd890000.serial (GPIO UNCLAIMED) function uart0 group uart0m2-xfer
pin 133 (gpio4-5): feb60000.serial (GPIO UNCLAIMED) function uart3 group uart3m2-xfer
pin 134 (gpio4-6): feb60000.serial (GPIO UNCLAIMED) function uart3 group uart3m2-xfer
pin 135 (gpio4-7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 136 (gpio4-8): vcc5v0-host gpio4:136 function usb group vcc5v0-host-en
pin 137 (gpio4-9): (MUX UNCLAIMED) gpio4:137
pin 138 (gpio4-10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 139 (gpio4-11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 140 (gpio4-12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 141 (gpio4-13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 142 (gpio4-14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 143 (gpio4-15): fde80000.hdmi (GPIO UNCLAIMED) function hdmi group hdmim0-tx0-scl
pin 144 (gpio4-16): fde80000.hdmi (GPIO UNCLAIMED) function hdmi group hdmim0-tx0-sda
pin 145 (gpio4-17): fde80000.hdmi (GPIO UNCLAIMED) function hdmi group hdmim0-tx0-cec
pin 146 (gpio4-18): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-rx-bus2
pin 147 (gpio4-19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 148 (gpio4-20): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-miim
pin 149 (gpio4-21): fe1b0000.ethernet (GPIO UNCLAIMED) function gmac0 group gmac0-miim
pin 150 (gpio4-22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 151 (gpio4-23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 152 (gpio4-24): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-bus4
pin 153 (gpio4-25): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-bus4
pin 154 (gpio4-26): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-bus4
pin 155 (gpio4-27): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-bus4
pin 156 (gpio4-28): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-cmd
pin 157 (gpio4-29): fe2c0000.mmc (GPIO UNCLAIMED) function sdmmc group sdmmc-clk
pin 158 (gpio4-30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 159 (gpio4-31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/fd8a0000.gpio, gpio0:
gpio-24 ( |vbus5v0-typec ) out lo
gpio-27 ( |vbus5v0-typec1 ) out lo
gpiochip1: GPIOs 32-63, parent: platform/fec20000.gpio, gpio1:
gpio-53 ( |i2s-lrck ) in lo
gpio-54 ( |work ) out lo
gpio-61 ( |hdmirx-det ) in lo IRQ ACTIVE LOW
gpiochip2: GPIOs 64-95, parent: platform/fec30000.gpio, gpio2:
gpio-84 ( |vcc-3v3-sd-s0-regula) out hi
gpio-85 ( |vcc3v3-pcie30 ) out lo
gpiochip3: GPIOs 96-127, parent: platform/fec40000.gpio, gpio3:
gpiochip4: GPIOs 128-159, parent: platform/fec50000.gpio, gpio4:
gpio-129 ( |sbu1-dc ) out lo
gpio-130 ( |sbu2-dc ) out lo
gpio-136 ( |vcc5v0-host ) out hi
gpio-137 ( |enable ) out hi
gpiochip5: GPIOs 509-511, parent: platform/rk806-pinctrl.0.auto, rk806-gpio, can sleep:
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
root@rk3588-buildroot:/#
[END] 2025/12/23 17:02:54