Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4684451rwb; Mon, 21 Nov 2022 10:29:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf6E+C1X4MBEjjSaJjsCiW6E1ABYX8/7KdYoauclBzLAbuIE09BuxEk9kSRxxF6Kcrq/HHOT X-Received: by 2002:a17:906:6146:b0:789:d2fc:41d1 with SMTP id p6-20020a170906614600b00789d2fc41d1mr437933ejl.642.1669055385293; Mon, 21 Nov 2022 10:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669055385; cv=none; d=google.com; s=arc-20160816; b=AGwmjDGDGoUO1P7uykECX/BBXxTBLNiHXDR43s9KUxdYlg0KMkpaSFPr25wNyCsdzF kRI2XY20GIV6R1USfa96yxyYNDSQVh1Y5tkvJjgsLoOwGmZTev/Um9UHpX0RTb+6yGLr ihkpYnjn3pHkri3H+n1yPjzn3UWagroGtclwdY/GUexx2MH5+EdHmDA2snR85HA460qx PZj5x8D6/BZkFNTDKK33G4uthfWb5irL3lLei0CNKEfvbVz4rQyLwEN3NWLFYgRW35b0 t8IuwtBVXco6JZWQTJr27B6xeN91vHD3TjEmK66Gpz+65m055KZM1NZUvfMhFEkL27Dj nV9A== 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=mwAT+8+2p/RMfAVCbsOzPPsWjtxnah+noi6jvlJuMus=; b=TdNQDRQJY8ORVnNa9fZtn33A9vYtVJI7/1TPU0pHccF+/+kyIe3APxzhWXIHCkJsoL CKjRBZZJ0+6uwpOf2Z9Rf+D0Cx3Zz/wkV4WsRoPiAI31+4tdHeDzqZtd/kNkdDJTAOiq vn8vHYkxyBKVvqsxsJ83sBu9GfrMrYvrEQ6Wo7/KOovhwG9z7qidv9r/5sIDK5OPLZjR M4edhGsMWfcuU5sOZfYDRuGUUpoORltARhpvraQmyEN/vvdkhYga1xX46Gbk2G+VHNx1 ctcXsIKYt1r5Bf0seg38iM9mCzDIlPgUlFZPOU4YvcbZ3ptghDRrHHarrgK4KG2jQbhm 7pzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=W+V+3hAW; 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 ga5-20020a1709070c0500b0078a19032c70si11511360ejc.334.2022.11.21.10.29.15; Mon, 21 Nov 2022 10:29:45 -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=W+V+3hAW; 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 S230298AbiKUR67 (ORCPT + 91 others); Mon, 21 Nov 2022 12:58:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbiKUR6b (ORCPT ); Mon, 21 Nov 2022 12:58:31 -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 3EF6E10B71; Mon, 21 Nov 2022 09:58:29 -0800 (PST) Received: from jupiter.universe (dyndsl-037-138-187-016.ewe-ip-backbone.de [37.138.187.16]) (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 B8B7F6602AB7; Mon, 21 Nov 2022 17:58:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669053507; bh=VS54BJBr7CpfX1Bw9N+wQYidwoy1K3sOV7Z1lbUTSOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W+V+3hAWZLmVkfIuwGgHRNP4RYljuLK+7NuH8bBP1uhFiHnv3o3eamD3l/73Djk/9 21IdpiTdX6Qa5A8ffaxGTP1TtIERmPgnKz1lixi3A6FEiVyTe///fj2Suh1je6vmJc 7ErGkJvB4NxfmLqWP/vBatQ/WPAZdlkyAO0vilSgTkPTN+BUpryGHaJPXzbv0Jyfoj 94JZ/URA9vLF/A6/qsLQxrbRIXlJQaQvI71ztHJZmU3cRx8G4X6VIDaUDXkgglNkiF 8g/puSmlKvXqFfllz19wqgp0GsahmSCam5sevZUi9UjA68kesWQ0CXdFq+Sp6yVL20 ojGzx29flb2Lw== Received: by jupiter.universe (Postfix, from userid 1000) id 1CAF8480122; Mon, 21 Nov 2022 18:58:23 +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: [PATCHv3 8/9] arm64: dts: rockchip: Add rock-5a board Date: Mon, 21 Nov 2022 18:58:13 +0100 Message-Id: <20221121175814.68927-9-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221121175814.68927-1-sebastian.reichel@collabora.com> References: <20221121175814.68927-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 | 66 +++++++++++++++++++ 2 files changed, 67 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..62d81e1add2d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -0,0 +1,66 @@ +// 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; + }; + + 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: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; + }; +}; + +&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