From patchwork Sun Nov 15 23:50:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cristian Filipescu via B4 Relay X-Patchwork-Id: 4126 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 454381C27FD for ; Mon, 16 Nov 2026 00:50:57 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27714-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27714-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id DC2FD604FC4 for ; Sun, 15 Nov 2026 23:50:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4802606A333; Sun, 15 Nov 2026 23:50:54 +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=FzGMSSU1 X-Original-To: linux-sunxi@lists.linux.dev Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794786654; b=wp8Gy6T7HLgr5HnhZ0Oz4kVxu0l7lV90m+qPpkoCkZ4p9DV5HXP+TFyOg/1lDCX0htHf lfq3poqwGEFdj4GhbUgFoEIJ9TL8fJ3z60Mfs2ybQ33clA0pLijB/pesspc3mINUynl+8 9oxI9uPgq12HlQ2ltWzo0gJ6z3CtchWa5llo+oZL9QwCj+2Y1ugzh5pmcTv4POTnDhkiK 6cma6rSQdXmOOa6V8jmsAh8K9xo94Y08hh3skrnUshBBLKeD+hYr38Cd003tfEKXYK5tN dS/z15OffHdmsuF+swemCQ8E8p+eLO7URDheYE7msX1SdnstJGu4DHnoSXhxKiI7/3w== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794786654; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=UrdB96UuIeFkD6j1AErw+PlgWigfyIVge/jVwF3TrpA=; b=XnZszENw2/JW6B53qnTbZwFbx3mMQHfetzVtJxqGwRjnDYXYKj/Xgfm+YtLsBbI/b3Yq a5RIrQqUDWE4kiEsK/MnPZAeNlq0sS7hVyJ/l5fuPluJ75N7n/ICCP/lJhqzkeEqU9YiQ rRwL2ccghPRfHGTghOOg6SWLj369PrksC1VJVrrEFa1NkTE9uOWS6a10ehQbRute+Agyp r+wrLBO1iyd9ky24niG11Pz6lHMpVfJ8dR7Djhx9ksPEGmYqIk/4PpyOSwj3V+vdQl2CU e+b78NKt6Pm0YBlMGI9XUanpM+GLpxMVVUlWQRF2A1emQUuev/rfMf3ROTkT/Al4T/g== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FzGMSSU1; arc=fail 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 8A803606A323; Sun, 15 Nov 2026 23:50:54 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794786654; b=CFqwPmckfdVTuTqzzusDxhFLKdgT8oQva9KYxD/eDrHlDiqZIat5vQgAea4kFASWPQlY AI1xWBtK9SPWHj8OWjmgnehY/nUFYCnhA7HW/DPnamXzh1xoo0Lp4EMUF/+lo6SRZcqzf bgzzELFv7RBHIc4hqv3WSXbdZNHaYJ0YtGdHnzEoYaT+fQlVB9sLwhvCITE/Tr/QHyAXx wX0y8m5rsfiFeh86XVPlJ0ib6NkSBP59ZL/ReezkT2u9P/ztg+qXuD51eg4UpjQLZrXzM ob+J5n0gBTedpYfAbdYkEf3KNXdSwGWXGkcYUdCr/II24dUqFE9HCneVqCLKCW3i9iA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794786654; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=UrdB96UuIeFkD6j1AErw+PlgWigfyIVge/jVwF3TrpA=; b=DRixVeSpyB9vTobCBAfmD2MQZYLJ++JHjuOQxdncEnsxDy2Nb/4SM98TnvWqOcpZU5bY Gm/YJUyGA8hfUh1CNv7KS1Dg9BYbaCrc0pMQH7P/oAuJ8RwbTeEZCm6Pvd2HfXZ1p4T3C w+BOgm/cmgps98eLfoFXCJGPqCPwkUqb7vRXKt98+SUc3UUU8buDfV2x4aCGoLu15FWot g4S3CgcO4eqHMJnaH+lRjnFKPMqi2d9JuvuBZ5yOCDgyBolnixuqAZMGsesT6yvV3u8cq laEwkxZ2F1E0K847tQUYLLWQXRZre6RNui0ZlP2FCU+KpoZYPmXPUQg15V0Q0y4ShDQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 7364E1F000C6; Sun, 15 Nov 2026 23:50:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794786654; bh=UrdB96UuIeFkD6j1AErw+PlgWigfyIVge/jVwF3TrpA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=FzGMSSU1ye1b8Kz7UTHXRJ51hf32HnBizj3QE5JbLJxDgkSX1kj6rkxg880H++rZb D8TIEu1QqvCaoHOKEkrLWMGMQ77hzUlvm6nmWFoG7Nn1/1oNphua7KIE2MFmWEpRH3 NxOD25oz5vju/9suPHTvO2vdqB+9vCKpXi2bQnVj/p1eLViNsztWp5y/DOIN/9mSNx qcgNUTJpFdLGD0eMJQ/AUhbMi3hrl3WavtuxSSRoPG1iqWLPfzXtazjJGP9FqQbe6Q 70HuddYLBEz9zOXOUHetFx5kdSw7FO/c46IHJzBV6ryCR9CTlQdWLqEsFsNg2dKkgs ngeQBlvQcDq7g== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id F15A04A280; Sun, 15 Nov 2026 23:50:52 +0000 (UTC) From: Cristian Filipescu via B4 Relay Date: Sun, 15 Nov 2026 23:50:54 +0000 Subject: [PATCH v4 2/2] arm64: dts: allwinner: h6: Add Orange Pi 3 LTS 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 Message-Id: <20261115-sunxi-orangepi-3-lts-v4-2-7749b448a4dd@gmail.com> References: <20261115-sunxi-orangepi-3-lts-v4-0-7749b448a4dd@gmail.com> In-Reply-To: <20261115-sunxi-orangepi-3-lts-v4-0-7749b448a4dd@gmail.com> To: linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Maxime Ripard Cc: linux-arm-kernel@lists.infradead.org, Jernej Skrabec , Andre Przywara , linux-kernel@vger.kernel.org, Cristian Filipescu X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794786652; l=6155; i=filipescu.cristian@gmail.com; s=uboot-20261021; h=from:subject:message-id; bh=So5UOb6lKk1fkokNpBGT/4HDC7UsiTD0P9j7b/a7Mss=; b=G5VZsXTnJVr1NF340ZRZGGA9BrWAZy3OxXebePMfSitw/QsP1sKjNb1NZU4VrLLQV0vykfvEV KIE5gYUVQryBpooiEGMB5xDXebiRgJhVueRvrXKwDGJAcMB/tfxQjli X-Developer-Key: i=filipescu.cristian@gmail.com; a=ed25519; pk=o7Ui0tU3x+X/6Pq6PZHmd2KFtOdPWttoPuNFOvdD8t0= X-Endpoint-Received: by B4 Relay for filipescu.cristian@gmail.com/uboot-20261021 with auth_id=1255 X-Original-From: Cristian Filipescu Reply-To: filipescu.cristian@gmail.com X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-1.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; ARC_REJECT(1.00)[cv is fail on i=2]; MAILLIST(-0.18)[generic]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[13]; FREEMAIL_CC(0.00)[lists.infradead.org,gmail.com,arm.com,vger.kernel.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[0.0.0.1:email]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; DKIM_TRACE(0.00)[kernel.org:+]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.103.45.18:received]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-27714-noreply=patchwork.local,filipescu.cristian.gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; RCVD_TLS_LAST(0.00)[]; HAS_REPLYTO(0.00)[filipescu.cristian@gmail.com] X-Rspamd-Queue-Id: 454381C27FD X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Jernej Skrabec Add the board description for the Allwinner H6-based Orange Pi 3 LTS, using the common Orange Pi H6 description for shared hardware. Describe the LTS regulators, storage, Motorcomm YT8531C Ethernet PHY, wireless module supplies, LEDs and USB ports. Reset the sole Ethernet PHY at MDIO bus registration and keep reset outside interface detach so its configured 125 MHz output is retained. Use generic Clause 22 discovery and PHY-internal RGMII delays. Inherit the schematic LED roles and defaults: red power on and green status off. Select the weakest GPIO drive level for both LEDs, describe the shared CPU supply on all four cores, and enable 1.8 V eMMC DDR52 and HS200 modes while retaining the H6 maximum frequency of 150 MHz. Remove inherited USB ID detection for fixed host mode. Link: https://lore.kernel.org/linux-sunxi/20250413134318.66681-3-jernej.skrabec@gmail.com/ Signed-off-by: Jernej Skrabec Signed-off-by: Cristian Filipescu --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 188 +++++++++++++++++++++ 2 files changed, 189 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index aa21f58a4..7ea136380 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -41,6 +41,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-beelink-gs1.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3-lts.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb 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 new file mode 100644 index 000000000..d3ea73e1d --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts @@ -0,0 +1,188 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2025 Jernej Skrabec +// Based on sun50i-h6-orangepi-3.dts, which is: +// Copyright (C) 2019 OndÅ™ej Jirman + +#include "sun50i-h6-orangepi.dtsi" +#include "sun50i-h6-cpu-opp.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" + +/ { + model = "OrangePi 3 LTS"; + compatible = "xunlong,orangepi-3-lts", "allwinner,sun50i-h6"; + + aliases { + ethernet0 = &emac; + ethernet1 = &aw859a; + }; + + leds { + led-0 { + pinctrl-names = "default"; + pinctrl-0 = <&led_red_pin>; + }; + + led-1 { + pinctrl-names = "default"; + pinctrl-0 = <&led_green_pin>; + }; + }; + + reg_gmac_3v3: gmac-3v3 { + compatible = "regulator-fixed"; + regulator-name = "gmac-3v3"; + vin-supply = <®_vcc5v>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <150000>; + enable-active-high; + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + }; + + reg_wifi_3v3: wifi-3v3 { + /* 3.3V regulator for WiFi and BT */ + compatible = "regulator-fixed"; + regulator-name = "wifi-3v3"; + vin-supply = <®_vcc5v>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ + post-power-on-delay-ms = <200>; + }; +}; + +&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>; + regulator-max-microvolt = <1160000>; + regulator-ramp-delay = <2500>; + }; + + dcdcc { + regulator-ramp-delay = <2500>; + }; + }; +}; + +&cpu0 { + cpu-supply = <®_dcdca>; +}; + +&cpu1 { + cpu-supply = <®_dcdca>; +}; + +&cpu2 { + cpu-supply = <®_dcdca>; +}; + +&cpu3 { + cpu-supply = <®_dcdca>; +}; + +&dwc3 { + status = "okay"; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&ext_rgmii_pins>; + phy-mode = "rgmii-id"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_gmac_3v3>; + allwinner,rx-delay-ps = <0>; + allwinner,tx-delay-ps = <0>; + status = "okay"; +}; + +&hdmi { + hvcc-supply = <®_bldo2>; +}; + +&mdio { + reset-gpios = <&pio 3 14 GPIO_ACTIVE_LOW>; /* PD14 */ + reset-delay-us = <15000>; + reset-post-delay-us = <100000>; + + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + + motorcomm,clk-out-frequency-hz = <125000000>; + rx-internal-delay-ps = <1950>; + tx-internal-delay-ps = <1950>; + }; +}; + +&mmc1 { + vmmc-supply = <®_wifi_3v3>; + vqmmc-supply = <®_bldo3>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + aw859a: wifi@1 { + reg = <1>; + }; +}; + +&mmc2 { + vmmc-supply = <®_cldo1>; + vqmmc-supply = <®_bldo2>; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + cap-mmc-hw-reset; + non-removable; + bus-width = <8>; + status = "okay"; +}; + +&pio { + vcc-pg-supply = <®_bldo3>; +}; + +&r_pio { + led_green_pin: led-green-pin { + pins = "PL7"; + function = "gpio_out"; + drive-strength = <10>; + }; + + led_red_pin: led-red-pin { + pins = "PL4"; + function = "gpio_out"; + drive-strength = <10>; + }; +}; + +&usb2phy { + /delete-property/ usb0_id_det-gpios; +}; + +&usb3phy { + status = "okay"; +};