Skip to content

Commit 12f4e9f

Browse files
committed
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
1 parent 08d8214 commit 12f4e9f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/boards/mekotronics-r58x-pro.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function post_config_uboot_target__extra_configs_for_meko_r58x_pro_mainline_envi
7575

7676
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable preboot & flash user LED in preboot" "info"
7777
run_host_command_logged scripts/config --enable CONFIG_USE_PREBOOT
78-
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
78+
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
7979

8080
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable EFI debugging commands" "info"
8181
run_host_command_logged scripts/config --enable CMD_EFIDEBUG

patch/kernel/archive/rockchip64-6.19/dt/rk3588-mekotronics-r58x-pro.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
leds {
5757
compatible = "gpio-leds";
5858

59-
fourg_led: fourg-led {
59+
wifi_led: wifi-led {
6060
color = <LED_COLOR_ID_GREEN>;
61-
label = "4G";
61+
label = "WIFI";
6262
gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
6363
pinctrl-names = "default";
64-
pinctrl-0 = <&fourg_led_pin>;
64+
pinctrl-0 = <&wifi_led_pin>;
6565
};
6666

6767
lan_led: lan-led {
@@ -546,7 +546,7 @@
546546
};
547547

548548
gpio-leds {
549-
fourg_led_pin: fourg-led-pin {
549+
wifi_led_pin: wifi-led-pin {
550550
rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
551551
};
552552

0 commit comments

Comments
 (0)