Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8995221rwb; Thu, 24 Nov 2022 06:52:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf59++etqklfRmmGlOFPBQthCjsLRxMRppkSBrOKvzM0MPo3wQS5+9WT+kKAs37K0+c6OadE X-Received: by 2002:a63:495e:0:b0:43c:a5cb:5d1b with SMTP id y30-20020a63495e000000b0043ca5cb5d1bmr12525655pgk.134.1669301530882; Thu, 24 Nov 2022 06:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669301530; cv=none; d=google.com; s=arc-20160816; b=B1kTgC/atuceNCt5IMZrYtSpMgCdxHE6JmQZIJIGIPJnJr87L05Oco2boYLboUk/Ay rfOMr03cVE2rVBwwjxr/X6ZAfgnvprWOvJ/rFWQDyRNZPsXKBcM4LIqQKY/ZLe/XO0OC Cy3sCEqRmNvbxbEWqCKNA4LPcXp50ohekuaLL4488z9CW3DdAm36YE9vstdqJwrasG9V hUxeRiZHtJhj78f3nTeI0lQKGxVmgX6TL5kRUeWgd2DcDEGKjgRMdCT2J22MGInDI58i 88dpWZ8iQblegih3YQDGW7H2nitxYbwY12yK5NoD2lNT5KR7PXuQLiA6zKrQsi4qayFd jhkw== 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=Gyn5DPilKiPXE46GXARf47sWX5liORDaPJq88xJDFZA=; b=Ka3LZLj9PmplFBEx3ewVmwDCK+mSV7aJrQxA7idU2+Ef/V5/fIj0inpcpuZm7A2IRz I3S7ejqCFWipcyJ1FpPES5ZmfzFOEOqwjnOgqF3F7Lo3yQSu2Ls0j3N8E9y1AOrQpxEq TB/1sotjQGVpX9jokoiqx5zbA0bLlghrUHh9PlZI8OutnJEOC5qiCQYpNkfkf77edWlV nKY/B30Rqw69XQSE+4hcxz1VgtO3L1gQqDw1/CsXqZBlFUKUWDfFKTGqkqqp8Gc9guGC nhGXUd+ZNKZHAJrFbZkRzKKrZDJ/mFcFvVqERrP1TEzavY2wyMI9dOimmlpbmEBL6fTJ vLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WzFd7Ydj; 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 k186-20020a6384c3000000b00477d77c1be0si630291pgd.378.2022.11.24.06.51.59; Thu, 24 Nov 2022 06:52:10 -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=WzFd7Ydj; 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 S229814AbiKXOtw (ORCPT + 87 others); Thu, 24 Nov 2022 09:49:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbiKXOtg (ORCPT ); Thu, 24 Nov 2022 09:49:36 -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 06C32FF42A; Thu, 24 Nov 2022 06:49:36 -0800 (PST) Received: from jupiter.universe (dyndsl-095-033-156-095.ewe-ip-backbone.de [95.33.156.95]) (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 7C4796602B42; Thu, 24 Nov 2022 14:49:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669301374; bh=zpRZq7D9RSBYQ50XU0gvhVUUeLk1MXt+/JxhO/9zIbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WzFd7Ydjjw65O016HcmO7p2qbhVMoxcRXsISb5cVrPRcCnQ+Gw2W84X4kphQTrbUJ q3sAiMDE+GgV2b0RLjquwjB3lNlmielUOblC1+WzRGvq8Q3VZ4XIHrAaG3IIV6K1NK VkCFtr6KFAQ8++08KlVQdARXs/ZLlEHfRdwJzyU0/GXWk/z10nk1/AE5CFaWwMF0SS FiaKxL9M5p9nrjLc1JRvZwp+xAeVp5FFAEpt2/4nv4OVN1d7Y2i+vQJ27noQFi0lGw eYWc48ZhQ3YiyzVEcc+qw6EOeGqCv5KqABZPHR0RDyqQexIzQZb/vzXLN84owSk/mQ wd1W9weoO4Smw== Received: by jupiter.universe (Postfix, from userid 1000) id 66A65480121; Thu, 24 Nov 2022 15:49:29 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Linus Walleij , Christopher Obbard , Benjamin Gaignard , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv4 6/7] arm64: dts: rockchip: Add rock-5a board Date: Thu, 24 Nov 2022 15:49:27 +0100 Message-Id: <20221124144928.35381-7-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221124144928.35381-1-sebastian.reichel@collabora.com> References: <20221124144928.35381-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 --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3588s-rock-5a.dts | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts 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..b9d1ade62b4c --- /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"; + + aliases { + mmc1 = &sdhci; + serial2 = &uart2; + }; + + chosen { + stdout-path = "serial2:1500000n8"; + }; +}; + +&gmac1 { + clock_in_out = "output"; + phy-handle = <&rgmii_phy1>; + phy-mode = "rgmii-rxid"; + pinctrl-0 = <&gmac1_miim + &gmac1_tx_bus2 + &gmac1_rx_bus2 + &gmac1_rgmii_clk + &gmac1_rgmii_bus>; + pinctrl-names = "default"; + rx_delay = <0x3e>; + tx_delay = <0x3a>; + status = "okay"; +}; + +&mdio1 { + rgmii_phy1: ethernet-phy@1 { + /* RTL8211F */ + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + }; +}; + +&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.38.1