Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1483960rwb; Thu, 15 Dec 2022 10:34:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tyayX7xXuSebOG8yTKKUVXpTMgJLaA13Aw9KfSomTxQZXRVektfIgJzen/gn8ex6qEChx X-Received: by 2002:a05:6a20:841f:b0:a4:64c7:a7f1 with SMTP id c31-20020a056a20841f00b000a464c7a7f1mr49147995pzd.14.1671129287341; Thu, 15 Dec 2022 10:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671129287; cv=none; d=google.com; s=arc-20160816; b=DeVe+AVfzkSqzADRD0BBbNDvBIooihrEfP1AO8UA+DT4PM9bVknNKEi1/EG98Y5oLD y/cnX+KrXZTwhH9K+/KK65NtjtxZegP8HZhaIRqfJL4aCeZacSSwhZYnGKhZhad3b6AG //zzo6mkXyCO+7IWYmjUas6sAxFd9yoBxxCmicy97QJHuJ87sccxShI+nuaNmbAGbIhZ 3CKJ7Yp8JQgHAWZAqT4MjjDH8OX+IZZHoaKzFasEuxOib1jjl7ZVxCGGQjNN6Dof6dmV jwTIiuTRv+fofjpL+nuzd2l0jbIiHvN8GlNYVlpyjI362VSvqUgKaqpxsylBjmBn7Sys 13kQ== 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=L0y0prNEsyBM470BzvEmzh+2+u1tqVJTyxseotZ0ics=; b=qNMaGv8+DoMAbJy4oPZF/44mHZU9wE/f2YR6MbKdfDumFLyk5OrftniE/6+qjjjzzP ulmDPANjv2eU49EiQrYQBYa3IbEFuD0YSKKnUOqqnn9qnD+QSMYpDYjMJaVEtpNAzKA9 ZRONKnvXtLZog+6mvxoAhLxhvQyMGukWguFxgmPa0WaoDhokHn13eU1AzQH6Wg5nQkGD SfsVNXI8diFTNLbBiQt4lLV10yFKpY/srGm/cnvEY3anDuYHlWik9x11b0dWapgZVyOY BkBgk224GnUrAeUMe+ueCbps9BxEe7ljf9QxukahAzRXQfNwBWADpx6uzb+gQTKaPbKr gKug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EzkOvBod; 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 h8-20020a17090acf0800b002187b138f98si5299944pju.165.2022.12.15.10.34.38; Thu, 15 Dec 2022 10:34:47 -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=EzkOvBod; 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 S230373AbiLOScw (ORCPT + 69 others); Thu, 15 Dec 2022 13:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbiLOSa1 (ORCPT ); Thu, 15 Dec 2022 13:30:27 -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 E3A614A5BA; Thu, 15 Dec 2022 10:30:09 -0800 (PST) Received: from jupiter.universe (dyndsl-095-033-168-084.ewe-ip-backbone.de [95.33.168.84]) (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 AB0B26602C8A; Thu, 15 Dec 2022 18:30:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671129008; bh=klsA5pW1otywNag+h9j9kDXFJBescRIjA16krw8B4Nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EzkOvBodpUvrxFsqnjaw/MqoVJylgXhgrZ6QkAP/S4UeRFC4vj9FdxpTPRBZVkSeU ZAq0vRi5bdLKV1w4IZKQxqHlDm4EcSw5EmbP92twUz9JKLXahVoMmJmzjOXUjPFYJi 3bu1/esA1znCFXRKW2YatIYUVXMLrv3Ilr4Ovm/amsDwzzCMaZktZ5KKAJQ5jstLpE S4WaYbqzDeBuYTzZrY7IArEcziUF2b3sDzgWfjfvP9wZjZybmCJ6gQ8/nqLW/bEwgF 5RjQO+67k2cFc3N0VSmJ0TU8Hd4AZK4j+gR3yDh14y5hmn26NWMlasCp12gXB1YYKU LmkOeWuLM2DSA== Received: by jupiter.universe (Postfix, from userid 1000) id 58D30480122; Thu, 15 Dec 2022 19:30:03 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Marc Zyngier , Jagan Teki , 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, Michael Riesch Subject: [PATCHv7 6/7] arm64: dts: rockchip: Add rock-5a board Date: Thu, 15 Dec 2022 19:30:01 +0100 Message-Id: <20221215183002.211081-7-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221215183002.211081-1-sebastian.reichel@collabora.com> References: <20221215183002.211081-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). Reviewed-by: Michael Riesch Tested-by: Benjamin Gaignard Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3588s-rock-5a.dts | 73 +++++++++++++++++++ 2 files changed, 74 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 7452c4b8cbe6..87a853435142 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -83,3 +83,4 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-odroid-m1.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..70db09230ec6 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -0,0 +1,73 @@ +// 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"; + tx_delay = <0x3a>; + status = "okay"; +}; + +&mdio1 { + rgmii_phy1: ethernet-phy@1 { + /* RTL8211F */ + compatible = "ethernet-phy-id001c.c916"; + reg = <0x1>; + pinctrl-names = "default"; + pinctrl-0 = <&rtl8211f_rst>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; + }; +}; + +&pinctrl { + rtl8211f { + rtl8211f_rst: rtl8211f-rst { + rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + }; +}; + +&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.39.0