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 154A1606A322 for ; Sat, 5 Dec 2026 00:08:09 +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=eH0+9TQO; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Cwr4r4bV 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=LDNZprPSRGhfJ+zZkorgnK1IYni/wLQh1OrmevloqEw=; b=eH0+9TQOGSWmes xPDPVBdlAGyk8BoFjk7YSZAtQwjWUhzupOBEVpEN+rj7ogoG0d0+wBfV1P5qlDgJLKCz6N7IP1LJj 8O989TaNPYdCahp4Cl/D/EAzXh8Cu7ekWrhSehCuVNCW2MF0UUCqGSJoXQVFRBdgkg+dhmRXAu2Nf uq+vrxtEkBV1aNSXE95YjDlyX83bPb5efr21Vz48AcDa8UqFPcZa16lJmk4G45uiHx8fAh91VIvDS oB4kosK3+UXlOkSTqJqr6YFuMgf5joe2l+gxPA8pgm9YM1w6v1vwnPdQTFqK7QMoFzBHEERRLcv2E /tgRCtfpmfYS6coaWAYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZdJf-00000001mo1-3Wed; Sat, 05 Dec 2026 00:07:51 +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 1xZdJc-00000001mnS-1tJh for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 00:07:50 +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 F27D614BF; Fri, 4 Dec 2026 16:07:43 -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 875DC3F7D8; Fri, 4 Dec 2026 16:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796429266; bh=H6tiYZ+rryWnqylPbU6iMurrX2THCNyVZ1O66T0lnow=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cwr4r4bV0kx6XrUuTzVW9GYs7FW8rfWHZUMEaSm34p2KZ21++v4OekKtuOCBrNfL0 h+v+rXDb+DsgSvJKFWu2fS3zAha0ybWIu4aKFfIhFMfKNQuBA+I87KPJ6WOZmoMC/N OALuJESmo8ff5UbAiH5kMZz0hpciQfUZWUWJHxWg= Date: Sat, 5 Dec 2026 01:07:27 +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 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Message-ID: <20261205010727.370b7b42@ryzen.lan> In-Reply-To: <20261204171319.745792-2-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> <20261204171319.745792-2-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=UTF-8 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_160748_720028_CE9DE582 X-CRM114-Status: GOOD ( 21.72 ) 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:51 +0800 Chen-Yu Tsai wrote: Hi Chen-Yu, > The Orange Pi 3 shares most of its base hardware (PMIC, regulators, > HDMI, LEDs, SD card, IR, UART0, USB2 host controllers) with the other > Orange Pi H6 boards described in sun50i-h6-orangepi.dtsi. >=20 > Refactor sun50i-h6-orangepi-3.dts to include sun50i-h6-orangepi.dtsi > and keep only the Orange Pi 3 specific nodes and overrides, deleting > and re-adding empty nodes for the unused BLDO3/CLDO2/CLDO3 regulators > and removing the inherited vcc-pm-supply on r_pio. >=20 > Verified by comparing compiled DTBs for all four Orange Pi H6 boards: > One Plus, Lite 2, and 3 LTS DTBs are identical, and Orange Pi 3 differs > only in inheriting the common regulator names and DCDCA's 810 mV > minimum voltage (still below the 820 mV lowest CPU OPP). Yes, I compared the removed lines against what's in the .dtsi file, and can confirm that the regulator names change, plus the CPU regulator voltage range. Another (pedantic) difference is the lack of the "PF6" comment for the SD card CD pin, but that's of course not visible in the DTB. The rest is the same, which is what counts: > This patch and commit message were drafted by Antigravity (AI coding > assistant) based on the board schematics and user direction. >=20 > Signed-off-by: Chen-Yu Tsai Reviewed-by: Andre Przywara Cheers, Andre > --- > .../dts/allwinner/sun50i-h6-orangepi-3.dts | 258 ++---------------- > 1 file changed, 18 insertions(+), 240 deletions(-) >=20 > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arc= h/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > index ce82aa265cfd..61ca60614d85 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts > @@ -1,70 +1,16 @@ > // SPDX-License-Identifier: (GPL-2.0+ OR MIT) > // Copyright (C) 2019 Ond=C5=99ej Jirman > =20 > -/dts-v1/; > - > -#include "sun50i-h6.dtsi" > -#include "sun50i-h6-cpu-opp.dtsi" > -#include "sun50i-h6-gpu-opp.dtsi" > - > -#include > +#include "sun50i-h6-orangepi.dtsi" > =20 > / { > model =3D "OrangePi 3"; > compatible =3D "xunlong,orangepi-3", "allwinner,sun50i-h6"; > =20 > aliases { > - serial0 =3D &uart0; > serial1 =3D &uart1; > }; > =20 > - chosen { > - stdout-path =3D "serial0:115200n8"; > - }; > - > - connector { > - compatible =3D "hdmi-connector"; > - ddc-en-gpios =3D <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ > - type =3D "a"; > - > - port { > - hdmi_con_in: endpoint { > - remote-endpoint =3D <&hdmi_out_con>; > - }; > - }; > - }; > - > - ext_osc32k: ext-osc32k-clk { > - #clock-cells =3D <0>; > - compatible =3D "fixed-clock"; > - clock-frequency =3D <32768>; > - clock-output-names =3D "ext_osc32k"; > - }; > - > - leds { > - compatible =3D "gpio-leds"; > - > - led-0 { > - label =3D "orangepi:red:power"; > - gpios =3D <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ > - default-state =3D "on"; > - }; > - > - led-1 { > - label =3D "orangepi:green:status"; > - gpios =3D <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ > - }; > - }; > - > - reg_vcc5v: vcc5v { > - /* board wide 5V supply directly from the DC jack */ > - compatible =3D "regulator-fixed"; > - regulator-name =3D "vcc-5v"; > - regulator-min-microvolt =3D <5000000>; > - regulator-max-microvolt =3D <5000000>; > - regulator-always-on; > - }; > - > reg_vcc33_wifi: vcc33-wifi { > /* Always on 3.3V regulator for WiFi and BT */ > compatible =3D "regulator-fixed"; > @@ -94,46 +40,27 @@ wifi_pwrseq: wifi-pwrseq { > }; > }; > =20 > -&cpu0 { > - cpu-supply =3D <®_dcdca>; > -}; > +&axp805 { > + regulators { > + /delete-node/ bldo3; > + /delete-node/ cldo2; > + /delete-node/ cldo3; > =20 > -&de { > - status =3D "okay"; > -}; > - > -&dwc3 { > - status =3D "okay"; > -}; > - > -&ehci0 { > - status =3D "okay"; > -}; > - > -&ehci3 { > - status =3D "okay"; > -}; > - > -&gpu { > - mali-supply =3D <®_dcdcc>; > - status =3D "okay"; > -}; > + bldo3 { > + /* unused */ > + }; > =20 > -&hdmi { > - status =3D "okay"; > -}; > + cldo2 { > + /* unused */ > + }; > =20 > -&hdmi_out { > - hdmi_out_con: endpoint { > - remote-endpoint =3D <&hdmi_con_in>; > + cldo3 { > + /* unused */ > + }; > }; > }; > =20 > -&mmc0 { > - vmmc-supply =3D <®_cldo1>; > - cd-gpios =3D <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ > - disable-wp; > - bus-width =3D <4>; > +&dwc3 { > status =3D "okay"; > }; > =20 > @@ -163,148 +90,12 @@ &mmc2 { > status =3D "okay"; > }; > =20 > -&ohci0 { > - status =3D "okay"; > -}; > - > -&ohci3 { > - status =3D "okay"; > -}; > - > &pio { > - vcc-pc-supply =3D <®_bldo2>; > - vcc-pd-supply =3D <®_cldo1>; > vcc-pg-supply =3D <®_vcc_wifi_io>; > }; > =20 > -&r_i2c { > - status =3D "okay"; > - > - axp805: pmic@36 { > - compatible =3D "x-powers,axp805", "x-powers,axp806"; > - reg =3D <0x36>; > - interrupt-parent =3D <&r_intc>; > - interrupts =3D ; > - interrupt-controller; > - #interrupt-cells =3D <1>; > - x-powers,self-working-mode; > - vina-supply =3D <®_vcc5v>; > - vinb-supply =3D <®_vcc5v>; > - vinc-supply =3D <®_vcc5v>; > - vind-supply =3D <®_vcc5v>; > - vine-supply =3D <®_vcc5v>; > - aldoin-supply =3D <®_vcc5v>; > - bldoin-supply =3D <®_vcc5v>; > - cldoin-supply =3D <®_vcc5v>; > - > - regulators { > - reg_aldo1: aldo1 { > - regulator-always-on; > - regulator-min-microvolt =3D <3300000>; > - regulator-max-microvolt =3D <3300000>; > - regulator-name =3D "vcc-pl-led-ir"; > - }; > - > - reg_aldo2: aldo2 { > - regulator-min-microvolt =3D <3300000>; > - regulator-max-microvolt =3D <3300000>; > - regulator-name =3D "vcc33-audio-tv-ephy-mac"; > - }; > - > - /* ALDO3 is shorted to CLDO1 */ > - reg_aldo3: aldo3 { > - regulator-always-on; > - regulator-min-microvolt =3D <3300000>; > - regulator-max-microvolt =3D <3300000>; > - regulator-name =3D "vcc33-io-pd-emmc-sd-usb-uart-1"; > - }; > - > - reg_bldo1: bldo1 { > - regulator-always-on; > - regulator-min-microvolt =3D <1800000>; > - regulator-max-microvolt =3D <1800000>; > - regulator-name =3D "vcc18-dram-bias-pll"; > - }; > - > - reg_bldo2: bldo2 { > - regulator-always-on; > - regulator-min-microvolt =3D <1800000>; > - regulator-max-microvolt =3D <1800000>; > - regulator-name =3D "vcc-efuse-pcie-hdmi-pc"; > - }; > - > - bldo3 { > - /* unused */ > - }; > - > - bldo4 { > - /* unused */ > - }; > - > - reg_cldo1: cldo1 { > - regulator-always-on; > - regulator-min-microvolt =3D <3300000>; > - regulator-max-microvolt =3D <3300000>; > - regulator-name =3D "vcc33-io-pd-emmc-sd-usb-uart-2"; > - }; > - > - cldo2 { > - /* unused */ > - }; > - > - cldo3 { > - /* unused */ > - }; > - > - reg_dcdca: dcdca { > - regulator-always-on; > - regulator-min-microvolt =3D <800000>; > - regulator-max-microvolt =3D <1160000>; > - regulator-ramp-delay =3D <2500>; > - regulator-name =3D "vdd-cpu"; > - }; > - > - reg_dcdcc: dcdcc { > - regulator-enable-ramp-delay =3D <32000>; > - regulator-min-microvolt =3D <810000>; > - regulator-max-microvolt =3D <1080000>; > - regulator-ramp-delay =3D <2500>; > - regulator-name =3D "vdd-gpu"; > - }; > - > - reg_dcdcd: dcdcd { > - regulator-always-on; > - regulator-min-microvolt =3D <960000>; > - regulator-max-microvolt =3D <960000>; > - regulator-name =3D "vdd-sys"; > - }; > - > - reg_dcdce: dcdce { > - regulator-always-on; > - regulator-min-microvolt =3D <1200000>; > - regulator-max-microvolt =3D <1200000>; > - regulator-name =3D "vcc-dram"; > - }; > - > - sw { > - /* unused */ > - }; > - }; > - }; > -}; > - > -&r_ir { > - status =3D "okay"; > -}; > - > -&rtc { > - clocks =3D <&ext_osc32k>; > -}; > - > -&uart0 { > - pinctrl-names =3D "default"; > - pinctrl-0 =3D <&uart0_ph_pins>; > - status =3D "okay"; > +&r_pio { > + /delete-property/ vcc-pm-supply; > }; > =20 > /* There's the BT part of the AP6256 connected to that UART */ > @@ -325,21 +116,8 @@ bluetooth { > }; > }; > =20 > -&usb2otg { > - /* > - * This board doesn't have a controllable VBUS even though it > - * does have an ID pin. Using it as anything but a USB host is > - * unsafe. > - */ > - dr_mode =3D "host"; > - status =3D "okay"; > -}; > - > &usb2phy { > usb0_id_det-gpios =3D <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */ > - usb0_vbus-supply =3D <®_vcc5v>; > - usb3_vbus-supply =3D <®_vcc5v>; > - status =3D "okay"; > }; > =20 > &usb3phy {