From 1b53372e5b1e4663a283b0d0f340a7fb911ad62f Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Fri, 13 Feb 2026 10:18:56 -0300 Subject: [PATCH] mekotronics-r58x-4g: mainline: LEDs (v1) --- .../dt/rk3588-blueberry-edge-v12-linux.dts | 52 ++++++++++++------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.19/dt/rk3588-blueberry-edge-v12-linux.dts b/patch/kernel/archive/rockchip64-6.19/dt/rk3588-blueberry-edge-v12-linux.dts index 9fb8686b01..7dcecd72db 100644 --- a/patch/kernel/archive/rockchip64-6.19/dt/rk3588-blueberry-edge-v12-linux.dts +++ b/patch/kernel/archive/rockchip64-6.19/dt/rk3588-blueberry-edge-v12-linux.dts @@ -25,35 +25,37 @@ leds { compatible = "gpio-leds"; - power_led: power-led { - label = "power"; - gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; + wifi_led: wifi-led { + label = "wifi"; + gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; pinctrl-names = "default"; - pinctrl-0 = <&power_led_pin>; - }; - -/* @TODO - eth_led: eth-led { - default-state = "off"; - gpios = <&gpio3 0x10 0x00>; + pinctrl-0 = <&wifi_led_pin>; }; hdd_led: hdd-led { - default-state = "off"; - gpios = <&gpio3 0x11 0x00>; + label = "hdd"; + gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + pinctrl-names = "default"; + pinctrl-0 = <&hdd_led_pin>; }; - wifi_led: wifi-led { - default-state = "off"; - gpios = <&gpio3 0x15 0x00>; + eth_led: eth-led { + label = "eth"; + gpios = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + pinctrl-names = "default"; + pinctrl-0 = <ð_led_pin>; }; work_led: work-led { - default-state = "on"; - gpios = <&gpio3 0x0f 0x00>; + label = "work"; + gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + pinctrl-names = "default"; + pinctrl-0 = <&work_led_pin>; }; -*/ }; @@ -423,9 +425,21 @@ // @TODO: gmac1 gpio-leds { - power_led_pin: power-led-pin { + wifi_led_pin: wifi-led-pin { + rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + hdd_led_pin: hdd-led-pin { rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; }; + + eth_led_pin: eth-led-pin { + rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + work_led_pin: work-led-pin { + rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; pcie {