Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp425951rwb; Wed, 9 Nov 2022 04:31:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM5sdcsTWU4noGfIZ6NNbtR5Y11IK/Q7oLaEQGGReDfcqQvybA3DeYOBuvXlHiXZrymg4Q/S X-Received: by 2002:a17:907:7b8b:b0:7ad:e144:19e1 with SMTP id ne11-20020a1709077b8b00b007ade14419e1mr46279159ejc.154.1667997065304; Wed, 09 Nov 2022 04:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667997065; cv=none; d=google.com; s=arc-20160816; b=EGDH082WLE+RayLgm5o2dsrgm/vum+lGklaRM7fTHjMJT4/mGpB2uycpOWSVQSHRrN d1TBepMvU1+fuvxtB2WNMM8Cwbgz31EaUTzSTpfzXQ2EDUYrmHAw0HOENhbR6OEUxBMR 69qGrgYQIbc9YXlN+58JHf2TWIHIY/MAlOkTPlcPS9cmBgUKhZiyKNa65xGSJqeNX/Iq 28F6Bj7zynZM+IOlNXnbF7mZ7XAlVne9uCBnNrayCrbPCtNCuhTDb6x1nybI1j+bdLS4 abMhNbZc1jSaszkXP04obp21x4L3U/FBGDV+hsqI50nkCPOQqL9P9g68vCUjI68T/4r7 MoJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :in-reply-to:organization:from:references:to:content-language :subject:cc:user-agent:mime-version:date:message-id; bh=svFATV0a/BiAPTSd0xzalidgtbeMZjnm0cm6M+GrsC8=; b=LzncpornunOdKuQEiQKBzcKfggm6zd1Evp0FA9UprGMuipp/s6f2hc8oCa0687ygV2 HCMVkOMBdKDI8kAjhDTs36hheHutKHeyBPDQmz5nLpU0ka2fI9mrqtkaEeNcOP4F4qym FBgWtz7yObzilA1/LmzgxfirbVlRS+Olxqbzub8bIYt9qdIm1oxDcugEgcrssyOgWn+K XXaL1X7ELsLZ/7eDWqd3m/510Yyyt2hbl02gQqO6DnJe4/xsoQLe5W+b663kEqgLrYRN z5ZV+9mZpyg9WjSZN/W/BhA06LmrS9VzYPtPGT1Bel1kyAoJlpmqH6+p/jrVUCoaQIvV c65Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=radxa.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a05640234d200b004619867344csi19220959edc.0.2022.11.09.04.30.38; Wed, 09 Nov 2022 04:31: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=radxa.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbiKIMBj (ORCPT + 94 others); Wed, 9 Nov 2022 07:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiKIMBc (ORCPT ); Wed, 9 Nov 2022 07:01:32 -0500 Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189E82CE30; Wed, 9 Nov 2022 04:01:28 -0800 (PST) X-QQ-mid: bizesmtpipv602t1667995270t37f Received: from [IPV6:240e:3b7:3244:5040::360] ( [255.117.123.4]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 09 Nov 2022 20:01:09 +0800 (CST) X-QQ-SSF: 01100000000000I0F000000A0000000 X-QQ-FEAT: 7q8qOdSUjLVaaMsDKNrSeCX2ytnuz1Hbx/zDiF7iyWD+RcqLlibUJae6jaEeS 0lV8zFshiIDCnB5XpITY7puZQJz+IqCS/nwL4RXUca687FEUMmn7fekm2KF0KtTLwCJnMyB wn/2J2y8en30bQSvD6XArAmQg6XqzvFVWfEn4JGoiK+NFJAEgUXC4a8XlhPw6z6cyN9DCOu c2ZnabEGlSqr1r66f4AgEOQqnBa1NlqF7PTHtuAz8C3qLIt2zFTFwoBWQ2Z6R1u7Z+R02TU N4+kFQv1IT4bZIDJu3qL7DamhaHhHUG/whQGq81tJ1pOkxADS7m8IieYuGe3ACQFoITG+YO 5pawRG7uIJl+kZ4fO4fnvszbwynGc6y/cl6mQVO9qpnldxX2W0sG1AsTzOodu6RPYH9xrRw 3hyXSVwJw9a3ycd/jX3b8BIb0SSFEZN0 X-QQ-GoodBg: 0 Message-ID: <892CB3E963AEF095+eaed7498-2324-9476-6a24-f940d62adb74@radxa.com> Date: Wed, 9 Nov 2022 20:01:09 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: tom@radxa.com, Rob Herring , Krzysztof Kozlowski , Linus Walleij , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: Re: [PATCH 5/5] arm64: dts: rockchip: Add rock-5a board Content-Language: en-US To: Michael Riesch , Sebastian Reichel , Heiko Stuebner References: <20221108171500.99599-1-sebastian.reichel@collabora.com> <20221108171500.99599-6-sebastian.reichel@collabora.com> <9bdc7e3b-a57b-7247-39ae-ece7bf1566fc@wolfvision.net> From: ZHANG Yuntian Organization: Radxa Computer Co., Ltd In-Reply-To: <9bdc7e3b-a57b-7247-39ae-ece7bf1566fc@wolfvision.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:radxa.com:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, NICE_REPLY_A,RCVD_ILLEGAL_IP,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 On 11/9/22 17:16, Michael Riesch wrote: > Hi Sebastian, > > On 11/8/22 18:15, Sebastian Reichel wrote: >> 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 >> --- >> .../devicetree/bindings/arm/rockchip.yaml | 5 ++ >> arch/arm64/boot/dts/rockchip/Makefile | 1 + >> .../boot/dts/rockchip/rk3588s-rock-5a.dts | 63 +++++++++++++++++++ >> 3 files changed, 69 insertions(+) >> create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts >> >> diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml >> index 4230881371fa..6bff4c42d815 100644 >> --- a/Documentation/devicetree/bindings/arm/rockchip.yaml >> +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml >> @@ -744,6 +744,11 @@ properties: >> - const: rockchip,rk3588-evb1-v10 >> - const: rockchip,rk3588 >> >> + - description: Radxa Rock 5A Please change to "Radxa ROCK 5 Model A". This is the full product name per our naming convention. >> + items: >> + - const: radxa,rock-5a > > FYI: I was wondering what the convention was when I submitted the > rk3568-rock-3a.dts. There are boards with the compatible > "radxa,rockpi4a", "radxa,rockpi4b", "radxa,rockpis", but also the > "radxa,rock-4c-plus". I went with the slight majority and named it > "radxa,rock3a". Maybe you would like to consider "radxa,rock5a" in order > to follow suit. Currently we keep the compatible field to match the file name excluding the SoC prefix, since that seems to be what other boards are doing (ex. odroid-go2, nanopi-r2s, orion-r68-meta, etc). I'll say `rock-5a` looks good to me. > > Best regards, > Michael > >> + - const: rockchip,rk3588s >> + >> additionalProperties: true >> >> ... >> 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..25387a000341 >> --- /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"; >> + >> + 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: phy@1 { >> + compatible = "ethernet-phy-ieee802.3-c22"; >> + reg = <0x1>; >> + #phy-cells = <0>; >> + }; >> +}; >> + >> +&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"; >> +}; > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip > -- Best regards, ZHANG Yuntian Operating System Developer Radxa Computer Co., Ltd Shenzhen, China