ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Chen-Yu Tsai <wens@kernel.org>
Cc: "Jernej Skrabec" <jernej@kernel.org>,
	"Samuel Holland" <samuel@sholland.org>,
	linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	"Cristian Filipescu" <filipescu.cristian@gmail.com>,
	"Ondřej Jirman" <megi@xff.cz>,
	"Clément Péron" <peron.clem@gmail.com>,
	"Jagan Teki" <jagan@edgeble.ai>
Subject: Re: [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2
Date: Sat, 5 Dec 2026 01:14:13 +0100	[thread overview]
Message-ID: <20261205011413.08eecc9d@ryzen.lan> (raw)
In-Reply-To: <20261204171319.745792-3-wens@kernel.org>

On Sat,  5 Dec 2026 01:12:52 +0800
Chen-Yu Tsai <wens@kernel.org> 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 <wens@kernel.org>

Indeed just moving, and dropping the unreferenced regulators from the
One Plus board. Lite2 stays the same:

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

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 = <&reg_cldo2>;
>  	vqmmc-supply = <&reg_bldo3>;
> @@ -37,24 +65,6 @@ brcm: wifi@1 {
>  	};
>  };
>  
> -&reg_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;
> -};
> -
> -&reg_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 {


  reply	other threads:[~2026-12-05  0:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
2026-12-05  0:07   ` Andre Przywara
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
2026-12-05  0:14   ` Andre Przywara [this message]
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
2026-12-04 17:20   ` sashiko-bot
2026-12-04 17:12 ` [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to " Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
2026-12-04 17:26   ` sashiko-bot
2026-12-04 17:12 ` [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi Chen-Yu Tsai
2026-12-05  0:20   ` Andre Przywara
2026-12-04 17:12 ` [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS Chen-Yu Tsai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205011413.08eecc9d@ryzen.lan \
    --to=andre.przywara@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=filipescu.cristian@gmail.com \
    --cc=jagan@edgeble.ai \
    --cc=jernej@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=megi@xff.cz \
    --cc=peron.clem@gmail.com \
    --cc=samuel@sholland.org \
    --cc=wens@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox