From 42f3ce54e5506b8aaa0498ad9a9285bdadca90ee Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 13 Nov 2025 23:28:11 +0100 Subject: [PATCH 01/45] Update compatible property for display device --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 0860836d9343..7e5969e8bacd 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -23,7 +23,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd650"; + compatible = "fdhisi,fd650" , "titanmec,tm1650"; reg = <0x24>; digits { From a0f81863fb139758e73b82f0cb41cfbeb28526e3 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:14:58 +0100 Subject: [PATCH 02/45] Update LED configuration in rockchip-rk3318-box - Unexisting Grdi 4 --- .../rockchip-rk3318-box-led-conf6.dtso | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 7e5969e8bacd..65e26afeee31 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -32,22 +32,22 @@ digit@0 { reg = <0>; - segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; + segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { reg = <1>; - segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; + segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { reg = <2>; - segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; + segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ reg = <3>; - segments = <4 3>, <4 4>, <4 5>, <4 0>, <4 1>, <4 2>, <4 6>; + segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; }; @@ -56,25 +56,25 @@ #address-cells = <2>; #size-cells = <0>; - led@1,7 { - reg = <1 7>; + led@0,7 { + reg = <0 7>; function = "usb"; linux,default-trigger = "usb-host"; }; - led@2,7 { - reg = <2 7>; + led@1,7 { + reg = <1 7>; function = "colon"; }; - led@3,7 { - reg = <3 7>; + led@2,7 { + reg = <2 7>; function = LED_FUNCTION_LAN; linux,default-trigger = "stmmac-0:00:link"; }; - led@4,7 { - reg = <4 7>; + led@3,7 { + reg = <3 7>; function = LED_FUNCTION_WLAN; linux,default-trigger = "mmc1"; }; From f146309eb87b7ee832b74c064187f7b28bd5566c Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:35:26 +0100 Subject: [PATCH 03/45] Add IR LED configuration to rockchip-rk3318-box Add configuration for IR LED with heartbeat trigger. --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 65e26afeee31..868596b6ec49 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -9,6 +9,20 @@ * T98_RK3318 (Hongtop H50) */ +&gpio_led { + + working { + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LO>; + linux,default-trigger = "timer"; + }; + ir-led { + label = "ir-led"; + gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; +}; + &{/} { i2c_aux_display: i2c-aux-display { From 4f5bce4a9e228838c6f77c01a6683382595e2735 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:37:22 +0100 Subject: [PATCH 04/45] Fix GPIO active state for LED configuration --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 868596b6ec49..c4aabe40383a 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -12,7 +12,7 @@ &gpio_led { working { - gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LO>; + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; }; ir-led { From 700ad9049b6b3124e6d281a722c1a59195bc5796 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 14 Nov 2025 19:38:27 +0100 Subject: [PATCH 05/45] Modify ir-led configuration in device tree overlay --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index c4aabe40383a..550fffbf1b32 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -15,7 +15,7 @@ gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; linux,default-trigger = "timer"; }; - ir-led { + ir-led { label = "ir-led"; gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; From 95af3a24104af909bf506b651341394be6cfd9d6 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 12:59:30 +0100 Subject: [PATCH 06/45] Added red and blue LED with some triggers - gpio_led and ir-led --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 550fffbf1b32..7a638baa1978 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -13,12 +13,12 @@ working { gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "timer"; + linux,default-trigger = "activity"; }; ir-led { label = "ir-led"; gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "heartbeat"; + linux,default-trigger = "timer"; default-state = "off"; }; }; From 21e544084be943ede9d613fefc78e4f7bf38ab70 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 13:23:26 +0100 Subject: [PATCH 07/45] Update USB LED default trigger and sources Changed the default trigger for USB LED and added trigger sources. --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 7a638baa1978..2bfae19c43cf 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -73,7 +73,8 @@ led@0,7 { reg = <0 7>; function = "usb"; - linux,default-trigger = "usb-host"; + linux,default-trigger = "usbport"; + trigger-sources = <&usb1 0>, <&usb2 0>; }; led@1,7 { @@ -90,7 +91,9 @@ led@3,7 { reg = <3 7>; function = LED_FUNCTION_WLAN; +/* linux,default-trigger = "mmc1"; +*/ }; }; From 1cf23e7094cea0577c6486a1f50ed8a6c7f7bd0e Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 14:46:01 +0100 Subject: [PATCH 08/45] Update trigger sources for USB LED configuration --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 2bfae19c43cf..570d0ef56e50 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -74,7 +74,7 @@ reg = <0 7>; function = "usb"; linux,default-trigger = "usbport"; - trigger-sources = <&usb1 0>, <&usb2 0>; + trigger-sources = <&usb_ehci 0>, <&usb_ohci 0>; }; led@1,7 { From 2bf07f23617838bd35d2583bdb10c27dae4b876d Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:35:36 +0100 Subject: [PATCH 09/45] Update LED configuration in rockchip-rk3318-box overlay --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 570d0ef56e50..95e375a119d6 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -37,7 +37,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd650" , "titanmec,tm1650"; + compatible = "fdhisi,fd650" , "titanmec,tm1650"; /* do not remove tm1650 */ reg = <0x24>; digits { @@ -73,8 +73,10 @@ led@0,7 { reg = <0 7>; function = "usb"; +/* linux,default-trigger = "usbport"; - trigger-sources = <&usb_ehci 0>, <&usb_ohci 0>; +*/ + }; led@1,7 { From 49f240157de58b941f9b40924ff5761505a707c9 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:42:55 +0100 Subject: [PATCH 10/45] Fix compatible property for display in LED config Updated compatible property for display node to reflect correct device version with 8 levels of brightness. --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso index a38abec053f9..e6f7b000fb9f 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -23,7 +23,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd655"; + compatible = "fdhisi,fd6551"; /* it is a fd6551 - 8 levels of brightness are available */ reg = <0x24>; digits { From ce75c82d30e7bf5df5b6eaa4e48c49dd51ebd10b Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:43:50 +0100 Subject: [PATCH 11/45] Add default trigger for LAN LED in device tree --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso | 1 + 1 file changed, 1 insertion(+) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso index e6f7b000fb9f..cc6b0f76b8d2 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -84,6 +84,7 @@ led@0,5 { reg = <0 5>; function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; }; led@0,6 { From e5a3770c032fe560011bd79c3e1382a7a3678bb0 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:45:43 +0100 Subject: [PATCH 12/45] Update device name from RK3318 to RK3328 --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso index cc6b0f76b8d2..308c2182802e 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -6,7 +6,7 @@ #include /** - * T9_RK3318 (T9 Sunwell 3318) + * T9_RK3328 (T9 Sunwell 3328) */ &{/} { From e04bc890eda5f310f3aa6a81f82098182e968aeb Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:46:07 +0100 Subject: [PATCH 13/45] Update device description for T9 RK3328/3318 --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso index 308c2182802e..6200473e7e13 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -6,7 +6,7 @@ #include /** - * T9_RK3328 (T9 Sunwell 3328) + * T9_RK3328 (T9 Sunwell 3328 / 3318) */ &{/} { From 770b84308bdd0c7cb5b58dd220e0a289f6201f28 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 15 Nov 2025 16:02:18 +0100 Subject: [PATCH 14/45] Update rockchip-rk3318-box-led-conf7.dtso --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index e1aa172e7252..6b6ff1dbd4e0 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -23,7 +23,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd655"; + compatible = "fdhisi,fd6551"; /* 8 brightness levels */ reg = <0x24>; tm16xx,digits = [01 02 03 04]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; From f5335cd16c91f035f89fd8b0435f845cb01f1a72 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 22 Nov 2025 11:50:10 +0100 Subject: [PATCH 15/45] Disable unused device nodes in rk3318 LED configuration Commented out sections for various device nodes and properties. --- .../rockchip-rk3318-box-led-conf3.dtso | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso index 28fcedfab48f..85be2b6608ad 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso @@ -21,10 +21,11 @@ &{/vdd-log} { status = "disabled"; }; - +/* ------------------------------------- &{/xin32k} { status = "disabled"; }; +--------------------------------------- */ &i2c1 { #address-cells = <1>; @@ -51,9 +52,10 @@ system-power-controller; wakeup-source; - +/* ---------------------------------------------------------- #clock-cells = <1>; clock-output-names = "xin32k", "rk805-clkout2"; +------------------------------------------------------------- */ vcc1-supply = <&vcc_sys>; vcc2-supply = <&vcc_sys>; @@ -61,7 +63,7 @@ vcc4-supply = <&vcc_sys>; vcc5-supply = <&rk805_vcc_io>; vcc6-supply = <&rk805_vcc_io>; - +/* ------------------------------------------------------------ rtc { status = "okay"; }; @@ -73,7 +75,7 @@ gpio { status = "okay"; }; - +-------------------------------------------------------------- */ regulators { compatible = "rk805-regulator"; status = "okay"; @@ -166,7 +168,7 @@ }; }; - +/* ------------------------------------------------------------------- &pinctrl { leds { @@ -177,6 +179,7 @@ }; + &gpio_led { pinctrl-names = "default"; @@ -188,7 +191,7 @@ default-state = "off"; mode = <35>; }; - +------------------------------------------------------------------- */ /* * These leds are described in the original dtb, but are not present on the board auxiliary { @@ -217,7 +220,7 @@ vccio6-supply = <&vcc_io>; pmuio-supply = <&vcc_io>; }; - +/* --------------------------------------------- &{/} { gpio_keys: gpio-keys { compatible = "gpio-keys"; @@ -229,7 +232,7 @@ }; }; }; - +--------------------------------------------- */ &dmc { center-supply = <&vdd_logic>; }; @@ -283,6 +286,7 @@ /* * Following section enables the sdio bus on sdmmc_ext controller */ +/* ---------------------------------------------------------------- &sdio { /delete-property/ mmc-pwrseq; status = "disabled"; @@ -302,4 +306,5 @@ &spdif { pinctrl-0 = <&spdifm1_tx>; }; +--------------------------------------------------------------------- */ From 85dbd193acff7154c21030ab15b42395b6708c13 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Tue, 25 Nov 2025 21:33:40 +0100 Subject: [PATCH 16/45] Modify address and size cells in LED configuration Updated address and size cells for display and leds. --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index 6b6ff1dbd4e0..e2a7d4dc19f8 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -23,15 +23,15 @@ #size-cells = <0>; display@24 { + #address-cells = <2>; + #size-cells = <0>; compatible = "fdhisi,fd6551"; /* 8 brightness levels */ reg = <0x24>; tm16xx,digits = [01 02 03 04]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; leds { - #address-cells = <2>; - #size-cells = <0>; - + led@0,0 { reg = <0 0>; function = LED_FUNCTION_ALARM; From daf7e4b12da57094ac13b1f314c895e6df78eb9e Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Tue, 25 Nov 2025 23:59:51 +0100 Subject: [PATCH 17/45] Add default trigger for LAN LED in device tree --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso | 1 + 1 file changed, 1 insertion(+) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index e2a7d4dc19f8..f2f9a504b5a5 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -60,6 +60,7 @@ led@0,5 { reg = <0 5>; function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; }; led@0,6 { From 6eb62d8a5cd842234e79a72b5d88d817e5e60f53 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Wed, 26 Nov 2025 18:04:00 +0100 Subject: [PATCH 18/45] Update rockchip-rk3318-box-led-conf7.dtso --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index f2f9a504b5a5..bd51216c1dfe 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -23,13 +23,13 @@ #size-cells = <0>; display@24 { - #address-cells = <2>; - #size-cells = <0>; + compatible = "fdhisi,fd6551"; /* 8 brightness levels */ reg = <0x24>; tm16xx,digits = [01 02 03 04]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; - + #address-cells = <2>; + #size-cells = <0>; leds { led@0,0 { From 9cd34ffe5eae2943194aa83326c0774c3a9cfbac Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Wed, 26 Nov 2025 18:05:30 +0100 Subject: [PATCH 19/45] Fix LED configuration for LAN function --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index bd51216c1dfe..ea43031719e9 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -59,8 +59,7 @@ led@0,5 { reg = <0 5>; - function = LED_FUNCTION_LAN; - linux,default-trigger = "stmmac-0:00:link"; + function = LED_FUNCTION_LAN; }; led@0,6 { From 3af15af9a77bd6ea118a5c54277da99728bf1ee7 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:50:29 +0100 Subject: [PATCH 20/45] Rename display node to display-controller in DTSO --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index ea43031719e9..86c932e31671 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -22,7 +22,7 @@ #address-cells = <1>; #size-cells = <0>; - display@24 { + display-controller@24 { compatible = "fdhisi,fd6551"; /* 8 brightness levels */ reg = <0x24>; From 23b92f7277111ac4d581d90dc46e0318c4de5fe6 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 27 Nov 2025 20:23:35 +0100 Subject: [PATCH 21/45] Refactor LED definitions for consistency --- .../rockchip-rk3318-box-led-conf7.dtso | 59 +++++++++---------- 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index 86c932e31671..6b76a587ecd5 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -30,43 +30,40 @@ tm16xx,segment-mapping = [03 04 05 00 01 02 06]; #address-cells = <2>; #size-cells = <0>; - leds { - - led@0,0 { - reg = <0 0>; - function = LED_FUNCTION_ALARM; - }; - - led@0,1 { - reg = <0 1>; - function = LED_FUNCTION_USB; - }; + + led@0,0 { + reg = <0 0>; + function = LED_FUNCTION_ALARM; + }; - led@0,2 { - reg = <0 2>; - function = "play"; - }; + led@0,1 { + reg = <0 1>; + function = LED_FUNCTION_USB; + }; - led@0,3 { - reg = <0 3>; - function = "pause"; - }; + led@0,2 { + reg = <0 2>; + function = "play"; + }; - led@0,4 { - reg = <0 4>; - function = "colon"; - }; + led@0,3 { + reg = <0 3>; + function = "pause"; + }; - led@0,5 { - reg = <0 5>; - function = LED_FUNCTION_LAN; - }; + led@0,4 { + reg = <0 4>; + function = "colon"; + }; - led@0,6 { - reg = <0 6>; - function = LED_FUNCTION_WLAN; - }; + led@0,5 { + reg = <0 5>; + function = LED_FUNCTION_LAN; + }; + led@0,6 { + reg = <0 6>; + function = LED_FUNCTION_WLAN; }; }; From a4c7a3b7d5c2cb304be65993534a2f966a0c3d7c Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 27 Nov 2025 21:46:30 +0100 Subject: [PATCH 22/45] Update LED configuration for T9_RK3318 device --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index 6b76a587ecd5..077693740b3f 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -6,8 +6,15 @@ #include /** - * T9_RK3318 (T9 Sunwell 3318 version 4+32 GB) + * T9_RK3318 (T9 Sunwell 3318/3328 version 4+32 GB) */ +&gpio_led { + + working { + status = "disabled"; /* there is no working led */ + }; + +}; &{/} { @@ -24,7 +31,7 @@ display-controller@24 { - compatible = "fdhisi,fd6551"; /* 8 brightness levels */ + compatible = "fdhisi,fd6551"; /* 8 brightness levels and correct led restore */ reg = <0x24>; tm16xx,digits = [01 02 03 04]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; From 43e135c3cf9b5f6ed959d1a520a2b1cef45e22b0 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 27 Nov 2025 22:02:00 +0100 Subject: [PATCH 23/45] Add linux,default-trigger to LAN LED configuration --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index 077693740b3f..652a8a009c26 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -65,7 +65,8 @@ led@0,5 { reg = <0 5>; - function = LED_FUNCTION_LAN; + function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; }; led@0,6 { From 0318ccf3071d538b337d7e3fc168a84930f1674b Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 27 Nov 2025 23:30:31 +0100 Subject: [PATCH 24/45] Update rockchip-rk3318-box-led-conf3.dtso --- .../rockchip-rk3318-box-led-conf3.dtso | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso index 85be2b6608ad..28fcedfab48f 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf3.dtso @@ -21,11 +21,10 @@ &{/vdd-log} { status = "disabled"; }; -/* ------------------------------------- + &{/xin32k} { status = "disabled"; }; ---------------------------------------- */ &i2c1 { #address-cells = <1>; @@ -52,10 +51,9 @@ system-power-controller; wakeup-source; -/* ---------------------------------------------------------- + #clock-cells = <1>; clock-output-names = "xin32k", "rk805-clkout2"; -------------------------------------------------------------- */ vcc1-supply = <&vcc_sys>; vcc2-supply = <&vcc_sys>; @@ -63,7 +61,7 @@ vcc4-supply = <&vcc_sys>; vcc5-supply = <&rk805_vcc_io>; vcc6-supply = <&rk805_vcc_io>; -/* ------------------------------------------------------------ + rtc { status = "okay"; }; @@ -75,7 +73,7 @@ gpio { status = "okay"; }; --------------------------------------------------------------- */ + regulators { compatible = "rk805-regulator"; status = "okay"; @@ -168,7 +166,7 @@ }; }; -/* ------------------------------------------------------------------- + &pinctrl { leds { @@ -179,7 +177,6 @@ }; - &gpio_led { pinctrl-names = "default"; @@ -191,7 +188,7 @@ default-state = "off"; mode = <35>; }; -------------------------------------------------------------------- */ + /* * These leds are described in the original dtb, but are not present on the board auxiliary { @@ -220,7 +217,7 @@ vccio6-supply = <&vcc_io>; pmuio-supply = <&vcc_io>; }; -/* --------------------------------------------- + &{/} { gpio_keys: gpio-keys { compatible = "gpio-keys"; @@ -232,7 +229,7 @@ }; }; }; ---------------------------------------------- */ + &dmc { center-supply = <&vdd_logic>; }; @@ -286,7 +283,6 @@ /* * Following section enables the sdio bus on sdmmc_ext controller */ -/* ---------------------------------------------------------------- &sdio { /delete-property/ mmc-pwrseq; status = "disabled"; @@ -306,5 +302,4 @@ &spdif { pinctrl-0 = <&spdifm1_tx>; }; ---------------------------------------------------------------------- */ From c64ba3e6c860b3b973ef7c17c54536a3185f54a9 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 29 Nov 2025 17:39:19 +0100 Subject: [PATCH 25/45] Refactor LED configuration in rockchip-rk3318-box overlay Actually the led driver is a fd6551, fd655 is working as well but allowing only 3 levels of brightness. There is no working led only the clock display --- .../rockchip-rk3318-box-led-conf7.dtso | 84 ++++++++++--------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso index 652a8a009c26..61a2ad032cc1 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -29,50 +29,52 @@ #address-cells = <1>; #size-cells = <0>; - display-controller@24 { - - compatible = "fdhisi,fd6551"; /* 8 brightness levels and correct led restore */ + display@24 { + compatible = "fdhisi,fd6551"; /* Allows 8 brightness levels and status led restore */ reg = <0x24>; tm16xx,digits = [01 02 03 04]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; - #address-cells = <2>; - #size-cells = <0>; - - led@0,0 { - reg = <0 0>; - function = LED_FUNCTION_ALARM; - }; - - led@0,1 { - reg = <0 1>; - function = LED_FUNCTION_USB; - }; - - led@0,2 { - reg = <0 2>; - function = "play"; - }; - - led@0,3 { - reg = <0 3>; - function = "pause"; - }; - - led@0,4 { - reg = <0 4>; - function = "colon"; - }; - - led@0,5 { - reg = <0 5>; - function = LED_FUNCTION_LAN; - linux,default-trigger = "stmmac-0:00:link"; - }; - - led@0,6 { - reg = <0 6>; - function = LED_FUNCTION_WLAN; - }; + + + #address-cells = <2>; + #size-cells = <0>; + + led@0,0 { + reg = <0 0>; + function = LED_FUNCTION_ALARM; + }; + + led@0,1 { + reg = <0 1>; + function = LED_FUNCTION_USB; + }; + + led@0,2 { + reg = <0 2>; + function = "play"; + }; + + led@0,3 { + reg = <0 3>; + function = "pause"; + }; + + led@0,4 { + reg = <0 4>; + function = "colon"; + }; + + led@0,5 { + reg = <0 5>; + function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; + }; + + led@0,6 { + reg = <0 6>; + function = LED_FUNCTION_WLAN; + }; + }; From c63f086fa7442c5646ce96483ba12312e5b1ce5d Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 29 Nov 2025 20:05:54 +0100 Subject: [PATCH 26/45] Update LED configuration in rockchip-rk3318 overlay --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index 3d1e0504311d..2390243d31f0 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -27,26 +27,26 @@ compatible = "fdhisi,fd650"; reg = <0x24>; - tm16xx,digits = [04 03 02 01]; + tm16xx,digits = [03 02 01 00]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; led@2,1 { - reg = <1 7>; + reg = <0 7>; function = LED_FUNCTION_USB; }; led@2,2 { - reg = <2 7>; + reg = <1 7>; function = "colon"; }; led@2,3 { - reg = <3 7>; + reg = <2 7>; function = LED_FUNCTION_LAN; }; led@2,4 { - reg = <4 7>; + reg = <3 7>; function = LED_FUNCTION_WLAN; }; From b540cde145a9179be7d80ad1aea4cc40c50c7075 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 29 Nov 2025 20:10:01 +0100 Subject: [PATCH 27/45] Add IR LED configuration to rockchip-rk3318-box Add configuration for IR LED with GPIO settings. --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index 2390243d31f0..acbcad83aaa0 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -9,6 +9,19 @@ * T98_RK3318 (Hongtop H50) */ +&gpio_led { + + working { + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "activity"; + }; + ir-led { + label = "ir-led"; + gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "timer"; + }; +}; + &{/} { i2c-display { From 6ed10f6a18dad0ebb73f0005ebf590a7990acbe8 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sun, 30 Nov 2025 12:58:45 +0100 Subject: [PATCH 28/45] Modify display controller configuration for LEDs Updated the compatible property and LED register addresses for the display controller. --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index acbcad83aaa0..ee38bb0c6529 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -38,28 +38,28 @@ #address-cells = <2>; #size-cells = <0>; - compatible = "fdhisi,fd650"; + compatible = "fdhisi,fd655"; /* fd650 not able to set segment 8 (07) for function leds */ reg = <0x24>; - tm16xx,digits = [03 02 01 00]; + tm16xx,digits = [04 03 02 01]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; led@2,1 { - reg = <0 7>; + reg = <1 7>; function = LED_FUNCTION_USB; }; led@2,2 { - reg = <1 7>; + reg = <2 7>; function = "colon"; }; led@2,3 { - reg = <2 7>; + reg = <3 7>; function = LED_FUNCTION_LAN; }; led@2,4 { - reg = <3 7>; + reg = <4 7>; function = LED_FUNCTION_WLAN; }; From 467fa2eb3f193f996f647d9dc41000e5177c9673 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sun, 30 Nov 2025 13:03:49 +0100 Subject: [PATCH 29/45] Change LED triggers in rockchip-rk3318 overlay Blinking leds added --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index ee38bb0c6529..7791ec1602b5 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -13,12 +13,12 @@ working { gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "activity"; + linux,default-trigger = "mmc2"; }; ir-led { label = "ir-led"; gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "timer"; + linux,default-trigger = "activity"; }; }; From 22f9793c1c34b64f107fc3c2fdb5de7d56287d52 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 4 Dec 2025 02:21:38 +0100 Subject: [PATCH 30/45] Update register values for digit nodes in LED config --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 95e375a119d6..04ec7cc992df 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -45,22 +45,22 @@ #size-cells = <0>; digit@0 { - reg = <0>; + reg = <1>; segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <1>; + reg = <2>; segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <2>; + reg = <3>; segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <3>; + reg = <4>; segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; From 1d054c7a3a46a60cd62ecb36f9bff95eeaaf3340 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 5 Dec 2025 18:22:09 +0100 Subject: [PATCH 31/45] Update LED triggers in rockchip-rk3318-box configuration --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 04ec7cc992df..c76965491a89 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -13,12 +13,12 @@ working { gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; - linux,default-trigger = "activity"; + linux,default-trigger = "mmc2"; /* usually timer but here will alternate a red and blue led */ }; ir-led { label = "ir-led"; gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "timer"; + linux,default-trigger = "activity"; /* blue led close to ir receiver */ default-state = "off"; }; }; From a0d46195634a45744d905e4448bceea758709cca Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 6 Aug 2026 21:58:34 +0200 Subject: [PATCH 32/45] Modify LED triggers and add HDMI regulator Updated LED triggers and added HDMI power regulator configuration. --- .../rockchip-rk3318-box-led-conf6.dtso | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index c76965491a89..1693d1ebb601 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -73,9 +73,7 @@ led@0,7 { reg = <0 7>; function = "usb"; -/* - linux,default-trigger = "usbport"; -*/ + linux,default-trigger = "usb-host"; }; @@ -93,9 +91,8 @@ led@3,7 { reg = <3 7>; function = LED_FUNCTION_WLAN; -/* linux,default-trigger = "mmc1"; -*/ + }; }; @@ -105,3 +102,26 @@ }; }; +/* modify existimg regulator to power on HDMI */ +&{/vcc-host-vbus} { + status = "disabled"; +}; + +&{/} { + vcc-host-hdmi-vbus { + compatible = "regulator-fixed"; + enable-active-low; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_host_drv>; + regulator-name = "vcc_host_hdmi_vbus"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys>; + }; + + }; + + From c039f609557724155e843971514636a7570ccf23 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:01:45 +0200 Subject: [PATCH 33/45] Refactor vcc-host-hdmi-vbus configuration --- .../rockchip-rk3318-box-led-conf6.dtso | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index 1693d1ebb601..f66c702ab507 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -108,19 +108,19 @@ }; &{/} { - vcc-host-hdmi-vbus { - compatible = "regulator-fixed"; - enable-active-low; - gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&usb30_host_drv>; - regulator-name = "vcc_host_hdmi_vbus"; - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&vcc_sys>; - }; + vcc-host-hdmi-vbus { + compatible = "regulator-fixed"; + enable-active-low; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_host_drv>; + regulator-name = "vcc_host_hdmi_vbus"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys>; + }; }; From 68016d93d539986160677947a91bcf045ff6c23b Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:02:51 +0200 Subject: [PATCH 34/45] Add HDMI VBUS regulator configuration --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index 7791ec1602b5..58bdd7ba6aee 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -66,5 +66,21 @@ }; }; +&{/} { + vcc-host-hdmi-vbus { + compatible = "regulator-fixed"; + enable-active-low; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_host_drv>; + regulator-name = "vcc_host_hdmi_vbus"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys>; + }; + + }; }; From 7e2e33f4801eda1e6b71fa35a726d2d73787ed0f Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:06:10 +0200 Subject: [PATCH 35/45] Update HDMI regulator status in device tree overlay Modified existing regulator to disable power for HDMI. --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index 58bdd7ba6aee..9c550a70ff71 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -66,6 +66,14 @@ }; }; + +}; + +/* modify existimg regulator to power on HDMI */ + +&{/vcc-host-vbus} { + status = "disabled"; +}; &{/} { vcc-host-hdmi-vbus { compatible = "regulator-fixed"; @@ -83,4 +91,4 @@ }; -}; + From 4c06c8de64eb1029521496f25cf2e11dd4d1a946 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:04:54 +0200 Subject: [PATCH 36/45] Remove enable-active-low from HDMI VBUS regulator Removed 'enable-active-low' property from vcc-host-hdmi-vbus regulator configuration. --- .../rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso | 1 - 1 file changed, 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso index 9c550a70ff71..046117decf5e 100644 --- a/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.12/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -77,7 +77,6 @@ &{/} { vcc-host-hdmi-vbus { compatible = "regulator-fixed"; - enable-active-low; gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&usb30_host_drv>; From 0d433fdf7968b9fd60fa674e3d4564ce68d05cf5 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:05:49 +0200 Subject: [PATCH 37/45] Remove enable-active-low from HDMI VBUS regulator Removed 'enable-active-low' property from vcc-host-hdmi-vbus. --- .../rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso | 1 - 1 file changed, 1 deletion(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index f66c702ab507..f2096e9b3f8e 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -110,7 +110,6 @@ &{/} { vcc-host-hdmi-vbus { compatible = "regulator-fixed"; - enable-active-low; gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&usb30_host_drv>; From 2da6c0f3fa0ce3a6dc200a8a344e479123b086fc Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:07:23 +0200 Subject: [PATCH 38/45] Disable working LED in rockchip-rk3318-box configuration Disable the working LED in the device tree overlay. --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso index 6200473e7e13..a3a2e5746a96 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -8,6 +8,14 @@ /** * T9_RK3328 (T9 Sunwell 3328 / 3318) */ +&gpio_led { + + working { + status = "disabled"; /* there is no working led */ + }; + +}; + &{/} { From 82ce82c29ef3ac1254b34d84cd101509854b47a6 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:28:24 +0200 Subject: [PATCH 39/45] Modify LED settings and add HDMI regulator Updated LED configurations and added HDMI regulator settings. --- .../rockchip-rk3318-box-led-conf6.dtso | 70 ++++++++++++++----- 1 file changed, 53 insertions(+), 17 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso index 0860836d9343..18814ee2b9c8 100644 --- a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -9,6 +9,20 @@ * T98_RK3318 (Hongtop H50) */ +&gpio_led { + + working { + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "mmc2"; /* usually timer but here will alternate a red and blue led */ + }; + ir-led { + label = "ir-led"; + gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "activity"; /* blue led close to ir receiver */ + default-state = "off"; + }; +}; + &{/} { i2c_aux_display: i2c-aux-display { @@ -23,7 +37,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd650"; + compatible = "fdhisi,fd650" , "titanmec,tm1650"; /* do not remove tm1650 */ reg = <0x24>; digits { @@ -31,23 +45,23 @@ #size-cells = <0>; digit@0 { - reg = <0>; - segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; + reg = <1>; + segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <1>; - segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; + reg = <2>; + segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <2>; - segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; + reg = <3>; + segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <3>; - segments = <4 3>, <4 4>, <4 5>, <4 0>, <4 1>, <4 2>, <4 6>; + reg = <4>; + segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; }; @@ -56,27 +70,29 @@ #address-cells = <2>; #size-cells = <0>; - led@1,7 { - reg = <1 7>; + led@0,7 { + reg = <0 7>; function = "usb"; linux,default-trigger = "usb-host"; + }; - led@2,7 { - reg = <2 7>; + led@1,7 { + reg = <1 7>; function = "colon"; }; - led@3,7 { - reg = <3 7>; + led@2,7 { + reg = <2 7>; function = LED_FUNCTION_LAN; linux,default-trigger = "stmmac-0:00:link"; }; - led@4,7 { - reg = <4 7>; + led@3,7 { + reg = <3 7>; function = LED_FUNCTION_WLAN; linux,default-trigger = "mmc1"; + }; }; @@ -86,3 +102,23 @@ }; }; +/* modify existimg regulator to power on HDMI */ +&{/vcc-host-vbus} { + status = "disabled"; +}; + +&{/} { + vcc-host-hdmi-vbus { + compatible = "regulator-fixed"; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_host_drv>; + regulator-name = "vcc_host_hdmi_vbus"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys>; + }; + + }; From 0d6a6d20ea5c13a191810c58d1159e99dd1dba3b Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:29:51 +0200 Subject: [PATCH 40/45] Update LED configuration for T9_RK3328 --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf7.dtso index a38abec053f9..a3a2e5746a96 100644 --- a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -6,8 +6,16 @@ #include /** - * T9_RK3318 (T9 Sunwell 3318) + * T9_RK3328 (T9 Sunwell 3328 / 3318) */ +&gpio_led { + + working { + status = "disabled"; /* there is no working led */ + }; + +}; + &{/} { @@ -23,7 +31,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd655"; + compatible = "fdhisi,fd6551"; /* it is a fd6551 - 8 levels of brightness are available */ reg = <0x24>; digits { @@ -84,6 +92,7 @@ led@0,5 { reg = <0 5>; function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; }; led@0,6 { From 5c2d5e2bb8559b8f18c7c30df4655ca7311b6d24 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:31:18 +0200 Subject: [PATCH 41/45] Modify LED configuration and compatible string Updated LED configuration for T9 RK3328/3318 and corrected compatible string for display. --- .../overlay/rockchip-rk3318-box-led-conf7.dtso | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf7.dtso b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf7.dtso index a38abec053f9..a3a2e5746a96 100644 --- a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf7.dtso +++ b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf7.dtso @@ -6,8 +6,16 @@ #include /** - * T9_RK3318 (T9 Sunwell 3318) + * T9_RK3328 (T9 Sunwell 3328 / 3318) */ +&gpio_led { + + working { + status = "disabled"; /* there is no working led */ + }; + +}; + &{/} { @@ -23,7 +31,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd655"; + compatible = "fdhisi,fd6551"; /* it is a fd6551 - 8 levels of brightness are available */ reg = <0x24>; digits { @@ -84,6 +92,7 @@ led@0,5 { reg = <0 5>; function = LED_FUNCTION_LAN; + linux,default-trigger = "stmmac-0:00:link"; }; led@0,6 { From 9c9848970d2919c34b0d61eebefd78a444335dab Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:33:03 +0200 Subject: [PATCH 42/45] Enhance LED configurations and HDMI regulator settings Added configurations for IR LED and modified existing LED definitions. Updated regulator settings for HDMI power. --- .../rockchip-rk3318-box-led-conf6.dtso | 70 ++++++++++++++----- 1 file changed, 53 insertions(+), 17 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso index 0860836d9343..18814ee2b9c8 100644 --- a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -9,6 +9,20 @@ * T98_RK3318 (Hongtop H50) */ +&gpio_led { + + working { + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "mmc2"; /* usually timer but here will alternate a red and blue led */ + }; + ir-led { + label = "ir-led"; + gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "activity"; /* blue led close to ir receiver */ + default-state = "off"; + }; +}; + &{/} { i2c_aux_display: i2c-aux-display { @@ -23,7 +37,7 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd650"; + compatible = "fdhisi,fd650" , "titanmec,tm1650"; /* do not remove tm1650 */ reg = <0x24>; digits { @@ -31,23 +45,23 @@ #size-cells = <0>; digit@0 { - reg = <0>; - segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; + reg = <1>; + segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <1>; - segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; + reg = <2>; + segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <2>; - segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; + reg = <3>; + segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <3>; - segments = <4 3>, <4 4>, <4 5>, <4 0>, <4 1>, <4 2>, <4 6>; + reg = <4>; + segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; }; @@ -56,27 +70,29 @@ #address-cells = <2>; #size-cells = <0>; - led@1,7 { - reg = <1 7>; + led@0,7 { + reg = <0 7>; function = "usb"; linux,default-trigger = "usb-host"; + }; - led@2,7 { - reg = <2 7>; + led@1,7 { + reg = <1 7>; function = "colon"; }; - led@3,7 { - reg = <3 7>; + led@2,7 { + reg = <2 7>; function = LED_FUNCTION_LAN; linux,default-trigger = "stmmac-0:00:link"; }; - led@4,7 { - reg = <4 7>; + led@3,7 { + reg = <3 7>; function = LED_FUNCTION_WLAN; linux,default-trigger = "mmc1"; + }; }; @@ -86,3 +102,23 @@ }; }; +/* modify existimg regulator to power on HDMI */ +&{/vcc-host-vbus} { + status = "disabled"; +}; + +&{/} { + vcc-host-hdmi-vbus { + compatible = "regulator-fixed"; + gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&usb30_host_drv>; + regulator-name = "vcc_host_hdmi_vbus"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_sys>; + }; + + }; From 36e13c23d777c7c94a95f344e2828dec9dda0ea9 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:52:50 +0200 Subject: [PATCH 43/45] Update register addresses for digit nodes --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso index 18814ee2b9c8..90261826d2c4 100644 --- a/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-7.1/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -45,22 +45,22 @@ #size-cells = <0>; digit@0 { - reg = <1>; + reg = <0>; segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <2>; + reg = <1>; segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <3>; + reg = <2>; segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <4>; + reg = <3>; segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; From f483caa1ec459970a8d0436c90d3f48dca61df60 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Fri, 7 Aug 2026 23:54:16 +0200 Subject: [PATCH 44/45] Update register values for digit nodes in device tree --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso index 18814ee2b9c8..90261826d2c4 100644 --- a/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-7.2/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -45,22 +45,22 @@ #size-cells = <0>; digit@0 { - reg = <1>; + reg = <0>; segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <2>; + reg = <1>; segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <3>; + reg = <2>; segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <4>; + reg = <3>; segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; }; From 90fc45b16514aaed1a917d01470c00fc1645ab82 Mon Sep 17 00:00:00 2001 From: gmp <97922012+gpaesano@users.noreply.github.com> Date: Sat, 8 Aug 2026 00:05:05 +0200 Subject: [PATCH 45/45] Update register values for digit nodes in LED config --- .../overlay/rockchip-rk3318-box-led-conf6.dtso | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso index f2096e9b3f8e..f4c754c16148 100644 --- a/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso +++ b/patch/kernel/archive/rockchip64-6.18/overlay/rockchip-rk3318-box-led-conf6.dtso @@ -45,22 +45,22 @@ #size-cells = <0>; digit@0 { - reg = <1>; + reg = <0>; segments = <0 3>, <0 4>, <0 5>, <0 0>, <0 1>, <0 2>, <0 6>; }; digit@1 { - reg = <2>; + reg = <1>; segments = <1 3>, <1 4>, <1 5>, <1 0>, <1 1>, <1 2>, <1 6>; }; digit@2 { - reg = <3>; + reg = <2>; segments = <2 3>, <2 4>, <2 5>, <2 0>, <2 1>, <2 2>, <2 6>; }; digit@3{ - reg = <4>; + reg = <3>; segments = <3 3>, <3 4>, <3 5>, <3 0>, <3 1>, <3 2>, <3 6>; };