rockchip64-6.19: mekotronics-r58x-pro: fix LED swap

- LED on gpio3 RK_PC5 is actually the WIFI led (not 4G)
- 4G LED is routed into the mini-pci slot and not SoC-controllable
This commit is contained in:
Ricardo Pardini 2026-02-23 11:35:12 -03:00
parent 08d821437c
commit 12f4e9f91b
2 changed files with 5 additions and 5 deletions

View File

@ -75,7 +75,7 @@ function post_config_uboot_target__extra_configs_for_meko_r58x_pro_mainline_envi
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable preboot & flash user LED in preboot" "info"
run_host_command_logged scripts/config --enable CONFIG_USE_PREBOOT
run_host_command_logged scripts/config --set-str CONFIG_PREBOOT "'led 4G on; sleep 0.1; led LAN on; sleep 0.1; led PWR on; sleep 0.1; led 4G off; sleep 0.1; led LAN off; sleep 0.1;'" # double quotes required due to run_host_command_logged's quirks
run_host_command_logged scripts/config --set-str CONFIG_PREBOOT "'led WIFI on; sleep 0.1; led LAN on; sleep 0.1; led PWR on; sleep 0.1; led WIFI off; sleep 0.1; led LAN off; sleep 0.1;'" # double quotes required due to run_host_command_logged's quirks
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable EFI debugging commands" "info"
run_host_command_logged scripts/config --enable CMD_EFIDEBUG

View File

@ -56,12 +56,12 @@
leds {
compatible = "gpio-leds";
fourg_led: fourg-led {
wifi_led: wifi-led {
color = <LED_COLOR_ID_GREEN>;
label = "4G";
label = "WIFI";
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&fourg_led_pin>;
pinctrl-0 = <&wifi_led_pin>;
};
lan_led: lan-led {
@ -546,7 +546,7 @@
};
gpio-leds {
fourg_led_pin: fourg-led-pin {
wifi_led_pin: wifi-led-pin {
rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
};