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 B2212606A322 for ; Fri, 4 Dec 2026 17:14:41 +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=PrOjbGlX; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jIzi5TyY 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: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=hzEFLoA+DPToEa7zgEEWhtyPClUZ1IjjFj4izL4eiPU=; b=PrOjbGlX+YdH6k GIh3An8Ko7yoAeMlQvy2LmoQg5ReC5eOUDkaZ4dIJBrfudHclZ7k8IK26BN1YarCeZbsxceynVuBt PhhrerYtp3AsB8YoX3OEgCH2qHMgi/gbUfVQ7yeLCdLiTNZyMl+7+33pT9U18GulTfMimsx9beQTT a3H9UpFaNkhtg/J8QNUauZIr6y9kH8cNubeFstOlVFjj7aZrJHwS9mjidjyq9s1L7sjO1ZvLMkHgt pJRl6pYIpS2hzUhgeKeVGh1Wq0CU/cQHEvcghmPKNCOBxOD83TlYbufsyHw3bcGILkrQKVH0gQu3v UewExyR/xriEa+Qfcq1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWr8-000000011UB-0IDd; Fri, 04 Dec 2026 17:13:58 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWqs-000000011SD-2nYB for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 17:13:46 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 212F060E47; Fri, 4 Dec 2026 17:13:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C28931F00936; Fri, 4 Dec 2026 17:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796404421; bh=hzEFLoA+DPToEa7zgEEWhtyPClUZ1IjjFj4izL4eiPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jIzi5TyY1C1n2w0QXFnpsmGTPYgC31f1SoWs0KEW/SzGAyPgJBZ67U3hVi3OZ1bcH 35DkL834D+PjCmFxOC2t5K+vcb2pjiiAjgqz+gC4Zyg8lJoe8KLdWJtc2MvGbI7CIw cXDb/2eDW5+MNpjxlgZS+EcuJ4xUjbKdHG7/DCZ5wcWZoxi5caqEYV1EgZBKJmuC8P SmGfd7CDquWNaLo3Vr94ivx3rk9Xlyi8gDKDo9xYONH+CScLnZffsbk6jI7MHEiZBC ikgQauvwj7TvuPNKNwHjYwRyR2yoTx3gzRgRQpnw4ljSTEZcgXLzF+vBm5jpyCVZGb nk1xP9nSFhKkQ== 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 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Date: Sat, 5 Dec 2026 01:12:52 +0800 Message-ID: <20261204171319.745792-3-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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=-19.3 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_GIT 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 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 --- .../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 { -- 2.47.3