* [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups
@ 2026-12-04 17:12 Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
` (8 more replies)
0 siblings, 9 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
Hi everyone,
This series is a set of cleanups for the Allwinner H6 Orange Pi boards
(One Plus, Lite 2, 3, and 3 LTS) to reuse the common
sun50i-h6-orangepi.dtsi file as much as possible and fix discrepancies
and board differences found when checking all four schematics.
Specifically, the series:
- Converts sun50i-h6-orangepi-3.dts to include sun50i-h6-orangepi.dtsi
instead of duplicating most of it.
- Moves board-specific AXP805 regulators out of the common .dtsi
(CLDO2/CLDO3 to Lite 2; ALDO3 to Orange Pi 3 and 3 LTS) and drops the
leftover One Plus model/compatible from the .dtsi.
- Fixes pio vcc-pg-supply in the common .dtsi from ALDO1 (3.3 V) to
BLDO3 (1.8 V) to match the One Plus, Lite 2, and 3 LTS schematics.
- Moves common hardware properties into the .dtsi: HDMI hvcc-supply
(BLDO2), per-LED pinctrl selecting the weakest 10 mA drive strength
(all four boards wire both LEDs to ground without series resistors),
and cpu-supply on cpu1-cpu3.
- Drops unused usb0_id_det-gpios (all four boards force USB0 to host
mode and Port C lacks IRQ support, causing unnecessary polling),
leaving an inline comment documenting the pins.
This series is based on sunxi/dt-for-7.5 (on top of the Orange Pi 3 LTS
support). Each commit was verified by compiling and diffing all four
Orange Pi H6 DTBs against its parent to confirm only the intended
changes appear; none of the patches were hardware-tested.
The schematic cross-check, patches, and commit messages were drafted
with Antigravity (AI coding assistant) under my direction and review.
Thanks,
ChenYu
Chen-Yu Tsai (9):
arm64: dts: allwinner: h6: orangepi-3: Use common
sun50i-h6-orangepi.dtsi
arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2
arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi
arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to common
dtsi
arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi
arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores
arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios
arm64: dts: allwinner: h6: orangepi: Drop board model and compatible
from dtsi
arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3
LTS
.../allwinner/sun50i-h6-orangepi-3-lts.dts | 55 +---
.../dts/allwinner/sun50i-h6-orangepi-3.dts | 262 ++----------------
.../allwinner/sun50i-h6-orangepi-lite2.dts | 46 +--
.../dts/allwinner/sun50i-h6-orangepi.dtsi | 62 +++--
4 files changed, 93 insertions(+), 332 deletions(-)
--
2.47.3
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
` (7 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
The Orange Pi 3 shares most of its base hardware (PMIC, regulators,
HDMI, LEDs, SD card, IR, UART0, USB2 host controllers) with the other
Orange Pi H6 boards described in sun50i-h6-orangepi.dtsi.
Refactor sun50i-h6-orangepi-3.dts to include sun50i-h6-orangepi.dtsi
and keep only the Orange Pi 3 specific nodes and overrides, deleting
and re-adding empty nodes for the unused BLDO3/CLDO2/CLDO3 regulators
and removing the inherited vcc-pm-supply on r_pio.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
One Plus, Lite 2, and 3 LTS DTBs are identical, and Orange Pi 3 differs
only in inheriting the common regulator names and DCDCA's 810 mV
minimum voltage (still below the 820 mV lowest CPU OPP).
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../dts/allwinner/sun50i-h6-orangepi-3.dts | 258 ++----------------
1 file changed, 18 insertions(+), 240 deletions(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index ce82aa265cfd..61ca60614d85 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -1,70 +1,16 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (C) 2019 Ondřej Jirman <megous@megous.com>
-/dts-v1/;
-
-#include "sun50i-h6.dtsi"
-#include "sun50i-h6-cpu-opp.dtsi"
-#include "sun50i-h6-gpu-opp.dtsi"
-
-#include <dt-bindings/gpio/gpio.h>
+#include "sun50i-h6-orangepi.dtsi"
/ {
model = "OrangePi 3";
compatible = "xunlong,orangepi-3", "allwinner,sun50i-h6";
aliases {
- serial0 = &uart0;
serial1 = &uart1;
};
- chosen {
- stdout-path = "serial0:115200n8";
- };
-
- connector {
- compatible = "hdmi-connector";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
- type = "a";
-
- port {
- hdmi_con_in: endpoint {
- remote-endpoint = <&hdmi_out_con>;
- };
- };
- };
-
- ext_osc32k: ext-osc32k-clk {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- clock-frequency = <32768>;
- clock-output-names = "ext_osc32k";
- };
-
- leds {
- compatible = "gpio-leds";
-
- led-0 {
- label = "orangepi:red:power";
- gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
- default-state = "on";
- };
-
- led-1 {
- label = "orangepi:green:status";
- gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
- };
- };
-
- reg_vcc5v: vcc5v {
- /* board wide 5V supply directly from the DC jack */
- compatible = "regulator-fixed";
- regulator-name = "vcc-5v";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- regulator-always-on;
- };
-
reg_vcc33_wifi: vcc33-wifi {
/* Always on 3.3V regulator for WiFi and BT */
compatible = "regulator-fixed";
@@ -94,46 +40,27 @@ wifi_pwrseq: wifi-pwrseq {
};
};
-&cpu0 {
- cpu-supply = <®_dcdca>;
-};
+&axp805 {
+ regulators {
+ /delete-node/ bldo3;
+ /delete-node/ cldo2;
+ /delete-node/ cldo3;
-&de {
- status = "okay";
-};
-
-&dwc3 {
- status = "okay";
-};
-
-&ehci0 {
- status = "okay";
-};
-
-&ehci3 {
- status = "okay";
-};
-
-&gpu {
- mali-supply = <®_dcdcc>;
- status = "okay";
-};
+ bldo3 {
+ /* unused */
+ };
-&hdmi {
- status = "okay";
-};
+ cldo2 {
+ /* unused */
+ };
-&hdmi_out {
- hdmi_out_con: endpoint {
- remote-endpoint = <&hdmi_con_in>;
+ cldo3 {
+ /* unused */
+ };
};
};
-&mmc0 {
- vmmc-supply = <®_cldo1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
- disable-wp;
- bus-width = <4>;
+&dwc3 {
status = "okay";
};
@@ -163,148 +90,12 @@ &mmc2 {
status = "okay";
};
-&ohci0 {
- status = "okay";
-};
-
-&ohci3 {
- status = "okay";
-};
-
&pio {
- vcc-pc-supply = <®_bldo2>;
- vcc-pd-supply = <®_cldo1>;
vcc-pg-supply = <®_vcc_wifi_io>;
};
-&r_i2c {
- status = "okay";
-
- axp805: pmic@36 {
- compatible = "x-powers,axp805", "x-powers,axp806";
- reg = <0x36>;
- interrupt-parent = <&r_intc>;
- interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
- interrupt-controller;
- #interrupt-cells = <1>;
- x-powers,self-working-mode;
- vina-supply = <®_vcc5v>;
- vinb-supply = <®_vcc5v>;
- vinc-supply = <®_vcc5v>;
- vind-supply = <®_vcc5v>;
- vine-supply = <®_vcc5v>;
- aldoin-supply = <®_vcc5v>;
- bldoin-supply = <®_vcc5v>;
- cldoin-supply = <®_vcc5v>;
-
- regulators {
- reg_aldo1: aldo1 {
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-pl-led-ir";
- };
-
- reg_aldo2: aldo2 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc33-audio-tv-ephy-mac";
- };
-
- /* ALDO3 is shorted to CLDO1 */
- reg_aldo3: aldo3 {
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1";
- };
-
- reg_bldo1: bldo1 {
- regulator-always-on;
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-name = "vcc18-dram-bias-pll";
- };
-
- reg_bldo2: bldo2 {
- regulator-always-on;
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-name = "vcc-efuse-pcie-hdmi-pc";
- };
-
- bldo3 {
- /* unused */
- };
-
- bldo4 {
- /* unused */
- };
-
- reg_cldo1: cldo1 {
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2";
- };
-
- cldo2 {
- /* unused */
- };
-
- cldo3 {
- /* unused */
- };
-
- reg_dcdca: dcdca {
- regulator-always-on;
- regulator-min-microvolt = <800000>;
- regulator-max-microvolt = <1160000>;
- regulator-ramp-delay = <2500>;
- regulator-name = "vdd-cpu";
- };
-
- reg_dcdcc: dcdcc {
- regulator-enable-ramp-delay = <32000>;
- regulator-min-microvolt = <810000>;
- regulator-max-microvolt = <1080000>;
- regulator-ramp-delay = <2500>;
- regulator-name = "vdd-gpu";
- };
-
- reg_dcdcd: dcdcd {
- regulator-always-on;
- regulator-min-microvolt = <960000>;
- regulator-max-microvolt = <960000>;
- regulator-name = "vdd-sys";
- };
-
- reg_dcdce: dcdce {
- regulator-always-on;
- regulator-min-microvolt = <1200000>;
- regulator-max-microvolt = <1200000>;
- regulator-name = "vcc-dram";
- };
-
- sw {
- /* unused */
- };
- };
- };
-};
-
-&r_ir {
- status = "okay";
-};
-
-&rtc {
- clocks = <&ext_osc32k>;
-};
-
-&uart0 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart0_ph_pins>;
- status = "okay";
+&r_pio {
+ /delete-property/ vcc-pm-supply;
};
/* There's the BT part of the AP6256 connected to that UART */
@@ -325,21 +116,8 @@ bluetooth {
};
};
-&usb2otg {
- /*
- * This board doesn't have a controllable VBUS even though it
- * does have an ID pin. Using it as anything but a USB host is
- * unsafe.
- */
- dr_mode = "host";
- status = "okay";
-};
-
&usb2phy {
usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
- usb0_vbus-supply = <®_vcc5v>;
- usb3_vbus-supply = <®_vcc5v>;
- status = "okay";
};
&usb3phy {
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
` (6 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
Among the Allwinner H6 Orange Pi boards using sun50i-h6-orangepi.dtsi,
only the Orange Pi Lite 2 actually uses AXP805 CLDO2 and CLDO3 (shorted
together for Wi-Fi 3.3 V). The One Plus has no Wi-Fi, while the 3 and
3 LTS use a dedicated SY8089A buck regulator instead.
Mark cldo2 and cldo3 as unused in sun50i-h6-orangepi.dtsi, move their
definitions into sun50i-h6-orangepi-lite2.dts, and drop the now
unnecessary node/property deletions from the Orange Pi 3 and 3 LTS
device trees.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
Lite 2 and Orange Pi 3 DTBs are identical, One Plus drops the unused
cldo2/cldo3 regulator properties, and 3 LTS drops the leftover
vcc-wifi-1/vcc-wifi-2 names.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../allwinner/sun50i-h6-orangepi-3-lts.dts | 12 -----
.../dts/allwinner/sun50i-h6-orangepi-3.dts | 10 ----
.../allwinner/sun50i-h6-orangepi-lite2.dts | 46 +++++++++++--------
.../dts/allwinner/sun50i-h6-orangepi.dtsi | 12 ++---
4 files changed, 32 insertions(+), 48 deletions(-)
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
index 6dbdba4a8a70..06d872a78ee5 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -60,18 +60,6 @@ wifi_pwrseq: wifi-pwrseq {
&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>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index 61ca60614d85..1b2181ce603d 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -43,20 +43,10 @@ wifi_pwrseq: wifi-pwrseq {
&axp805 {
regulators {
/delete-node/ bldo3;
- /delete-node/ cldo2;
- /delete-node/ cldo3;
bldo3 {
/* unused */
};
-
- cldo2 {
- /* unused */
- };
-
- cldo3 {
- /* unused */
- };
};
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts
index 0911c537cc6b..c30137174481 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts
@@ -20,6 +20,34 @@ wifi_pwrseq: pwrseq {
};
};
+&axp805 {
+ regulators {
+ reg_cldo2: cldo2 {
+ /*
+ * This regulator is connected with CLDO3.
+ * Before the kernel can support synchronized
+ * enable of coupled regulators, keep them
+ * both always on as a ugly hack.
+ */
+ regulator-always-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-wifi-1";
+ };
+
+ reg_cldo3: cldo3 {
+ /*
+ * This regulator is connected with CLDO2.
+ * See the comments for CLDO2.
+ */
+ regulator-always-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-wifi-2";
+ };
+ };
+};
+
&mmc1 {
vmmc-supply = <®_cldo2>;
vqmmc-supply = <®_bldo3>;
@@ -37,24 +65,6 @@ brcm: wifi@1 {
};
};
-®_cldo2 {
- /*
- * This regulator is connected with CLDO3.
- * Before the kernel can support synchronized
- * enable of coupled regulators, keep them
- * both always on as a ugly hack.
- */
- regulator-always-on;
-};
-
-®_cldo3 {
- /*
- * This regulator is connected with CLDO2.
- * See the comments for CLDO2.
- */
- regulator-always-on;
-};
-
/* There's the BT part of the AP6255 connected to that UART */
&uart1 {
pinctrl-names = "default";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index 57b137755227..a6e9731b4e2b 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -192,16 +192,12 @@ reg_cldo1: cldo1 {
regulator-name = "vcc-3v3";
};
- reg_cldo2: cldo2 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-wifi-1";
+ cldo2 {
+ /* unused */
};
- reg_cldo3: cldo3 {
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc-wifi-2";
+ cldo3 {
+ /* unused */
};
reg_dcdca: dcdca {
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:20 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to " Chen-Yu Tsai
` (5 subsequent siblings)
8 siblings, 1 reply; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
According to the schematics, the Orange Pi One Plus, Lite 2, and 3 LTS
all power VCC-PG (alongside VCC-PM) from AXP805 BLDO3 (1.8 V) rather
than ALDO1 (3.3 V), while the Orange Pi 3 overrides it to its own 1.8 V
vcc-wifi-io regulator.
Point pio vcc-pg-supply in sun50i-h6-orangepi.dtsi to BLDO3 so Lite 2
and One Plus configure Port G for the correct 1.8 V bias, and drop the
now redundant override from sun50i-h6-orangepi-3-lts.dts.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
Orange Pi 3 and 3 LTS DTBs are identical, and One Plus and Lite 2 only
change pio vcc-pg-supply from aldo1 to bldo3.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
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
index 06d872a78ee5..4c500ccc34ba 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -125,10 +125,6 @@ &mmc2 {
status = "okay";
};
-&pio {
- vcc-pg-supply = <®_bldo3>;
-};
-
&r_pio {
led_green_pin: led-green-pin {
pins = "PL7";
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index a6e9731b4e2b..0fe3e417f134 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -116,7 +116,7 @@ &ohci3 {
&pio {
vcc-pc-supply = <®_bldo2>;
vcc-pd-supply = <®_cldo1>;
- vcc-pg-supply = <®_aldo1>;
+ vcc-pg-supply = <®_bldo3>;
};
&r_i2c {
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to common dtsi
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (2 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
` (4 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
All four Orange Pi H6 boards (One Plus, Lite 2, 3, and 3 LTS) power
VCC18-HDMI from AXP805 BLDO2.
Move hvcc-supply into sun50i-h6-orangepi.dtsi and drop the now
redundant override from sun50i-h6-orangepi-3-lts.dts.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
3 LTS DTB is identical, and One Plus, Lite 2, and Orange Pi 3 only add
hvcc-supply referencing bldo2 on the hdmi node.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 1 +
2 files changed, 1 insertion(+), 4 deletions(-)
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
index 4c500ccc34ba..7e3c8e88d5f4 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -82,10 +82,6 @@ &emac {
status = "okay";
};
-&hdmi {
- hvcc-supply = <®_bldo2>;
-};
-
&mdio {
reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */
reset-delay-us = <15000>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index 0fe3e417f134..f1ce38fb3e04 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -88,6 +88,7 @@ &gpu {
};
&hdmi {
+ hvcc-supply = <®_bldo2>;
status = "okay";
};
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (3 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to " Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:26 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores Chen-Yu Tsai
` (3 subsequent siblings)
8 siblings, 1 reply; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
On all four Orange Pi H6 boards (One Plus, Lite 2, 3, and 3 LTS), both
the red power LED (PL4) and green status LED (PL7) are wired directly
to ground with no current-limiting series resistors.
Move the per-LED pinctrl states selecting the weakest GPIO drive
strength (10 mA) from sun50i-h6-orangepi-3-lts.dts into the common
sun50i-h6-orangepi.dtsi.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
3 LTS DTB is identical (aside from phandle numbering), and One Plus,
Lite 2, and Orange Pi 3 only add the LED pinctrl nodes and references.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../allwinner/sun50i-h6-orangepi-3-lts.dts | 26 -------------------
.../dts/allwinner/sun50i-h6-orangepi.dtsi | 16 ++++++++++++
2 files changed, 16 insertions(+), 26 deletions(-)
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
index 7e3c8e88d5f4..0d1a899a7446 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -14,18 +14,6 @@ aliases {
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";
@@ -121,20 +109,6 @@ &mmc2 {
status = "okay";
};
-&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;
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index f1ce38fb3e04..fbf881ccaadc 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -46,12 +46,16 @@ leds {
led-0 {
label = "orangepi:red:power";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_red_pin>;
gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
default-state = "on";
};
led-1 {
label = "orangepi:green:status";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_green_pin>;
gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
};
};
@@ -244,6 +248,18 @@ &r_ir {
&r_pio {
vcc-pm-supply = <®_bldo3>;
+
+ 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>;
+ };
};
&rtc {
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (4 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Chen-Yu Tsai
` (2 subsequent siblings)
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
All four Cortex-A53 cores on the Allwinner H6 share the same VDD-CPU
supply (AXP805 DCDCA+DCDCB). Add cpu-supply to cpu1 through cpu3 in
sun50i-h6-orangepi.dtsi so every core describes its power supply.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
all four DTBs only add cpu-supply referencing dcdca on cpu1-cpu3.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index fbf881ccaadc..f77a6c496a75 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -74,6 +74,18 @@ &cpu0 {
cpu-supply = <®_dcdca>;
};
+&cpu1 {
+ cpu-supply = <®_dcdca>;
+};
+
+&cpu2 {
+ cpu-supply = <®_dcdca>;
+};
+
+&cpu3 {
+ cpu-supply = <®_dcdca>;
+};
+
&de {
status = "okay";
};
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (5 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS Chen-Yu Tsai
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
All Orange Pi H6 boards force usb2otg to host-only mode because USB0
VBUS is hardwired to 5 V. In host mode, phy-sun4i-usb never reads
usb0_id_det-gpios, and because H6 Port C has no interrupt support,
specifying PC6 or PC15 only forces unnecessary periodic polling (in
addition to conflicting with eMMC on PC6 for boards with eMMC).
Drop usb0_id_det-gpios from sun50i-h6-orangepi.dtsi and remove the
board-specific override and deletion from Orange Pi 3 and 3 LTS.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
3 LTS DTB is identical, and One Plus, Lite 2, and Orange Pi 3 only drop
usb0_id_det-gpios from usb2phy.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 9 ++++++---
3 files changed, 6 insertions(+), 11 deletions(-)
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
index 0d1a899a7446..a571fb1adf89 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -109,10 +109,6 @@ &mmc2 {
status = "okay";
};
-&usb2phy {
- /delete-property/ usb0_id_det-gpios;
-};
-
&usb3phy {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index 1b2181ce603d..27bba0455093 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -106,10 +106,6 @@ bluetooth {
};
};
-&usb2phy {
- usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
-};
-
&usb3phy {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index f77a6c496a75..7e97d72a7bfa 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -286,8 +286,7 @@ &uart0 {
&usb2otg {
/*
- * OrangePi Lite 2 and One Plus, where this DT is used, don't
- * have a controllable VBUS even though they do have an ID pin.
+ * OrangePi H6 boards don't have a controllable VBUS on USB0.
* Using it as anything but a USB host is unsafe.
*/
dr_mode = "host";
@@ -295,7 +294,11 @@ &usb2otg {
};
&usb2phy {
- usb0_id_det-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */
+ /*
+ * USB0 ID detect (PC6 on One Plus and Lite 2, PC15 on Orange Pi 3;
+ * absent on 3 LTS) is not assigned because usb2otg is forced to
+ * host-only mode and Port C has no IRQ support (causing polling).
+ */
usb0_vbus-supply = <®_vcc5v>;
usb3_vbus-supply = <®_vcc5v>;
status = "okay";
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (6 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS Chen-Yu Tsai
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
Every board DTS including sun50i-h6-orangepi.dtsi sets its own model
and compatible properties. Remove the leftover OrangePi One Plus
model and compatible from the common .dtsi file.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
all four DTBs are identical.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index 7e97d72a7bfa..de8f570249d7 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -11,9 +11,6 @@
#include <dt-bindings/gpio/gpio.h>
/ {
- model = "OrangePi One Plus";
- compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
-
aliases {
serial0 = &uart0;
};
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
` (7 preceding siblings ...)
2026-12-04 17:12 ` [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi Chen-Yu Tsai
@ 2026-12-04 17:12 ` Chen-Yu Tsai
8 siblings, 0 replies; 12+ messages in thread
From: Chen-Yu Tsai @ 2026-12-04 17:12 UTC (permalink / raw)
To: Chen-Yu Tsai, Jernej Skrabec, Samuel Holland
Cc: Andre Przywara, linux-sunxi, devicetree, linux-arm-kernel,
Cristian Filipescu, Ondřej Jirman, Clément Péron,
Jagan Teki
On the Orange Pi One Plus and Lite 2 schematics, AXP805 ALDO3 is only
connected to an unused DDR4 VCC25-DRAM net (both boards use LPDDR3).
On the Orange Pi 3 and 3 LTS, ALDO3 is shorted directly to CLDO1 to
share the 3.3 V I/O rail.
Mark aldo3 as unused in sun50i-h6-orangepi.dtsi and define it (3.3 V,
always-on, named "vcc-3v3-2") in sun50i-h6-orangepi-3.dts and
sun50i-h6-orangepi-3-lts.dts.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
One Plus and Lite 2 drop the unused aldo3 regulator properties, and
Orange Pi 3 and 3 LTS only change aldo3 regulator-name from vcc25-dram
to vcc-3v3-2.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 9 ++++++++-
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 8 ++++++++
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 7 ++-----
3 files changed, 18 insertions(+), 6 deletions(-)
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
index a571fb1adf89..67fe3adc47dc 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -46,8 +46,15 @@ wifi_pwrseq: wifi-pwrseq {
};
&axp805 {
- /* ALDO3 is shorted to CLDO1; both inherit regulator-always-on. */
regulators {
+ /* ALDO3 is shorted to CLDO1. */
+ reg_aldo3: aldo3 {
+ regulator-always-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-3v3-2";
+ };
+
/* DCDCB is polyphased with DCDCA. */
dcdca {
regulator-min-microvolt = <800000>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index 27bba0455093..435460af174e 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -42,6 +42,14 @@ wifi_pwrseq: wifi-pwrseq {
&axp805 {
regulators {
+ /* ALDO3 is shorted to CLDO1. */
+ reg_aldo3: aldo3 {
+ regulator-always-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-3v3-2";
+ };
+
/delete-node/ bldo3;
bldo3 {
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index de8f570249d7..668fe0f4fd2c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -167,11 +167,8 @@ reg_aldo2: aldo2 {
regulator-name = "vcc-ac200";
};
- reg_aldo3: aldo3 {
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-name = "vcc25-dram";
+ aldo3 {
+ /* unused */
};
reg_bldo1: bldo1 {
--
2.47.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
@ 2026-12-04 17:20 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-12-04 17:20 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: linux-sunxi, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] arm64: dts: allwinner: missing Fixes trailer for vcc-pg-supply
fix
--
commit a2aec0b33e919ee60b854b64cbd307ad4a85fe2c
Author: Chen-Yu Tsai <wens@kernel.org>
> arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi
>
> According to the schematics, the Orange Pi One Plus, Lite 2, and 3 LTS
> all power VCC-PG (alongside VCC-PM) from AXP805 BLDO3 (1.8 V) rather
> than ALDO1 (3.3 V), while the Orange Pi 3 overrides it to its own 1.8 V
> vcc-wifi-io regulator.
>
> Point pio vcc-pg-supply in sun50i-h6-orangepi.dtsi to BLDO3 so Lite 2
> and One Plus configure Port G for the correct 1.8 V bias, and drop the
> now redundant override from sun50i-h6-orangepi-3-lts.dts.
>
> Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
> Orange Pi 3 and 3 LTS DTBs are identical, and One Plus and Lite 2 only
> change pio vcc-pg-supply from aldo1 to bldo3.
>
> This patch and commit message were drafted by Antigravity (AI coding
> assistant) based on the board schematics and user direction.
>
> Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
[Severity: Low]
This fixes the wrong vcc-pg-supply assignment in sun50i-h6-orangepi.dtsi.
Should this include:
Fixes: b928fd4674fe ("arm64: dts: allwinner: h6: orangepi: Add gpio power supply")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204171319.745792-1-wens@kernel.org?part=3
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
@ 2026-12-04 17:26 ` sashiko-bot
0 siblings, 0 replies; 12+ messages in thread
From: sashiko-bot @ 2026-12-04 17:26 UTC (permalink / raw)
To: Chen-Yu Tsai; +Cc: linux-sunxi, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: allwinner: LED pinctrl conflicts with strict
r_pio pinmux mode
--
commit e782921751eec9fe8545aae8ed5aadf0e48f0137
Author: Chen-Yu Tsai <wens@kernel.org>
arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi
This commit moves the per-LED pinctrl states and r_pio pin nodes for the
power and status LEDs from sun50i-h6-orangepi-3-lts.dts into the shared
sun50i-h6-orangepi.dtsi.
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
> index f1ce38fb3e044..fbf881ccaadc0 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
> @@ -46,12 +46,16 @@ leds {
>
> led-0 {
> label = "orangepi:red:power";
> + pinctrl-names = "default";
> + pinctrl-0 = <&led_red_pin>;
> gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
> default-state = "on";
> };
>
> led-1 {
> label = "orangepi:green:status";
> + pinctrl-names = "default";
> + pinctrl-0 = <&led_green_pin>;
> gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
> };
> };
> @@ -244,6 +248,18 @@ &r_ir {
>
> &r_pio {
> vcc-pm-supply = <®_bldo3>;
> +
> + 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>;
> + };
> };
>
> &rtc {
[Severity: Medium]
Does combining gpios with per-LED pinctrl-0 (function = "gpio_out") on
PL4 and PL7 conflict with r_pio's strict pinmux mode?
Allwinner H6 r_pio leaves disable_strict_mode unset, so sunxi_pmx_ops
runs with strict = true and no function_is_gpio callback, while
sunxi_pctrl_dt_node_to_map() always emits a mux setting for each
pinctrl node.
During gpio_led_probe(), gpio_leds_create() requests PL4 and PL7 as
GPIOs via devm_fwnode_gpiod_get(), setting desc->gpio_owner.
create_gpio_led() then calls devm_pinctrl_get_select_default() ->
pinmux_enable_setting() -> pin_request() on the same pins.
On Linux 6.5 through 6.17 (including 6.6 and 6.12 LTS), before commit
11aa02d6a9c2 ("pinctrl: allow to mark pin functions as requestable
GPIOs"), pin_request() rejects this with -EINVAL and aborts
gpio_led_probe(), leaving both LEDs broken on One Plus, Lite 2, and 3.
On current mainline, probe only succeeds because that commit sets
gpio_ok = true when desc->mux_setting is NULL, accidentally bypassing
strict-mode rejection during pinmux_enable_setting().
If that bypass is fixed or pinctrl is applied before GPIO acquisition,
gpio_led_probe() will fail with -EINVAL on all four boards unless
pinctrl-sunxi.c implements pinmux_ops.function_is_gpio for gpio_in and
gpio_out.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204171319.745792-1-wens@kernel.org?part=5
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2026-12-04 17:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
2026-12-04 17:20 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to " Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
2026-12-04 17:26 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS Chen-Yu Tsai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox