From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796404429; b=OhsZMzXHECJEtRHW7yGA6rsnp8o4LtpDYB+Xd+sQMIRYpnWQ2cP7Q+NcgXSjeyFwO1vr bQeHGFS2+eSReqO60Ldgw4Z6p9WdgNAosTVggza6Gp+3EhvellFab8VYgNVtxti4ofmA0 6Ha9jM5aYRWKJcvlEJZWRI+dncgg3knIGyGPbWbUBLPeYj2TMd3LHRAEZ4YXzxSRN6aY4 Lt3Cz63nGcTUcIqRLvKqz5hwtX2I/M0HeEfrRI2UQzCNhPDsZ1b4TszMK9FkFNme4YWAu nbYNW+cACqNx8quYDxnffJUGaYUtvTGHuNbkLZaQa8LAjwYlb77KUfh8nOt0+pqliZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404429; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=Js1wYoa7LJ4gU7RQV/Rlu4BB2yQI++mBV3QVKVMVR34=; b=QRWDBchpU6jZDvrDXkZxP3WH+LpedI3xuZYHQt1vioJdljx32G89UlUoiXBK9c2nVR1w FByQtbkkGc3TJ4I0d+XFdW4i3W+8jhD88GozDo3/xMzS43oE6oF0EoseIjW8GGW8LcuAT qSDsVsQCS2MlT34RsXxthsbSpp759L1aoTLyGeyxGfZqG/AYYTqflQZ3qGv1/t6MhCU2O C8+rGyz0Fj5ug76E94aTUsKD8uoO1shwf8SxRTUOzIIw9oHuZlRrRSPy2TO4/L+BsMggA EOpSdqVFN9/oG1dYGdP+CcJoc7364jO0zNL+1G6Jks/iNyG5Ndy2EfcHxV+pOfCfS/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RGrNhZqp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 820CC606A335; Fri, 4 Dec 2026 17:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=RGrNhZqp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 258641F00A18; Fri, 4 Dec 2026 17:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796404429; bh=Js1wYoa7LJ4gU7RQV/Rlu4BB2yQI++mBV3QVKVMVR34=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RGrNhZqpa+j0xmebdqbPLeB0wxO/XgWze7pHLIDo01oJz9q8mshFU1MMgQ+4P4fUm 6NFUR8lyHWFJqjMLo6cAeqmN2B3+DIGlFQ4EMHIoYWCoISA/gZ31dLKuCJ+26aL7Gl y1/ex9WX+u0OpzIWD2YoJMJS8u0Ncq/+ZwnVVzSiQoRu9CwA4yqoQSE3ydeDMf5z9p KqOantOPCxEZhSLQvEvi94JPk1SykQLHNK3Eub5oiXdRPRzp3dn3JCcxWlL/AI2bl5 Dj6DWqTFwytMWmw+CaZ8d9GO7yHxRgPGNKcYyDNgxWpFOrkmTpscYxQ7aeklKqcprR eekwbLElaQxdg== From: Chen-Yu Tsai To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Andre Przywara , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Filipescu , =?UTF-8?q?Ond=C5=99ej=20Jirman?= , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , Jagan Teki Subject: [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi Date: Sat, 5 Dec 2026 01:12:55 +0800 Message-ID: <20261204171319.745792-6-wens@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261204171319.745792-1-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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