From nobody Mon Apr 13 18:47:29 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DC34C4332F for ; Tue, 15 Nov 2022 16:17:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238615AbiKOQR0 (ORCPT ); Tue, 15 Nov 2022 11:17:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238563AbiKOQRP (ORCPT ); Tue, 15 Nov 2022 11:17:15 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4C52EF04; Tue, 15 Nov 2022 08:17:13 -0800 (PST) Received: from jupiter.universe (dyndsl-095-033-156-109.ewe-ip-backbone.de [95.33.156.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id BAFBA6602A83; Tue, 15 Nov 2022 16:17:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668529031; bh=wF7ElIRup1OFz173quBditS1uQbC/9WSxhBkfI6zZWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MepQZH/GmoEjnB8R2Ppnza52EJGliT8z8HMOMP6ZUGYywh/AuKf+liVTG7Lz42+dO AOH/XjSfDE7VtJilhTPEJ6SLUJxZjgrpAeGHC0EhkZj8ZuMy5yiP6AbDYnlQAiKGeb osl12/jSiIUzWBmdCrY5FNb1/k/Jz4VL5p1p9cMOZzZ06r41ZDbAqFS+glA0M0v6S4 udo4l0qnRdo3VzcBjLYeP+xWdu8MlLfLi1XIigQzLHhc7P0fqrpq90nQa9IZ/ptIKh Tn7OXlAnIu7KYY2mukPzQxsg7VQ5ONGSlhUEqEyoMTdirx7jc5sKC2X13oM6sBfhJn YfmpicOrCU2jg== Received: by jupiter.universe (Postfix, from userid 1000) id 6D039480342; Tue, 15 Nov 2022 17:17:07 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Linus Walleij , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com, Benjamin Gaignard Subject: [PATCHv2 5/5] arm64: dts: rockchip: Add rock-5a board Date: Tue, 15 Nov 2022 17:17:02 +0100 Message-Id: <20221115161702.163057-6-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221115161702.163057-1-sebastian.reichel@collabora.com> References: <20221115161702.163057-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add board file for the RK3588s Rock 5A board. While the hardware offers plenty of peripherals and connectivity this basic implementation just handles things required to access eMMC, UART and Ethernet (i.e. enough to successfully boot Linux). Tested-by: Benjamin Gaignard Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/arm/rockchip.yaml | 5 ++ arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3588s-rock-5a.dts | 63 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Document= ation/devicetree/bindings/arm/rockchip.yaml index 4230881371fa..cceeb943830c 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -744,6 +744,11 @@ properties: - const: rockchip,rk3588-evb1-v10 - const: rockchip,rk3588 =20 + - description: Radxa Rock 5 Model A + items: + - const: radxa,rock-5a + - const: rockchip,rk3588s + additionalProperties: true =20 ... diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index 12ed53de11eb..31fa55750a0f 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -73,3 +73,4 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-bpi-r2-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-evb1-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-rock-3a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-evb1-v10.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-rock-5a.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/= boot/dts/rockchip/rk3588s-rock-5a.dts new file mode 100644 index 000000000000..25387a000341 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include +#include +#include "rk3588s.dtsi" + +/ { + model =3D "Radxa Rock 5A Board"; + compatible =3D "radxa,rock-5a", "rockchip,rk3588s"; + + chosen { + stdout-path =3D "serial2:1500000n8"; + }; +}; + +&gmac1 { + phy-mode =3D "rgmii-rxid"; + clock_in_out =3D "output"; + + snps,reset-gpio =3D <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + /* Reset time is 20ms, 100ms for rtl8211f */ + snps,reset-delays-us =3D <0 20000 100000>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gmac1_miim + &gmac1_tx_bus2 + &gmac1_rx_bus2 + &gmac1_rgmii_clk + &gmac1_rgmii_bus>; + + tx_delay =3D <0x3a>; + rx_delay =3D <0x3e>; + + phy-handle =3D <&rgmii_phy1>; + status =3D "okay"; +}; + +&mdio1 { + rgmii_phy1: phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0x1>; + #phy-cells =3D <0>; + }; +}; + +&sdhci { + bus-width =3D <8>; + no-sdio; + no-sd; + non-removable; + max-frequency =3D <200000000>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + status =3D "okay"; +}; + +&uart2 { + pinctrl-0 =3D <&uart2m0_xfer>; + status =3D "okay"; +}; --=20 2.35.1