[v4,2/2] arm64: dts: allwinner: h6: Add Orange Pi 3 LTS

Message ID 20261115-sunxi-orangepi-3-lts-v4-2-7749b448a4dd@gmail.com (mailing list archive)
State New
Headers
Series arm64: dts: allwinner: Support Orange Pi 3 LTS |

Commit Message

Cristian Filipescu via B4 Relay Nov. 15, 2026, 11:50 p.m. UTC
From: Jernej Skrabec <jernej.skrabec@gmail.com>

Add the board description for the Allwinner H6-based Orange Pi 3 LTS,
using the common Orange Pi H6 description for shared hardware.
Describe the LTS regulators, storage, Motorcomm YT8531C Ethernet PHY,
wireless module supplies, LEDs and USB ports.

Reset the sole Ethernet PHY at MDIO bus registration and keep reset
outside interface detach so its configured 125 MHz output is retained.
Use generic Clause 22 discovery and PHY-internal RGMII delays.

Inherit the schematic LED roles and defaults: red power on and green
status off. Select the weakest GPIO drive level for both LEDs, describe
the shared CPU supply on all four cores, and enable 1.8 V eMMC DDR52 and
HS200 modes while retaining the H6 maximum frequency of 150 MHz.
Remove inherited USB ID detection for fixed host mode.

Link: https://lore.kernel.org/linux-sunxi/20250413134318.66681-3-jernej.skrabec@gmail.com/
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Cristian Filipescu <filipescu.cristian@gmail.com>
---
 arch/arm64/boot/dts/allwinner/Makefile             |   1 +
 .../dts/allwinner/sun50i-h6-orangepi-3-lts.dts     | 188 +++++++++++++++++++++
 2 files changed, 189 insertions(+)
  

Comments

Chen-Yu Tsai Nov. 22, 2026, 6:34 p.m. UTC | #1
Minor issues,

On Mon, Nov 16, 2026 at 7:50 AM Cristian Filipescu via B4 Relay
<devnull+filipescu.cristian.gmail.com@kernel.org> wrote:
>
> From: Jernej Skrabec <jernej.skrabec@gmail.com>
>
> Add the board description for the Allwinner H6-based Orange Pi 3 LTS,
> using the common Orange Pi H6 description for shared hardware.
> Describe the LTS regulators, storage, Motorcomm YT8531C Ethernet PHY,
> wireless module supplies, LEDs and USB ports.
>
> Reset the sole Ethernet PHY at MDIO bus registration and keep reset
> outside interface detach so its configured 125 MHz output is retained.
> Use generic Clause 22 discovery and PHY-internal RGMII delays.
>
> Inherit the schematic LED roles and defaults: red power on and green
> status off. Select the weakest GPIO drive level for both LEDs, describe
> the shared CPU supply on all four cores, and enable 1.8 V eMMC DDR52 and
> HS200 modes while retaining the H6 maximum frequency of 150 MHz.
> Remove inherited USB ID detection for fixed host mode.
>
> Link: https://lore.kernel.org/linux-sunxi/20250413134318.66681-3-jernej.skrabec@gmail.com/
> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> Signed-off-by: Cristian Filipescu <filipescu.cristian@gmail.com>
> ---
>  arch/arm64/boot/dts/allwinner/Makefile             |   1 +
>  .../dts/allwinner/sun50i-h6-orangepi-3-lts.dts     | 188 +++++++++++++++++++++
>  2 files changed, 189 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
> index aa21f58a4..7ea136380 100644
> --- a/arch/arm64/boot/dts/allwinner/Makefile
> +++ b/arch/arm64/boot/dts/allwinner/Makefile
> @@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-beelink-gs1.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
> +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3-lts.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
>  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
> new file mode 100644
> index 000000000..d3ea73e1d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
> @@ -0,0 +1,188 @@
> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> +// Copyright (C) 2025 Jernej Skrabec <jernej.skrabec@gmail.com>
> +// Based on sun50i-h6-orangepi-3.dts, which is:
> +// Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
> +
> +#include "sun50i-h6-orangepi.dtsi"

> +#include "sun50i-h6-cpu-opp.dtsi"
> +#include "sun50i-h6-gpu-opp.dtsi"

These two are redundant.

> +
> +/ {
> +       model = "OrangePi 3 LTS";
> +       compatible = "xunlong,orangepi-3-lts", "allwinner,sun50i-h6";
> +
> +       aliases {
> +               ethernet0 = &emac;
> +               ethernet1 = &aw859a;
> +       };


> +
> +       leds {
> +               led-0 {
> +                       pinctrl-names = "default";
> +                       pinctrl-0 = <&led_red_pin>;
> +               };
> +
> +               led-1 {
> +                       pinctrl-names = "default";
> +                       pinctrl-0 = <&led_green_pin>;
> +               };
> +       };

I think the LED drive strength could be moved to the .dtsi file?

> +
> +       reg_gmac_3v3: gmac-3v3 {

Node name should be regulator-gmac-3v3. Node names should be generic
in most cases, or carry a generic type prefix for nodes that don't have
addresses.

> +               compatible = "regulator-fixed";
> +               regulator-name = "gmac-3v3";
> +               vin-supply = <&reg_vcc5v>;
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               startup-delay-us = <150000>;
> +               enable-active-high;
> +               gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
> +       };
> +
> +       reg_wifi_3v3: wifi-3v3 {

Should be regulator-wifi-3v3.

> +               /* 3.3V regulator for WiFi and BT */
> +               compatible = "regulator-fixed";
> +               regulator-name = "wifi-3v3";
> +               vin-supply = <&reg_vcc5v>;
> +               regulator-min-microvolt = <3300000>;
> +               regulator-max-microvolt = <3300000>;
> +               enable-active-high;
> +               gpio = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
> +       };
> +
> +       wifi_pwrseq: wifi-pwrseq {
> +               compatible = "mmc-pwrseq-simple";
> +               clocks = <&rtc CLK_OSC32K_FANOUT>;
> +               clock-names = "ext_clock";
> +               reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
> +               post-power-on-delay-ms = <200>;
> +       };
> +};
> +
> +&axp805 {
> +       /* ALDO3 is shorted to CLDO1; both inherit regulator-always-on. */
> +       regulators {
> +               cldo2 {
> +                       /* unused */
> +                       /delete-property/ regulator-min-microvolt;
> +                       /delete-property/ regulator-max-microvolt;

You should reference them by label, not by partial path. And perhaps
also delete the name, so it goes back to the default.

> +               };
> +
> +               cldo3 {
> +                       /* unused */
> +                       /delete-property/ regulator-min-microvolt;
> +                       /delete-property/ regulator-max-microvolt;

Same for this one.

> +               };
> +
> +               /* DCDCB is polyphased with DCDCA. */
> +               dcdca {
> +                       regulator-min-microvolt = <800000>;
> +                       regulator-max-microvolt = <1160000>;
> +                       regulator-ramp-delay = <2500>;
> +               };

Setting is almost identical to orangepi.dtsi. Lower min voltage probably
doesn't do anything since the lowest OPP is at 0.81V?

> +
> +               dcdcc {
> +                       regulator-ramp-delay = <2500>;

Same here. I think you can drop both of them.

> +               };
> +       };
> +};
> +
> +&cpu0 {
> +       cpu-supply = <&reg_dcdca>;
> +};
> +
> +&cpu1 {
> +       cpu-supply = <&reg_dcdca>;
> +};
> +
> +&cpu2 {
> +       cpu-supply = <&reg_dcdca>;
> +};
> +
> +&cpu3 {
> +       cpu-supply = <&reg_dcdca>;
> +};

These are redundant. The cpu0 supply is already inherited from the common
.dtsi file.

If anything we should add cpu-supply properties to the other cores in the
.dtsi file. But that is another task, and one we should probably do for
all boards together.


Thanks
ChenYu

> +
> +&dwc3 {
> +       status = "okay";
> +};
> +
> +&emac {
> +       pinctrl-names = "default";
> +       pinctrl-0 = <&ext_rgmii_pins>;
> +       phy-mode = "rgmii-id";
> +       phy-handle = <&ext_rgmii_phy>;
> +       phy-supply = <&reg_gmac_3v3>;
> +       allwinner,rx-delay-ps = <0>;
> +       allwinner,tx-delay-ps = <0>;
> +       status = "okay";
> +};
> +
> +&hdmi {
> +       hvcc-supply = <&reg_bldo2>;
> +};
> +
> +&mdio {
> +       reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
> +       reset-delay-us = <15000>;
> +       reset-post-delay-us = <100000>;
> +
> +       ext_rgmii_phy: ethernet-phy@1 {
> +               compatible = "ethernet-phy-ieee802.3-c22";
> +               reg = <1>;
> +
> +               motorcomm,clk-out-frequency-hz = <125000000>;
> +               rx-internal-delay-ps = <1950>;
> +               tx-internal-delay-ps = <1950>;
> +       };
> +};
> +
> +&mmc1 {
> +       vmmc-supply = <&reg_wifi_3v3>;
> +       vqmmc-supply = <&reg_bldo3>;
> +       mmc-pwrseq = <&wifi_pwrseq>;
> +       bus-width = <4>;
> +       non-removable;
> +       status = "okay";
> +
> +       aw859a: wifi@1 {
> +               reg = <1>;
> +       };
> +};
> +
> +&mmc2 {
> +       vmmc-supply = <&reg_cldo1>;
> +       vqmmc-supply = <&reg_bldo2>;
> +       mmc-ddr-1_8v;
> +       mmc-hs200-1_8v;
> +       cap-mmc-hw-reset;
> +       non-removable;
> +       bus-width = <8>;
> +       status = "okay";
> +};
> +
> +&pio {
> +       vcc-pg-supply = <&reg_bldo3>;
> +};
> +
> +&r_pio {
> +       led_green_pin: led-green-pin {
> +               pins = "PL7";
> +               function = "gpio_out";
> +               drive-strength = <10>;
> +       };
> +
> +       led_red_pin: led-red-pin {
> +               pins = "PL4";
> +               function = "gpio_out";
> +               drive-strength = <10>;
> +       };
> +};
> +
> +&usb2phy {
> +       /delete-property/ usb0_id_det-gpios;
> +};
> +
> +&usb3phy {
> +       status = "okay";
> +};
>
> --
> 2.47.3
>
>
  
Chen-Yu Tsai Nov. 22, 2026, 6:37 p.m. UTC | #2
Blah, I don't know why I was looking at an old version. Please ignore.

On Mon, Nov 23, 2026 at 2:34 AM Chen-Yu Tsai <wens@kernel.org> wrote:
>
> Minor issues,
>
> On Mon, Nov 16, 2026 at 7:50 AM Cristian Filipescu via B4 Relay
> <devnull+filipescu.cristian.gmail.com@kernel.org> wrote:
> >
> > From: Jernej Skrabec <jernej.skrabec@gmail.com>
> >
> > Add the board description for the Allwinner H6-based Orange Pi 3 LTS,
> > using the common Orange Pi H6 description for shared hardware.
> > Describe the LTS regulators, storage, Motorcomm YT8531C Ethernet PHY,
> > wireless module supplies, LEDs and USB ports.
> >
> > Reset the sole Ethernet PHY at MDIO bus registration and keep reset
> > outside interface detach so its configured 125 MHz output is retained.
> > Use generic Clause 22 discovery and PHY-internal RGMII delays.
> >
> > Inherit the schematic LED roles and defaults: red power on and green
> > status off. Select the weakest GPIO drive level for both LEDs, describe
> > the shared CPU supply on all four cores, and enable 1.8 V eMMC DDR52 and
> > HS200 modes while retaining the H6 maximum frequency of 150 MHz.
> > Remove inherited USB ID detection for fixed host mode.
> >
> > Link: https://lore.kernel.org/linux-sunxi/20250413134318.66681-3-jernej.skrabec@gmail.com/
> > Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
> > Signed-off-by: Cristian Filipescu <filipescu.cristian@gmail.com>
> > ---
> >  arch/arm64/boot/dts/allwinner/Makefile             |   1 +
> >  .../dts/allwinner/sun50i-h6-orangepi-3-lts.dts     | 188 +++++++++++++++++++++
> >  2 files changed, 189 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
> > index aa21f58a4..7ea136380 100644
> > --- a/arch/arm64/boot/dts/allwinner/Makefile
> > +++ b/arch/arm64/boot/dts/allwinner/Makefile
> > @@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-beelink-gs1.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
> > +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3-lts.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
> >  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
> > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
> > new file mode 100644
> > index 000000000..d3ea73e1d
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
> > @@ -0,0 +1,188 @@
> > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> > +// Copyright (C) 2025 Jernej Skrabec <jernej.skrabec@gmail.com>
> > +// Based on sun50i-h6-orangepi-3.dts, which is:
> > +// Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
> > +
> > +#include "sun50i-h6-orangepi.dtsi"
>
> > +#include "sun50i-h6-cpu-opp.dtsi"
> > +#include "sun50i-h6-gpu-opp.dtsi"
>
> These two are redundant.
>
> > +
> > +/ {
> > +       model = "OrangePi 3 LTS";
> > +       compatible = "xunlong,orangepi-3-lts", "allwinner,sun50i-h6";
> > +
> > +       aliases {
> > +               ethernet0 = &emac;
> > +               ethernet1 = &aw859a;
> > +       };
>
>
> > +
> > +       leds {
> > +               led-0 {
> > +                       pinctrl-names = "default";
> > +                       pinctrl-0 = <&led_red_pin>;
> > +               };
> > +
> > +               led-1 {
> > +                       pinctrl-names = "default";
> > +                       pinctrl-0 = <&led_green_pin>;
> > +               };
> > +       };
>
> I think the LED drive strength could be moved to the .dtsi file?
>
> > +
> > +       reg_gmac_3v3: gmac-3v3 {
>
> Node name should be regulator-gmac-3v3. Node names should be generic
> in most cases, or carry a generic type prefix for nodes that don't have
> addresses.
>
> > +               compatible = "regulator-fixed";
> > +               regulator-name = "gmac-3v3";
> > +               vin-supply = <&reg_vcc5v>;
> > +               regulator-min-microvolt = <3300000>;
> > +               regulator-max-microvolt = <3300000>;
> > +               startup-delay-us = <150000>;
> > +               enable-active-high;
> > +               gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
> > +       };
> > +
> > +       reg_wifi_3v3: wifi-3v3 {
>
> Should be regulator-wifi-3v3.
>
> > +               /* 3.3V regulator for WiFi and BT */
> > +               compatible = "regulator-fixed";
> > +               regulator-name = "wifi-3v3";
> > +               vin-supply = <&reg_vcc5v>;
> > +               regulator-min-microvolt = <3300000>;
> > +               regulator-max-microvolt = <3300000>;
> > +               enable-active-high;
> > +               gpio = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
> > +       };
> > +
> > +       wifi_pwrseq: wifi-pwrseq {
> > +               compatible = "mmc-pwrseq-simple";
> > +               clocks = <&rtc CLK_OSC32K_FANOUT>;
> > +               clock-names = "ext_clock";
> > +               reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
> > +               post-power-on-delay-ms = <200>;
> > +       };
> > +};
> > +
> > +&axp805 {
> > +       /* ALDO3 is shorted to CLDO1; both inherit regulator-always-on. */
> > +       regulators {
> > +               cldo2 {
> > +                       /* unused */
> > +                       /delete-property/ regulator-min-microvolt;
> > +                       /delete-property/ regulator-max-microvolt;
>
> You should reference them by label, not by partial path. And perhaps
> also delete the name, so it goes back to the default.
>
> > +               };
> > +
> > +               cldo3 {
> > +                       /* unused */
> > +                       /delete-property/ regulator-min-microvolt;
> > +                       /delete-property/ regulator-max-microvolt;
>
> Same for this one.
>
> > +               };
> > +
> > +               /* DCDCB is polyphased with DCDCA. */
> > +               dcdca {
> > +                       regulator-min-microvolt = <800000>;
> > +                       regulator-max-microvolt = <1160000>;
> > +                       regulator-ramp-delay = <2500>;
> > +               };
>
> Setting is almost identical to orangepi.dtsi. Lower min voltage probably
> doesn't do anything since the lowest OPP is at 0.81V?
>
> > +
> > +               dcdcc {
> > +                       regulator-ramp-delay = <2500>;
>
> Same here. I think you can drop both of them.
>
> > +               };
> > +       };
> > +};
> > +
> > +&cpu0 {
> > +       cpu-supply = <&reg_dcdca>;
> > +};
> > +
> > +&cpu1 {
> > +       cpu-supply = <&reg_dcdca>;
> > +};
> > +
> > +&cpu2 {
> > +       cpu-supply = <&reg_dcdca>;
> > +};
> > +
> > +&cpu3 {
> > +       cpu-supply = <&reg_dcdca>;
> > +};
>
> These are redundant. The cpu0 supply is already inherited from the common
> .dtsi file.
>
> If anything we should add cpu-supply properties to the other cores in the
> .dtsi file. But that is another task, and one we should probably do for
> all boards together.
>
>
> Thanks
> ChenYu
>
> > +
> > +&dwc3 {
> > +       status = "okay";
> > +};
> > +
> > +&emac {
> > +       pinctrl-names = "default";
> > +       pinctrl-0 = <&ext_rgmii_pins>;
> > +       phy-mode = "rgmii-id";
> > +       phy-handle = <&ext_rgmii_phy>;
> > +       phy-supply = <&reg_gmac_3v3>;
> > +       allwinner,rx-delay-ps = <0>;
> > +       allwinner,tx-delay-ps = <0>;
> > +       status = "okay";
> > +};
> > +
> > +&hdmi {
> > +       hvcc-supply = <&reg_bldo2>;
> > +};
> > +
> > +&mdio {
> > +       reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
> > +       reset-delay-us = <15000>;
> > +       reset-post-delay-us = <100000>;
> > +
> > +       ext_rgmii_phy: ethernet-phy@1 {
> > +               compatible = "ethernet-phy-ieee802.3-c22";
> > +               reg = <1>;
> > +
> > +               motorcomm,clk-out-frequency-hz = <125000000>;
> > +               rx-internal-delay-ps = <1950>;
> > +               tx-internal-delay-ps = <1950>;
> > +       };
> > +};
> > +
> > +&mmc1 {
> > +       vmmc-supply = <&reg_wifi_3v3>;
> > +       vqmmc-supply = <&reg_bldo3>;
> > +       mmc-pwrseq = <&wifi_pwrseq>;
> > +       bus-width = <4>;
> > +       non-removable;
> > +       status = "okay";
> > +
> > +       aw859a: wifi@1 {
> > +               reg = <1>;
> > +       };
> > +};
> > +
> > +&mmc2 {
> > +       vmmc-supply = <&reg_cldo1>;
> > +       vqmmc-supply = <&reg_bldo2>;
> > +       mmc-ddr-1_8v;
> > +       mmc-hs200-1_8v;
> > +       cap-mmc-hw-reset;
> > +       non-removable;
> > +       bus-width = <8>;
> > +       status = "okay";
> > +};
> > +
> > +&pio {
> > +       vcc-pg-supply = <&reg_bldo3>;
> > +};
> > +
> > +&r_pio {
> > +       led_green_pin: led-green-pin {
> > +               pins = "PL7";
> > +               function = "gpio_out";
> > +               drive-strength = <10>;
> > +       };
> > +
> > +       led_red_pin: led-red-pin {
> > +               pins = "PL4";
> > +               function = "gpio_out";
> > +               drive-strength = <10>;
> > +       };
> > +};
> > +
> > +&usb2phy {
> > +       /delete-property/ usb0_id_det-gpios;
> > +};
> > +
> > +&usb3phy {
> > +       status = "okay";
> > +};
> >
> > --
> > 2.47.3
> >
> >
  

Patch

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index aa21f58a4..7ea136380 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -41,6 +41,7 @@  dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-beelink-gs1.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3-lts.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
new file mode 100644
index 000000000..d3ea73e1d
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -0,0 +1,188 @@ 
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// Copyright (C) 2025 Jernej Skrabec <jernej.skrabec@gmail.com>
+// Based on sun50i-h6-orangepi-3.dts, which is:
+// Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
+
+#include "sun50i-h6-orangepi.dtsi"
+#include "sun50i-h6-cpu-opp.dtsi"
+#include "sun50i-h6-gpu-opp.dtsi"
+
+/ {
+	model = "OrangePi 3 LTS";
+	compatible = "xunlong,orangepi-3-lts", "allwinner,sun50i-h6";
+
+	aliases {
+		ethernet0 = &emac;
+		ethernet1 = &aw859a;
+	};
+
+	leds {
+		led-0 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&led_red_pin>;
+		};
+
+		led-1 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&led_green_pin>;
+		};
+	};
+
+	reg_gmac_3v3: gmac-3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "gmac-3v3";
+		vin-supply = <&reg_vcc5v>;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		startup-delay-us = <150000>;
+		enable-active-high;
+		gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
+	};
+
+	reg_wifi_3v3: wifi-3v3 {
+		/* 3.3V regulator for WiFi and BT */
+		compatible = "regulator-fixed";
+		regulator-name = "wifi-3v3";
+		vin-supply = <&reg_vcc5v>;
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		enable-active-high;
+		gpio = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+	};
+
+	wifi_pwrseq: wifi-pwrseq {
+		compatible = "mmc-pwrseq-simple";
+		clocks = <&rtc CLK_OSC32K_FANOUT>;
+		clock-names = "ext_clock";
+		reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
+		post-power-on-delay-ms = <200>;
+	};
+};
+
+&axp805 {
+	/* ALDO3 is shorted to CLDO1; both inherit regulator-always-on. */
+	regulators {
+		cldo2 {
+			/* unused */
+			/delete-property/ regulator-min-microvolt;
+			/delete-property/ regulator-max-microvolt;
+		};
+
+		cldo3 {
+			/* unused */
+			/delete-property/ regulator-min-microvolt;
+			/delete-property/ regulator-max-microvolt;
+		};
+
+		/* DCDCB is polyphased with DCDCA. */
+		dcdca {
+			regulator-min-microvolt = <800000>;
+			regulator-max-microvolt = <1160000>;
+			regulator-ramp-delay = <2500>;
+		};
+
+		dcdcc {
+			regulator-ramp-delay = <2500>;
+		};
+	};
+};
+
+&cpu0 {
+	cpu-supply = <&reg_dcdca>;
+};
+
+&cpu1 {
+	cpu-supply = <&reg_dcdca>;
+};
+
+&cpu2 {
+	cpu-supply = <&reg_dcdca>;
+};
+
+&cpu3 {
+	cpu-supply = <&reg_dcdca>;
+};
+
+&dwc3 {
+	status = "okay";
+};
+
+&emac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ext_rgmii_pins>;
+	phy-mode = "rgmii-id";
+	phy-handle = <&ext_rgmii_phy>;
+	phy-supply = <&reg_gmac_3v3>;
+	allwinner,rx-delay-ps = <0>;
+	allwinner,tx-delay-ps = <0>;
+	status = "okay";
+};
+
+&hdmi {
+	hvcc-supply = <&reg_bldo2>;
+};
+
+&mdio {
+	reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
+	reset-delay-us = <15000>;
+	reset-post-delay-us = <100000>;
+
+	ext_rgmii_phy: ethernet-phy@1 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <1>;
+
+		motorcomm,clk-out-frequency-hz = <125000000>;
+		rx-internal-delay-ps = <1950>;
+		tx-internal-delay-ps = <1950>;
+	};
+};
+
+&mmc1 {
+	vmmc-supply = <&reg_wifi_3v3>;
+	vqmmc-supply = <&reg_bldo3>;
+	mmc-pwrseq = <&wifi_pwrseq>;
+	bus-width = <4>;
+	non-removable;
+	status = "okay";
+
+	aw859a: wifi@1 {
+		reg = <1>;
+	};
+};
+
+&mmc2 {
+	vmmc-supply = <&reg_cldo1>;
+	vqmmc-supply = <&reg_bldo2>;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+	cap-mmc-hw-reset;
+	non-removable;
+	bus-width = <8>;
+	status = "okay";
+};
+
+&pio {
+	vcc-pg-supply = <&reg_bldo3>;
+};
+
+&r_pio {
+	led_green_pin: led-green-pin {
+		pins = "PL7";
+		function = "gpio_out";
+		drive-strength = <10>;
+	};
+
+	led_red_pin: led-red-pin {
+		pins = "PL4";
+		function = "gpio_out";
+		drive-strength = <10>;
+	};
+};
+
+&usb2phy {
+	/delete-property/ usb0_id_det-gpios;
+};
+
+&usb3phy {
+	status = "okay";
+};