From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796429276; b=Cd5Oim26+73J4LfPWf6sszpK4JBv67vVcxsPHj1d6tx1USsFv6QExOXsRjEmaR7JPzP7 MNDuQIWu4MIzXCOMGKUFpux5NoP8m1tZKtSt/gKP7Ch0qPwsHQAbwe9ZBaJjR19H4xWdd kmwM5ej4N7Czd2bj6s5YEho225H8V1xai8OJTNaCG/2kbkaVzev6MhB4PjjUibt7I7Xz+ LRJoyVeZkpgvRIXTwDdfvg87S4XcG7+2tY7GZjIB2GOpMKe2QTdm7FTVp+moIf45gyGk1 1zMEG5a004/rPKhGmkD8ztN//+KVwB48xWwHEcFFECnkKAhSbbu2obHES9/L0Na2yRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796429276; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=LDNZprPSRGhfJ+zZkorgnK1IYni/wLQh1OrmevloqEw=; b=ZCm168sSohqesh6wrKM08XWt/yBwl7t67ffW2IyRRU8apBVlL/gJ0EHK7p460biZRHaW LqC4vyEzruBoJp4uAg1yYiZAmVTse8WgUjRz77Lf6Hs59J692c579LFtAgj+wFhkIMMIz sLg6NUUGgip8ZpY5eCPnSndfh7QWlVQuXG5CI40h2v/gLrfDuigdugCJFy44eEC19p9sk x26EnKfZXctcXzOfOGUyOUrBocu1lxbZjqtyA+Kf+q6UR+5Tn+wn9ejbpmn2iC1GNIC3g zBHwnseZ8wI/7DSi+mbDTF5Bocd+clsO9hBveWTEfCR5xIM3ictFJIwEVcyi19CB2nQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Cwr4r4bV; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6711606A32C for ; Sat, 5 Dec 2026 00:07:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D6711606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Cwr4r4bV 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 {