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=1796429672; b=GdKdFZP4SieYo6CNTRRj+sC7+2VPGfnc+TWjcFhiIqLgmB0SJ4mJqtuQkjyIc6YBDKXF XoNy7POqS6mDvn0IR+wh68he5hVOfhTVOFCBpwD1YVCtZne82QUjsT+vXqp3DKFslpfcC EVF75oQ1vaAH7HNnDGAQ8GK3rFaMhM6+BrOQn2YBTLfkISilcPUVMnRMIujp4qD80XkgF fNhx8D/jT9Rmsg+oc3UIRH/PtvRBvLAml3ZH/nhGBEtYZ+ImoGX18q/UnuIJXL/4pQ6O+ +zbE0XihvZoTBXOG+rHcvKDw4tUbDqTQUB2k4a8RJSXippRtMQi9vSUEYNZLvAo4RVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796429672; 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=bZCOxxkJgktvULSaW7SNdFn9JoF+GJQworNLykg7E6c=; b=J4MvE0f3VrZVNS4N0N/Y3eIOunJt4ygEAgR4c/s9gMPwj/WUaY0RIwJAMhWH34Q+noTe a92KJpmMoW6KgEaDKYy7dXPxZAVhMG89o5KZqoGl+WOwnI7LQdyKIrpKHKltU5ThE5YkL r1OJXECH9l3bf0gy6L2mb/YQ0XWu5Mmlko+bDj55oqObRQ7cooNqrVEJGZRIfSHEBDeqg 1UAIs7Hit4k6sTrjSgJ+vF7F+xFfS6VJMtlkmFnrRZqp21Isrk52GbFTJaxb+93395ixd EScMYSK/jxSPoZqZqSHLT9Dthv8vKxrU/92HrgE+dsj/GIWzZ4ilFfv9t8/mSx/ftUQ== 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=tFRvd7Gl; 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 4511F606A322 for ; Sat, 5 Dec 2026 00:14:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4511F606A322 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=tFRvd7Gl 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 D5DDE14BF; Fri, 4 Dec 2026 16:14:28 -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 DD7733F7D8; Fri, 4 Dec 2026 16:14:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796429671; bh=Y9Ia6Ay6bQi7kThYYIqMZEJgfu5aZE6JdgrsXjIoHjU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tFRvd7Gl4zoqrW0BIJsXlcCzRIvoDNVO0AN0LnTS3+6N3Ir2II+1GZnjVecwJi1x4 XZq+BnSRLyV8DVoqRbs76wh4+O6WL0QqPMsrKXlHH+YywPWDxe1J0Gtn1RfpTnoTrK VW0TRvoV4aUW6fvCxCr59UGSpQUI4jE6c4wP3hlI= Date: Sat, 5 Dec 2026 01:14:13 +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 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Message-ID: <20261205011413.08eecc9d@ryzen.lan> In-Reply-To: <20261204171319.745792-3-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> <20261204171319.745792-3-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:52 +0800 Chen-Yu Tsai wrote: > 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 Indeed just moving, and dropping the unreferenced regulators from the One Plus board. Lite2 stays the same: Reviewed-by: Andre Przywara Cheers, Andre > --- > .../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 {