From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796467935; b=HhUf+tZVsNCzuEWgLS7D/BZvga0ZOCuymyJcq+PyrWqdkxpG98dn1DzdLIKkEewDZEeJ /QliOsRxM+XaW39G4Ym7H4/dEVv7Zz6f/HVkj2zoak4d4imvBEYWM65qVBhbLumFIuWF8 pe8Q2Yiq7/kADkRxTDRpcA655dCeuTa4e/WyD3k/dKc0wfEXhukhP43DIueL5TrmeI1Zs she2ggs+yjyouJ3dncLYtDTxBT73898yYwKESrnF6+SyRU3wYJIasgK0DH0JQrBb0BWMd BzK3udc9qZVz7TM89b36Cu1wGvUFLvjcLNRVWtfJVbUbSz016jrww/ktwwuApXfBqWA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796467935; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=aqtBBF21YRZFBRg14+TS0R9PWS/QPURRlTLS8/pYDpM=; b=WcQvkSm0errAwMReMDW64ycsecsJy+y3xJJEQnOfQHYiIb9TK47E3PTWAV9y8tsr+D2C Tva+HMzgyzQrNXhHaiGepXtN4Ess2qVDnmnp+Arj6TFQHkcygWqc5rInGJr6phT8I5fA8 P9qhqXJ998KB05ha+8OvLVaB9AZJWQ3k1Yq72rIL1GLPiUdshnlTaOJuT2NgatEBTtbxY y3MceGwXB8vAaWYl51uIcqlUwYoMxBV3YFIqaWDdhxjMHChYgeYSxSVdszzAnRwksCRsn Fsh8w5rux2xI/X34Dc0MK6DbZYuc01WWzy3ZrhEb/aeJX9GiINj2z3/bEozERe2Irew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=ad2k8Z3m; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89C99606A322 for ; Sat, 5 Dec 2026 10:52:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 89C99606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=ad2k8Z3m 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-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-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 {