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..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 @@ -9,6 +9,19 @@ * T98_RK3318 (Hongtop H50) */ +&gpio_led { + + working { + gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_LOW>; + linux,default-trigger = "mmc2"; + }; + ir-led { + label = "ir-led"; + gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "activity"; + }; +}; + &{/} { i2c-display { @@ -25,7 +38,7 @@ #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 = [04 03 02 01]; tm16xx,segment-mapping = [03 04 05 00 01 02 06]; @@ -55,3 +68,26 @@ }; }; + +/* 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>; + }; + + }; + + 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..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 @@ -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 */ + }; + +}; &{/} { @@ -23,12 +30,12 @@ #size-cells = <0>; display@24 { - compatible = "fdhisi,fd655"; + 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]; - leds { + #address-cells = <2>; #size-cells = <0>; @@ -60,14 +67,14 @@ 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; }; - - }; + }; 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..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 @@ -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 { @@ -32,22 +46,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,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,25 @@ }; }; +/* 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>; + }; + + }; + + 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..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 @@ -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 { 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..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 @@ -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 { @@ -32,22 +46,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,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>; + }; + + }; 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 { 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..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 @@ -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 { @@ -32,22 +46,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,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>; + }; + + }; 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 {