From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 46B69E8FDB4 for ; Fri, 26 Dec 2025 19:33:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2EC783A8E; Fri, 26 Dec 2025 20:33:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=freeshell.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=freeshell.de header.i=@freeshell.de header.b="XNyyZonh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 57F8F83A91; Fri, 26 Dec 2025 20:33:33 +0100 (CET) Received: from freeshell.de (freeshell.de [116.202.128.144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 60FAE83A8D for ; Fri, 26 Dec 2025 20:33:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=freeshell.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=e@freeshell.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=s2025; t=1766777472; bh=vMctsd7p5NMI/USbGaVYrvyeEQsXCmW/fBjsHIYbNzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNyyZonhrs50H3lKXmNfmtn/lJVVx/pSyALkg3I2dsp6rQjZz8sJ1XYJxVy/kEf34 1qEBAlOeRv21fU0Z36CVTy/34rKZNPKgj0IGKG6mIKBSsqLyCss7P8V4Q7dBGKGkZA LDrSXanSWfI5ia3AaKS5EEnOYsNgtzZ2SI+12z3ucl6g42OPLnL9+zWpSrbrj+rtf7 9PV3ABhUG/JhUFBDaSp5RSio2q7/q+8Cs8V0PwiIq9NbVZwqb5AimmsQrnJIgEsX4g PHTQBSIg13kiEgLuxCds8UySHWNQWrgcmV0tPflJhDBJsUpdJG6WoNrzgIpZq3lDGz p6xbyMw6jeWAg== Received: from hay.lan (unknown [IPv6:2605:59c0:2078:cf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 13D51B22153E; Fri, 26 Dec 2025 20:31:09 +0100 (CET) From: E Shattow To: Minda Chen , Hal Feng , Leo Liang , Heinrich Schuchardt , Tom Rini , Sumit Garg Cc: u-boot@lists.denx.de, E Shattow , Icenowy Zheng , Conor Dooley Subject: [PATCH v2 2/5] riscv: dts: starfive: add Orange Pi RV Date: Fri, 26 Dec 2025 11:30:03 -0800 Message-ID: <20251226193034.181659-3-e@freeshell.de> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20251226193034.181659-1-e@freeshell.de> References: <20251226193034.181659-1-e@freeshell.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Icenowy Zheng Orange Pi RV is a SBC based on the StarFive VisionFive 2 board. Orange Pi RV features: - StarFive JH7110 SoC - GbE port connected to JH7110 GMAC0 via YT8531 PHY - 4x USB ports via VL805 PCIe USB controller connected to JH7110 pcie0 - M.2 M-key slot connected to JH7110 pcie1 - HDMI video output - 3.5mm audio output - Ampak AP6256 SDIO Wi-Fi/Bluetooth module on mmc0 - microSD slot on mmc1 - SPI NOR flash memory - 24c02 EEPROM (read only by default) Signed-off-by: Icenowy Zheng Signed-off-by: E Shattow [conor: amend comment to say what's missing] Signed-off-by: Conor Dooley [ upstream commit: 5b70764e10190d57e6cd3287d3a3b06f8c89f69c ] (cherry picked from commit ca39a8e36acbe7d258cadee4ae703fbaac60e18b) --- .../src/riscv/starfive/jh7110-orangepi-rv.dts | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 dts/upstream/src/riscv/starfive/jh7110-orangepi-rv.dts diff --git a/dts/upstream/src/riscv/starfive/jh7110-orangepi-rv.dts b/dts/upstream/src/riscv/starfive/jh7110-orangepi-rv.dts new file mode 100644 index 00000000000..053c35992ec --- /dev/null +++ b/dts/upstream/src/riscv/starfive/jh7110-orangepi-rv.dts @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 Icenowy Zheng + */ + +/dts-v1/; +#include "jh7110-common.dtsi" + +/ { + model = "Xunlong Orange Pi RV"; + compatible = "xunlong,orangepi-rv", "starfive,jh7110"; + + /* This regulator is always on by hardware */ + reg_vcc3v3_pcie: regulator-vcc3v3-pcie { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3-pcie"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&sysgpio 62 GPIO_ACTIVE_LOW>; + }; +}; + +&gmac0 { + assigned-clocks = <&aoncrg JH7110_AONCLK_GMAC0_TX>; + assigned-clock-parents = <&aoncrg JH7110_AONCLK_GMAC0_RMII_RTX>; + starfive,tx-use-rgmii-clk; + status = "okay"; +}; + +&mmc0 { + #address-cells = <1>; + #size-cells = <0>; + cap-sd-highspeed; + mmc-pwrseq = <&wifi_pwrseq>; + vmmc-supply = <®_vcc3v3_pcie>; + vqmmc-supply = <&vcc_3v3>; + status = "okay"; + + ap6256: wifi@1 { + compatible = "brcm,bcm43456-fmac", "brcm,bcm4329-fmac"; + reg = <1>; + /* TODO: out-of-band IRQ on GPIO21, lacking pinctrl support */ + }; +}; + +&mmc1 { + cd-gpios = <&sysgpio 41 GPIO_ACTIVE_HIGH>; +}; + +&pcie0 { + status = "okay"; +}; + +&pcie1 { + status = "okay"; +}; + +&phy0 { + rx-internal-delay-ps = <1500>; + tx-internal-delay-ps = <1500>; + motorcomm,rx-clk-drv-microamp = <3970>; + motorcomm,rx-data-drv-microamp = <2910>; + motorcomm,tx-clk-adj-enabled; + motorcomm,tx-clk-10-inverted; + motorcomm,tx-clk-100-inverted; + motorcomm,tx-clk-1000-inverted; +}; + +&pwmdac { + status = "okay"; +}; -- 2.50.0