From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796404422; b=hrHZu9gRNlK+kDuCJK0wb58tXu4ofDpV9mDbMFxWvgG35/FvJXjXupkjJQ400dL34ayz 6UieEEvKpPldKG++yleD2eF8eOFunk2Rk9ebjt5/6QyuTQQxFb92gxmFJlwsth8STTu1R HOfibHPFgeEikFnL9pFdhX0s3TqLeuDkizR4KaRn5wLayrKS1y9kkT/bafkq1nXeo0z7G 3fFHjyAne7/MO4ZgkeIhdxNyryoA0bMNAr+YBnyremulyCet+lvEVm76tLdknLfD09qN9 sMSsIgwBBtGYeI4Qtn5SYeJV0d2URrYwvG8kpQrXsK1rYeboHChi9ptMGdVbdtFzwIw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404422; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=hzEFLoA+DPToEa7zgEEWhtyPClUZ1IjjFj4izL4eiPU=; b=X84mcHjYD+KzhEPb19TLr2lKXvXGixh5uM3Fa4137QpU3DkOZqoa9xciq8a8Wmi+lAR5 enCRq4NOgWR3LOYFdAEE+ExAC0AuPRggTeUmQgB9FjM8wTRmUSV1V990MeVLzhmxwyU0q uqugbI0JLVT0iAJieR042zHEG0Pd0wpmioAYzi66x1AAJVyutCQR74gtaTntAHH1CnyIZ yZyTuKaK8ZHlqDSupnnOvqJzckUlXEGSpSuNPfnR3iIEMU05il5BoyqpX45kwJuAxOiYb xj0ohhRK8U+CsloInFxtR6XDZMZlRt7vXp7QG1HSPEe4KzCDozEC3zYVRpqZBAhA/8g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jIzi5TyY; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0096606A322; Fri, 4 Dec 2026 17:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jIzi5TyY 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-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-Transfer-Encoding: 8bit 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