From patchwork Mon Nov 21 17:58:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 23981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1744362wrr; Mon, 21 Nov 2022 10:04:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7J7gNLeiYWrNqgMuIygmDVMSzsO3FVB/yGrYugz7tF6Av7R1WeYNFP7/Cg3XNQh24N0OGe X-Received: by 2002:a17:906:8a4d:b0:7b5:73aa:9988 with SMTP id gx13-20020a1709068a4d00b007b573aa9988mr6606393ejc.597.1669053845781; Mon, 21 Nov 2022 10:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669053845; cv=none; d=google.com; s=arc-20160816; b=bxrDznzFFUDMwLVE3qz3dDcajsau8Vg/DQvuvk48r4Ojr/fBghSPkPLhrJVhf4mCfm oVZTN1aC9kXvhLsTdRPWP3RZrVuCppiFsXKFSZJSI/cV7YW4D4vFZ6bUEFrRwAlswUj5 JWlaSVLmcwcbJM7FMe5PjNe3HCYSXC1OIiYeSEGZRMD+X4E4081LTdm7LgzL37PkLMPR X59iuPIvfjEnqdldHzeYmyN2yCjhP2QxxQYbicL5qc82K+T5hnfkpBee0xQwqXjk2gFu Mv6DAIOg16qWMd1iHr6UMEejPm3xJABqm3+wYwlrIFYZUdJVtdvMi4XSmdBm64GK0VB9 Z/Gg== 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=apCjZrLmbB17yaTVfewlN1tftVWj4P0mpTp2XU0JNmU=; b=EtC5IIIBEnnRDwBvW0gDDVOBMNs13jHKvZFHbPK07lknVYMJQuJAG2uAobEdfZdcP2 iCjNJzvY72q7UPBYeQKlWPFzbSnnKP8eE75l0uis59AN+ClkO6ltf+xPpevL+9LqOyv4 XhXj3CVGAvP4djk23Jl8tp0//5Lwwb9FXpwFsKweVVicEM0eUlBOe5/qKb2EDF8R+xX3 wXp3LAPQw2UMPSQ6KIOdgCKv/LcmamrsXtjXxudWpb+/4Bazo4M7TbiTLJcuHDETUwUL x4olr+DrQiT81FazZoqkD5wS/sBT242zGwPSMxz4GvP1mSpp9GGpCf617b5QeatxiKsZ bBOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=AbsEYCHc; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a056402254900b0045caa8bf80bsi10287194edb.307.2022.11.21.10.03.34; Mon, 21 Nov 2022 10:04:05 -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=AbsEYCHc; 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 S231225AbiKUR7H (ORCPT + 99 others); Mon, 21 Nov 2022 12:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbiKUR6b (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 65529140AB; 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 C1AED6602AC7; 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=ASKiqbUGK6OeP8tAoM8DA0LQu24xmUO6m/UZrw3PEcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AbsEYCHcton9DeItmJ8Oj940G+GhuAFmsvTCEAKcKZhk/9iOE4flRD5EcBXenFWiM ZruYpnHh/2ekrCytRzXg/51WWjpy1uXvnL0cmz2AxXyoMlEWGeLOQ9FVAzMqqE0Gzl iEKqUC0QjkDCyyVPu+Bbrl+diYt1Oot5T1oP0Qlyt5giJ27C6IwQ8xrzUMERUKt1+o M1C0t38NWgRks2ug3AS0tJa9uOTjHV/6jXHyvAwHfYgc+rlLDnHEkPyKz+rzvMbPzI 9Fj+Yg/18/qnvdx7FDOd+iKgZD8pM1WQTCDZPEzBhxY6D81aGZJTROkNATFua/PxZH sN0roKgJBGSvg== Received: by jupiter.universe (Postfix, from userid 1000) id 1E897480126; 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, kernel@collabora.com, Sebastian Reichel Subject: [PATCHv3 9/9] arm64: dts: rockchip: Add rock-5b board Date: Mon, 21 Nov 2022 18:58:14 +0100 Message-Id: <20221121175814.68927-10-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750129805259879065?= X-GMAIL-MSGID: =?utf-8?q?1750129805259879065?= From: Christopher Obbard Add board file for the RK3588 Rock 5B board. This is a basic implementation which just brings up the eMMC and UART which is enough to successfully boot Linux. The ethernet controller is connected via PCIe so support will come in a follow-up patch. Signed-off-by: Christopher Obbard Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3588-rock-5b.dts | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 31fa55750a0f..b31aa1b0e9e3 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -73,4 +73,5 @@ 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) += rk3588-rock-5b.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts new file mode 100644 index 000000000000..2a55659bab41 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include "rk3588.dtsi" + +/ { + model = "Radxa Rock 5B Board"; + compatible = "radxa,rock-5b", "rockchip,rk3588"; + + aliases { + mmc1 = &sdhci; + }; + + chosen { + stdout-path = "serial2:1500000n8"; + }; + + vcc5v0_sys: regulator-vcc5v0-sys { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; +}; + +&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"; +};