[PATCH v4 2/2] arm64: dts: allwinner: h6: Add Orange Pi 3 LTS
From: Cristian Filipescu via B4 Relay
Date: Sun Nov 15 2026 - 18:51:04 EST
From: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>
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@xxxxxxxxx/
Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>
Signed-off-by: Cristian Filipescu <filipescu.cristian@xxxxxxxxx>
---
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@xxxxxxxxx>
+// Based on sun50i-h6-orangepi-3.dts, which is:
+// Copyright (C) 2019 Ondřej Jirman <megous@xxxxxxxxxx>
+
+#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 = <®_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 = <®_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 = <®_dcdca>;
+};
+
+&cpu1 {
+ cpu-supply = <®_dcdca>;
+};
+
+&cpu2 {
+ cpu-supply = <®_dcdca>;
+};
+
+&cpu3 {
+ cpu-supply = <®_dcdca>;
+};
+
+&dwc3 {
+ status = "okay";
+};
+
+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ext_rgmii_pins>;
+ phy-mode = "rgmii-id";
+ phy-handle = <&ext_rgmii_phy>;
+ phy-supply = <®_gmac_3v3>;
+ allwinner,rx-delay-ps = <0>;
+ allwinner,tx-delay-ps = <0>;
+ status = "okay";
+};
+
+&hdmi {
+ hvcc-supply = <®_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 = <®_wifi_3v3>;
+ vqmmc-supply = <®_bldo3>;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ aw859a: wifi@1 {
+ reg = <1>;
+ };
+};
+
+&mmc2 {
+ vmmc-supply = <®_cldo1>;
+ vqmmc-supply = <®_bldo2>;
+ mmc-ddr-1_8v;
+ mmc-hs200-1_8v;
+ cap-mmc-hw-reset;
+ non-removable;
+ bus-width = <8>;
+ status = "okay";
+};
+
+&pio {
+ vcc-pg-supply = <®_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