From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD540606A322 for ; Sat, 5 Dec 2026 10:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mxu8L26w; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=ad2k8Z3m DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=aqtBBF21YRZFBRg14+TS0R9PWS/QPURRlTLS8/pYDpM=; b=mxu8L26w2xJChY a+0piwbDMSBngMDTgBJjXYLM+j25+IqcyQ3yYgd+rwMq23iZtJ6p7364FJBWo2GVBv0VSw1N8bk5J HiiC7JR+UfYjz6KHEb7CLLK7Bk0ZfdJiEJwNWETjyFHxp5lumT5JCIwnZjJXh2JfcafqVJq5r029i sYBGDAM7SeQTavVHgN7us1YgVq61k5VKjQgfj6+ERcaY/6HxL5lb2ov5tINpAZYZzlLOc/59qwE9l akstnsknrOnc3ANTTpGHmJ+g0OgzJ3yEETo5uaUziU7npH7yM+fde+tRd4bE4RjdFsPB2MrrM/aQ+ /9qeC/hBnSvIykEtgrLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZnNN-00000002KUg-2VQ0; Sat, 05 Dec 2026 10:52:21 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZnNJ-00000002KTf-191E for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 10:52:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6E732F; Sat, 5 Dec 2026 02:52:10 -0800 (PST) Received: from ryzen.lan (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D39933F632; Sat, 5 Dec 2026 02:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796467933; bh=S+sbZq6bOfl7U4vGiR3VFOKHm91Bab79NflLlgW1ttI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ad2k8Z3mhrAIrjjFQHkhzMIqM4Fy+unTj8rLxPqkkfC8bOtEkebjpDz+RuLwxQ41d Ijgn7QRbKV4+Jmh7dTpKeeRupXroqvuNii756bW2cibttbq+Ic/NzhgSXvXbNBsllx 9SVhed3bVj63BcpEjbL4eIjAXaUKZfSdeLVnXlMc= Date: Sat, 5 Dec 2026 11:51:54 +0100 From: Andre Przywara To: Chen-Yu Tsai Cc: Jernej Skrabec , Samuel Holland , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Filipescu , =?UTF-8?B?T25kxZllag==?= Jirman , =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Jagan Teki Subject: Re: [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi Message-ID: <20261205115154.4c19176c@ryzen.lan> In-Reply-To: <20261204171319.745792-6-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> <20261204171319.745792-6-wens@kernel.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.4.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261205_025217_475578_4D704EF7 X-CRM114-Status: GOOD ( 15.75 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, 5 Dec 2026 01:12:55 +0800 Chen-Yu Tsai wrote: > 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 Yes, for the LTS it's just a move, all others gain the pinctrl properties: Reviewed-by: Andre Przywara Cheers, Andre > --- > .../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 {