Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6426137rwl; Mon, 9 Jan 2023 08:11:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXuazd8F6dd/f13PDUxj2YLsQpdIiieo2uDPIsQRv1dZ5dWKbAZZ5W6H3+EpNKktAaRPsZmr X-Received: by 2002:a05:6a20:7d9e:b0:af:6d41:dd8c with SMTP id v30-20020a056a207d9e00b000af6d41dd8cmr104237430pzj.38.1673280697536; Mon, 09 Jan 2023 08:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673280697; cv=none; d=google.com; s=arc-20160816; b=J87f6jqoNrvJY/Loqf65oif8mHIvxqMHQipCk1LYJoz/1YW2zfoilMMg6u//DLOOkN atA6OoOWYUoZx/K7PPwZ6tL9oGVBf+Eu6n+jVynh7VJBEBq9G9tM0n+VySz+hygvBDel TiS9psHzmBsJJMWsdKqJMoHeMRXaDBMO876a2zAr/QlXzcH0Fqk5x5DaoxdNZTNG0CN4 MzXutMJPo/hqFKpxDvtJEwrhYBoIswZYRx0pQKFQ4AGiUDszbHHDSrdWS2RGsQsORJYN POB56BH5gE8OyeE7l4ojaBj0KpzwoxV8u0uDoJr71bTX1judBa5+9SuvuU5A4THNjpxB 3DwQ== 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=tTB363JFOdzo8ektl1wd8Q7ssGMV0wQp+wPIl5np0SM=; b=uGnbBIH9bSl/ASeXKo4s/3KregMzzd/HeHeuZ966QcSVMtNRo/5FhFpEhYrNExehtz CUv0PxaLr3DMOjVlAXGaMC15Zo4KWhkHcsJ97mXAZwd6oXVvdqw2iEfvyhZXHpbn2dPs hXfTNfc/0GYuHLNsLHQAzWSOEb0k1yPzXzO8eQnS/W7oz3dWhlh2XR0Oq0g/baMJJ22+ WFyQO9MyrT9qVOBBZuhkfuzoAmoQj7T2ZaUXuB/NRtOMJqmAr4yVGz/LSHBmfXOyTVqm 9r8qGr3ryg5m3zy1OvUgzYc1gWUzqZLalYtF0gbbrgk0a+DzfmnZetMMNLDVig+Ypkjl jmgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Lh4fNp+t; 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 e184-20020a6369c1000000b0047715beb2a5si9869021pgc.150.2023.01.09.08.11.31; Mon, 09 Jan 2023 08:11:37 -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=Lh4fNp+t; 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 S236994AbjAIP6Z (ORCPT + 52 others); Mon, 9 Jan 2023 10:58:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235060AbjAIP6K (ORCPT ); Mon, 9 Jan 2023 10:58:10 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2703631F; Mon, 9 Jan 2023 07:58:09 -0800 (PST) Received: from jupiter.universe (dyndsl-037-138-188-006.ewe-ip-backbone.de [37.138.188.6]) (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 4B0DE6602D74; Mon, 9 Jan 2023 15:58:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673279888; bh=29LD3VmVB20EjN7ong+qqmBDjJ+MBWWYVtuzdkp2ZHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lh4fNp+tLAD42moyVnLffddgYfnpvUfk9xLI0KjblqT5hiKENUpXDdFURQa+jJDlr 4FGwkO9KVwfRappZTsXu0jpXbIcG8ZZLNCITM3l9UWNobAw5FI3WL4lGUWHFQh4g5Q fxIN9utp2z+fR6MUK8MYv3lphKqhLpwmVYMpLd8i2Cw5j4J4K/IziAe87LPkqav697 NPPX4RFfIhFYXXFpgHVgSWtD8hoS4EOiNRIO+BI3Vpm0JWlig04WAgehVzNz61fsuh GuCzrZjUqr/hJSjfekuHU0ewAw9YDIiz9CnTVgCuFW3bwEPGZQXOpqqPXpRGsXBIns 0OFujtrU3yqVA== Received: by jupiter.universe (Postfix, from userid 1000) id 8D47548011E; Mon, 9 Jan 2023 16:58: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: [PATCHv8 6/7] arm64: dts: rockchip: Add rock-5a board Date: Mon, 9 Jan 2023 16:58:00 +0100 Message-Id: <20230109155801.51642-7-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230109155801.51642-1-sebastian.reichel@collabora.com> References: <20230109155801.51642-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..409a43d059d8 --- /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 5 Model A"; + 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