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 21AA4606A322 for ; Fri, 4 Dec 2026 17:14:42 +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=S6tEBTQP; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TBc1e6RY 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:Date:Subject:Cc: To:From: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=lg50fxtDet8UrZHgQJQgPMy8VVQrytI5wQO8ou4pmMs=; b=S6tEBTQP6Psg7c Pf9L9QTOFnYPXKrlCI91knQ76cfW7T8jk2l6aaUTTBRpMoK12H+dxjPfgQzRssdCsBjTaFnJVu7xZ zgfWKhaR+pGvWD0HHDyVcV5C7bSxO33VNA+RAg0tilMqvZG6YJFUsYY7OvtXDHFsLt6z7QtkMiRaz N6NiaP6mF5PW+5R9bTD71spmfKzGthOkH4L09PX98USFwaffTBhW7730xiB6x9yCRHl+w0plCd1w0 CbKfsi1YryI+RV9QSb1kDytoN1aNMN9vD/rG98bIEr4q0zXdYiKh7ZBGklXEq7qwQlBD9S3iv9mzv sFXcnSbcZyVkkMWXhmkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWr7-000000011Tv-33Iz; Fri, 04 Dec 2026 17:13:57 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWqp-000000011SC-3aEe for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 17:13:47 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 7A26E434E9; Fri, 4 Dec 2026 17:13:39 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=-19.3 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_GIT 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 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