Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3908073rwb; Tue, 8 Nov 2022 09:40:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5orAhBR7K18uudPd/yOXJINu1CiwtWaNIvb/XPz5eJaz2UkcjTEVnTpy+3AhSItoPEjWoJ X-Received: by 2002:a17:907:984:b0:7ae:50c3:396d with SMTP id bf4-20020a170907098400b007ae50c3396dmr16205299ejc.360.1667929202248; Tue, 08 Nov 2022 09:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667929202; cv=none; d=google.com; s=arc-20160816; b=1Fh/aOA0nEn9KyveuV3A2rOMR+1/Vs211wzwitnrs2A8nUq/4+nTaq/UGBwuilg2za 7l4Vkv2+la0di057e2yEIcmNzlymYkdIXrueo7D45ELdP3zlctQSJnRmVQZIQZ5phWSM rGTx1uHD3DL4CeFuDfbC4vpL3YROXrbH5WMdzRi6iym+W4AtAd647wUvCZOdx0DCUQtV UWwtsLrKrTzUHohA6rTsVrxEE/0BHuSdXTVxXh/88QB4+hRKsbL8yJ4CNPrvOrTDAy3q OlRWW8KxcGRhHlXy4Inh5F+BP9VhrHst1r+ald2fh1nkZu1jH+l1lGLy20YfHTLQ5T1j gm9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Zw43Sgy9yfWf4GQMXWNC+9lj0w/FS5z/RHnYb1+Ekgg=; b=m7Gpgrmukgw+nGzkfeUF7Pz9B3DOFZbaG9YyLh9Y0paXiZbm+hxowUa3VyZSSnFMjF XWbHhizOq3DX2c0rVz5rOX3VtfFXGZ8g3myIhD5ScKpnrgz6uo9/fxRDfzNls/OmuySs AFkK10yp3PIYhxGA3hJuRJ0N3JGIskbSryU1ahSesx1RtqaawPLbmptlrcg56RGGEDj4 rmwuyWWjxGzaGwKwu4wM7KqG5sEJ4eSgyMjQaDkURmUuTxMk+4xoJfFpMnoVn8792MlA XGKookZ6RnLdYtdOA/0koC4SuJKC3HrVeEXquKVVtL6kncDWE9Fqf2fV/fnxQineqpyE SExw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=i9Tk4PJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz44-20020a1709077dac00b0078d2197d670si13183279ejc.661.2022.11.08.09.39.40; Tue, 08 Nov 2022 09:40:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=i9Tk4PJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234574AbiKHRPY (ORCPT + 91 others); Tue, 8 Nov 2022 12:15:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234433AbiKHRPM (ORCPT ); Tue, 8 Nov 2022 12:15:12 -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 36EC61A80F; Tue, 8 Nov 2022 09:15:11 -0800 (PST) Received: from jupiter.universe (dyndsl-095-033-156-208.ewe-ip-backbone.de [95.33.156.208]) (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 F40CC66029A5; Tue, 8 Nov 2022 17:15:09 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1667927710; bh=bjkHIC8gfk2bE/lvWEQPJd3CwZp3t4CM7K07FKbR+sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i9Tk4PJ5ADg0+sjwssYbrRvsKMJI8UInSOfIR4xO/RIonl//L02hO0L+Cshn9rlmO HXEftX9rcN9c0GdyuDyfP0FJSv3zkbb5LM6xKG6J+5+kIMVR2Y4Ezh5/NaeEgsf2hA KU9nBfQ3mbwteR+4D05B200YH3fiX7wINtO73grODNhN/juDYyn0xrDAoH0TCzEJ9H m9UDNGwTKQwdzcuCDcpjWUALh6Cl3ODhrWIOTtrDmtS0pwpbuRqM2OQNxVhHbxWnE+ 9CdQvV3uAmEXh+aTe5sK1ud0tAjLsKYyKwCj3XwI8sQw08moIXP+2h9CYM5kcU8d4z Y2PhXZzuYoZsg== Received: by jupiter.universe (Postfix, from userid 1000) id 1A8CC480088; Tue, 8 Nov 2022 18:15:05 +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: [PATCH 5/5] arm64: dts: rockchip: Add rock-5a board Date: Tue, 8 Nov 2022 18:15:00 +0100 Message-Id: <20221108171500.99599-6-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221108171500.99599-1-sebastian.reichel@collabora.com> References: <20221108171500.99599-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/Documentation/devicetree/bindings/arm/rockchip.yaml index 4230881371fa..6bff4c42d815 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 + - description: Radxa Rock 5A + items: + - const: radxa,rock-5a + - const: rockchip,rk3588s + additionalProperties: true ... diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/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) += rk3568-bpi-r2-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-v10.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += 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 = "Radxa Rock 5A Board"; + compatible = "radxa,rock-5a", "rockchip,rk3588s"; + + chosen { + stdout-path = "serial2:1500000n8"; + }; +}; + +&gmac1 { + phy-mode = "rgmii-rxid"; + clock_in_out = "output"; + + snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + /* Reset time is 20ms, 100ms for rtl8211f */ + snps,reset-delays-us = <0 20000 100000>; + + pinctrl-names = "default"; + pinctrl-0 = <&gmac1_miim + &gmac1_tx_bus2 + &gmac1_rx_bus2 + &gmac1_rgmii_clk + &gmac1_rgmii_bus>; + + tx_delay = <0x3a>; + rx_delay = <0x3e>; + + phy-handle = <&rgmii_phy1>; + status = "okay"; +}; + +&mdio1 { + rgmii_phy1: phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + #phy-cells = <0>; + }; +}; + +&sdhci { + bus-width = <8>; + no-sdio; + no-sd; + non-removable; + max-frequency = <200000000>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + status = "okay"; +}; + +&uart2 { + pinctrl-0 = <&uart2m0_xfer>; + status = "okay"; +}; -- 2.35.1