From: Chen-Yu Tsai <wens@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej@kernel.org>,
Samuel Holland <samuel@sholland.org>
Cc: "Andre Przywara" <andre.przywara@arm.com>,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Cristian Filipescu" <filipescu.cristian@gmail.com>,
"Ondřej Jirman" <megi@xff.cz>,
"Clément Péron" <peron.clem@gmail.com>,
"Jagan Teki" <jagan@edgeble.ai>
Subject: [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi
Date: Sat, 5 Dec 2026 01:12:55 +0800 [thread overview]
Message-ID: <20261204171319.745792-6-wens@kernel.org> (raw)
In-Reply-To: <20261204171319.745792-1-wens@kernel.org>
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
next prev parent reply other threads:[~2026-12-04 17:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
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-05 0:07 ` Andre Przywara
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
2026-12-05 0:14 ` Andre Przywara
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 ` Chen-Yu Tsai [this message]
2026-12-04 17:26 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " sashiko-bot
2026-12-05 10:51 ` Andre Przywara
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-05 10:54 ` Andre Przywara
2026-12-05 10:59 ` 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-05 11:09 ` Andre Przywara
2026-12-05 11:54 ` Ondřej Jirman
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-05 0:20 ` Andre Przywara
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204171319.745792-6-wens@kernel.org \
--to=wens@kernel.org \
--cc=andre.przywara@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=filipescu.cristian@gmail.com \
--cc=jagan@edgeble.ai \
--cc=jernej@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=megi@xff.cz \
--cc=peron.clem@gmail.com \
--cc=samuel@sholland.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.