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 57EBD606A322 for ; Sat, 5 Dec 2026 00:14:57 +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=eFfVljgO; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=tFRvd7Gl 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=bZCOxxkJgktvULSaW7SNdFn9JoF+GJQworNLykg7E6c=; b=eFfVljgOgNWDr3 Z8gJVUWWxRrevERICUetr50upA0a0d7ffgJujr6KKjpBajE9LDM1GQXnVpqWAz2OvltU414KfT9ra FNMpgyZLBBV2cIUar0N7UAcbx2Yq0U5PSP1TVfLL5gJhWzS5xLIctUCgUFNU4clVLnYSGXGCiDyWz epOmzi8E4qpZTuvg80L51kFzrAQA8lpA5NFkZfj64FaoXvejF+lInVb+3YCX7F2fAFDue8zl57sqE Odb5C+5QXCWsgeLgp39id51g6G3snuRb09KcEvz17r9s7gOTCNKenC9IxzfQ8+4cdm+LmlqB1KzVw 41GdeFQuGVIZIzP7+ScQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZdQJ-00000001n11-1y69; Sat, 05 Dec 2026 00:14:43 +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 1xZdQ8-00000001n0a-22Mc for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 00:14:35 +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 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-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-20261204_161432_964477_EFF4C0F7 X-CRM114-Status: GOOD ( 21.20 ) 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: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 {