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=1796404419; b=ZqdMAzzRRghp7CxaZoEWYtBRJpDrJIMJ/aeyAyxLRbDYUsws4oKjm4aevl7rpkuKCexN bruDSXCN4oXgrklUHV4RTR3fJFnEggKMmW9I8F1bOtpRcocrYfr5yUu2ZxK8sXT/7airm ULfF+3yru6hvG4cZfs37abLTy7Z9fM6KpU2WDkIzBTGcZx11SI1Afs36/H9hMvaeV3g8x Qydh3PT31uvLbbSM4jm6zupWs5CG6kuvfVuH2LMrExgGplAMwfSz4vO8gwVnqbwQddXYB NtltKa6ithD4uZyEN71O6elmIcYDhtOApuplIKoOIyl1qGSXwxEz95tK32BqJFNZMRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404419; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=lg50fxtDet8UrZHgQJQgPMy8VVQrytI5wQO8ou4pmMs=; b=WFqsOPxp1qfMgCtZ8uGEYuO2q8z7KamE53WQV209vaSjLGt2todvndtuVv4M92Yd6I1B sV73vSbsrPDSwMfNuwDezr3N527PriJUx65Ah5f0xfQ/rI53ZB8bHTG5qQegRyw3yM6w2 DyisaVun8B+/oxQ5FYE+/kWzDF44af1YO4iEjclJbTkiKxzz+5h+QJBu9xQ+S8KR/XRQD RJBrDMeDCPS6akZwqmx9miVHyHEMC47djs0Tbzxzp93RlehM+YPNhwxOMq/04Y4T6un67 2D/vh+pk9eqrTOE9mzCLqbylJjuqt1qeLyvUElbc/0ggRjr+T6f8raQbSA3EIgai68g== 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=TBc1e6RY; 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 819D8606A32D; Fri, 4 Dec 2026 17:13:39 +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=TBc1e6RY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52E5C1F00A14; Fri, 4 Dec 2026 17:13:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796404419; bh=lg50fxtDet8UrZHgQJQgPMy8VVQrytI5wQO8ou4pmMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TBc1e6RYRXP76FW/rPw1gWmsRnytlkFMUYcMxKJPQkqRnIoqD+lGCk1/ufoQ6OdQ4 qC/It69N5y5r9wdc7DcDKinEyNGU6U59FndKuTNV++3REMGfVjDAE9zwVC2thaegn5 Sr02GLLa9RvumvtLr7w3bhwlrienqQKWWoHg+rfXHAh7N+kvLzZZZoIiesV0tv5jWM /cXpZTljXUMGkSdPKqHJQbhDjbJpnd3orQ1uxPHtZUeVSpJi125AMABI0KDgO4hnIo L4h96Vt3SZpOBlhNFdcuE+YuwyzXMVIouUbLbesz9qBN6i0t6e6N2MU/ERd2x+UH1e +ejZiNYzdFr1w== 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 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Date: Sat, 5 Dec 2026 01:12:51 +0800 Message-ID: <20261204171319.745792-2-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. 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. 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). 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 --- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 258 ++---------------- 1 file changed, 18 insertions(+), 240 deletions(-) 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 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Å™ej Jirman -/dts-v1/; - -#include "sun50i-h6.dtsi" -#include "sun50i-h6-cpu-opp.dtsi" -#include "sun50i-h6-gpu-opp.dtsi" - -#include +#include "sun50i-h6-orangepi.dtsi" / { model = "OrangePi 3"; compatible = "xunlong,orangepi-3", "allwinner,sun50i-h6"; aliases { - serial0 = &uart0; serial1 = &uart1; }; - chosen { - stdout-path = "serial0:115200n8"; - }; - - connector { - compatible = "hdmi-connector"; - ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ - type = "a"; - - port { - hdmi_con_in: endpoint { - remote-endpoint = <&hdmi_out_con>; - }; - }; - }; - - ext_osc32k: ext-osc32k-clk { - #clock-cells = <0>; - compatible = "fixed-clock"; - clock-frequency = <32768>; - clock-output-names = "ext_osc32k"; - }; - - leds { - compatible = "gpio-leds"; - - led-0 { - label = "orangepi:red:power"; - gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ - default-state = "on"; - }; - - led-1 { - label = "orangepi:green:status"; - gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ - }; - }; - - reg_vcc5v: vcc5v { - /* board wide 5V supply directly from the DC jack */ - compatible = "regulator-fixed"; - regulator-name = "vcc-5v"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - reg_vcc33_wifi: vcc33-wifi { /* Always on 3.3V regulator for WiFi and BT */ compatible = "regulator-fixed"; @@ -94,46 +40,27 @@ wifi_pwrseq: wifi-pwrseq { }; }; -&cpu0 { - cpu-supply = <®_dcdca>; -}; +&axp805 { + regulators { + /delete-node/ bldo3; + /delete-node/ cldo2; + /delete-node/ cldo3; -&de { - status = "okay"; -}; - -&dwc3 { - status = "okay"; -}; - -&ehci0 { - status = "okay"; -}; - -&ehci3 { - status = "okay"; -}; - -&gpu { - mali-supply = <®_dcdcc>; - status = "okay"; -}; + bldo3 { + /* unused */ + }; -&hdmi { - status = "okay"; -}; + cldo2 { + /* unused */ + }; -&hdmi_out { - hdmi_out_con: endpoint { - remote-endpoint = <&hdmi_con_in>; + cldo3 { + /* unused */ + }; }; }; -&mmc0 { - vmmc-supply = <®_cldo1>; - cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ - disable-wp; - bus-width = <4>; +&dwc3 { status = "okay"; }; @@ -163,148 +90,12 @@ &mmc2 { status = "okay"; }; -&ohci0 { - status = "okay"; -}; - -&ohci3 { - status = "okay"; -}; - &pio { - vcc-pc-supply = <®_bldo2>; - vcc-pd-supply = <®_cldo1>; vcc-pg-supply = <®_vcc_wifi_io>; }; -&r_i2c { - status = "okay"; - - axp805: pmic@36 { - compatible = "x-powers,axp805", "x-powers,axp806"; - reg = <0x36>; - interrupt-parent = <&r_intc>; - interrupts = ; - interrupt-controller; - #interrupt-cells = <1>; - x-powers,self-working-mode; - vina-supply = <®_vcc5v>; - vinb-supply = <®_vcc5v>; - vinc-supply = <®_vcc5v>; - vind-supply = <®_vcc5v>; - vine-supply = <®_vcc5v>; - aldoin-supply = <®_vcc5v>; - bldoin-supply = <®_vcc5v>; - cldoin-supply = <®_vcc5v>; - - regulators { - reg_aldo1: aldo1 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-pl-led-ir"; - }; - - reg_aldo2: aldo2 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc33-audio-tv-ephy-mac"; - }; - - /* ALDO3 is shorted to CLDO1 */ - reg_aldo3: aldo3 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-1"; - }; - - reg_bldo1: bldo1 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc18-dram-bias-pll"; - }; - - reg_bldo2: bldo2 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc-efuse-pcie-hdmi-pc"; - }; - - bldo3 { - /* unused */ - }; - - bldo4 { - /* unused */ - }; - - reg_cldo1: cldo1 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc33-io-pd-emmc-sd-usb-uart-2"; - }; - - cldo2 { - /* unused */ - }; - - cldo3 { - /* unused */ - }; - - reg_dcdca: dcdca { - regulator-always-on; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; - regulator-name = "vdd-cpu"; - }; - - reg_dcdcc: dcdcc { - regulator-enable-ramp-delay = <32000>; - regulator-min-microvolt = <810000>; - regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; - regulator-name = "vdd-gpu"; - }; - - reg_dcdcd: dcdcd { - regulator-always-on; - regulator-min-microvolt = <960000>; - regulator-max-microvolt = <960000>; - regulator-name = "vdd-sys"; - }; - - reg_dcdce: dcdce { - regulator-always-on; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-name = "vcc-dram"; - }; - - sw { - /* unused */ - }; - }; - }; -}; - -&r_ir { - status = "okay"; -}; - -&rtc { - clocks = <&ext_osc32k>; -}; - -&uart0 { - pinctrl-names = "default"; - pinctrl-0 = <&uart0_ph_pins>; - status = "okay"; +&r_pio { + /delete-property/ vcc-pm-supply; }; /* There's the BT part of the AP6256 connected to that UART */ @@ -325,21 +116,8 @@ bluetooth { }; }; -&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 = "host"; - status = "okay"; -}; - &usb2phy { usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */ - usb0_vbus-supply = <®_vcc5v>; - usb3_vbus-supply = <®_vcc5v>; - status = "okay"; }; &usb3phy { -- 2.47.3