Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2729567pxy; Sun, 25 Apr 2021 02:24:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVwUIN82t2cwfDjoronVqKDyssqFHCTtlSJcntQS+YXUWw/DfaOYbPCJzrNMHcHWpqWH1t X-Received: by 2002:a63:1f25:: with SMTP id f37mr1066420pgf.142.1619342689928; Sun, 25 Apr 2021 02:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619342689; cv=none; d=google.com; s=arc-20160816; b=FetrKeb90b5b+zmklDMmkGaecual064Oi+UWzW3B3Rube75sYBl+C7Eil46DH1CDL7 zoI2D+NwgXDzAGCpNZSkfoME2+LL6zeDGcpuA4s+dnEA5NUyK/rxihuiH051ka3CdXMu xDeJqXDpdhe1a+af+ShDQicbN14S1fIoDkNM0AZ+T6BExHgw7QLwlnwzf9nYRk0Rg/+Z U5RKHrkphLCVDmw21SCTydjgVtAOZhRLT3uA+fN+oguXZxWZmT8YlzV6SLAoUSaej0fj Og/vWB6cBeMDAe28tsGOVus2WMj5DTFB9yRsObu/CsccDyuZbksDqsl9Pl0jjmb0txip ITpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc; bh=l6wgQpecPOzTPpzZ89Db0SqokD0eMggHQNj5L1FVfqQ=; b=pphyutTgYYz/A+C7yIDTNNPo6QzTtMIHdrBdzCnu7vVOZ7i/8P8H13iIlXmZLJv8Tr 5uLRNzXpj2aKEZd1MwxQtvse1R2XKsNqB540DXOwl3uJn3Rk5EHgG7AJeyv6MnvLci5f Vq5JA+I26pH44cqTSFXuZjuqCyD+Y58NxG7zE5GqvNo//gLr57EF3HuGdAndcGfNwdjH dpf90GjQJ42bkdsOgGevN0khe8lOVmMDBSDQUnjnlMcEKq+cRuMdwpfL0GX60PxAu/ip 5nNMWk4V26qSKJH5vwnFOVgIk/aYzNq7sBE85+7sLltVfV9k7USo8LoiuESUWOfccfb8 jAUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si13714388pgu.261.2021.04.25.02.24.36; Sun, 25 Apr 2021 02:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbhDYJYn (ORCPT + 99 others); Sun, 25 Apr 2021 05:24:43 -0400 Received: from regular1.263xmail.com ([211.150.70.199]:60256 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbhDYJYm (ORCPT ); Sun, 25 Apr 2021 05:24:42 -0400 X-Greylist: delayed 428 seconds by postgrey-1.27 at vger.kernel.org; Sun, 25 Apr 2021 05:24:41 EDT Received: from localhost (unknown [192.168.167.70]) by regular1.263xmail.com (Postfix) with ESMTP id 0E2FB1175; Sun, 25 Apr 2021 17:16:54 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from [172.16.12.151] (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P26234T140422479345408S1619342210060169_; Sun, 25 Apr 2021 17:16:51 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <1eed35af59979b8940d3107cc52244b9> X-RL-SENDER: cl@rock-chips.com X-SENDER: cl@rock-chips.com X-LOGIN-NAME: cl@rock-chips.com X-FST-TO: huangtao@rock-chips.com X-RCPT-COUNT: 26 X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 Cc: cl@rock-chips.com, heiko@sntech.de, robh+dt@kernel.org, jagan@amarulasolutions.com, wens@csie.org, uwe@kleine-koenig.org, mail@david-bauer.net, jbx6244@gmail.com, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, jensenhuang@friendlyarm.com, michael@amarulasolutions.com, cnsztl@gmail.com, devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-i2c@vger.kernel.org, jay.xu@rock-chips.com, shawn.lin@rock-chips.com, david.wu@rock-chips.com, zhangqing@rock-chips.com, huangtao@rock-chips.com Subject: Re: [PATCH v1 4/5] arm64: dts: rockchip: add core dtsi for RK3568 SoC To: Marc Zyngier References: <20210421065921.23917-1-cl@rock-chips.com> <20210421065921.23917-5-cl@rock-chips.com> <87zgxrpxo5.wl-maz@kernel.org> From: =?UTF-8?B?6ZmI5Lqu?= Message-ID: Date: Sun, 25 Apr 2021 17:16:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87zgxrpxo5.wl-maz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc,     Thanks for reply.     See below. 在 2021/4/21 下午9:36, Marc Zyngier 写道: > On Wed, 21 Apr 2021 07:59:20 +0100, > wrote: >> From: Liang Chen >> >> RK3568 is a high-performance and low power quad-core application processor >> designed for personal mobile internet device and AIoT equipments. >> >> This patch add basic core dtsi file for it. >> >> Signed-off-by: Liang Chen >> --- >> .../boot/dts/rockchip/rk3568-pinctrl.dtsi | 2789 +++++++++++++++++ >> arch/arm64/boot/dts/rockchip/rk3568.dtsi | 795 +++++ >> .../boot/dts/rockchip/rockchip-pinconf.dtsi | 346 ++ >> 3 files changed, 3930 insertions(+) >> create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-pinctrl.dtsi >> create mode 100644 arch/arm64/boot/dts/rockchip/rk3568.dtsi >> create mode 100644 arch/arm64/boot/dts/rockchip/rockchip-pinconf.dtsi >> > [...] > >> diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi >> new file mode 100644 >> index 000000000000..ac8db2f54f2b >> --- /dev/null >> +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi >> @@ -0,0 +1,795 @@ >> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) >> +/* >> + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +/ { >> + compatible = "rockchip,rk3568"; >> + >> + interrupt-parent = <&gic>; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + aliases { >> + serial2 = &uart2; >> + }; >> + >> + cpus { >> + #address-cells = <2>; >> + #size-cells = <0>; >> + >> + cpu0: cpu@0 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a55"; >> + reg = <0x0 0x0>; >> + enable-method = "psci"; >> + clocks = <&scmi_clk 0>; >> + operating-points-v2 = <&cpu0_opp_table>; >> + #cooling-cells = <2>; >> + }; >> + cpu1: cpu@100 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a55"; >> + reg = <0x0 0x100>; >> + enable-method = "psci"; >> + operating-points-v2 = <&cpu0_opp_table>; >> + }; >> + cpu2: cpu@200 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a55"; >> + reg = <0x0 0x200>; >> + enable-method = "psci"; >> + operating-points-v2 = <&cpu0_opp_table>; >> + }; >> + cpu3: cpu@300 { >> + device_type = "cpu"; >> + compatible = "arm,cortex-a55"; >> + reg = <0x0 0x300>; >> + enable-method = "psci"; >> + operating-points-v2 = <&cpu0_opp_table>; >> + }; >> + }; >> + >> + cpu0_opp_table: cpu0-opp-table { >> + compatible = "operating-points-v2"; >> + opp-shared; >> + >> + opp-408000000 { >> + opp-hz = /bits/ 64 <408000000>; >> + opp-microvolt = <825000 825000 1150000>; >> + clock-latency-ns = <40000>; >> + }; >> + opp-600000000 { >> + opp-hz = /bits/ 64 <600000000>; >> + opp-microvolt = <825000 825000 1150000>; >> + }; >> + opp-816000000 { >> + opp-hz = /bits/ 64 <816000000>; >> + opp-microvolt = <825000 825000 1150000>; >> + opp-suspend; >> + }; >> + opp-1104000000 { >> + opp-hz = /bits/ 64 <1104000000>; >> + opp-microvolt = <825000 825000 1150000>; >> + }; >> + opp-1416000000 { >> + opp-hz = /bits/ 64 <1416000000>; >> + opp-microvolt = <900000 900000 1150000>; >> + }; >> + opp-1608000000 { >> + opp-hz = /bits/ 64 <1608000000>; >> + opp-microvolt = <975000 975000 1150000>; >> + }; >> + opp-1800000000 { >> + opp-hz = /bits/ 64 <1800000000>; >> + opp-microvolt = <1050000 1050000 1150000>; >> + }; >> + opp-1992000000 { >> + opp-hz = /bits/ 64 <1992000000>; >> + opp-microvolt = <1150000 1150000 1150000>; >> + }; >> + }; >> + >> + arm-pmu { >> + compatible = "arm,cortex-a55-pmu", "arm,armv8-pmuv3"; >> + interrupts = , >> + , >> + , >> + ; >> + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; >> + }; >> + >> + firmware { >> + scmi: scmi { >> + compatible = "arm,scmi-smc"; >> + shmem = <&scmi_shmem>; >> + arm,smc-id = <0x82000010>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + scmi_clk: protocol@14 { >> + reg = <0x14>; >> + #clock-cells = <1>; >> + }; >> + }; >> + >> + }; >> + >> + psci { >> + compatible = "arm,psci-1.0"; >> + method = "smc"; >> + }; >> + >> + timer { >> + compatible = "arm,armv8-timer"; >> + interrupts = , >> + , >> + , >> + ; > This doesn't match the GICv3 binding for PPIs. fixed in V2. > >> + arm,no-tick-in-suspend; > Oh, really? :-( yes, arm arch timer will stop in suspend mode on rk3568. > >> + }; >> + >> + xin24m: xin24m { >> + compatible = "fixed-clock"; >> + #clock-cells = <0>; >> + clock-frequency = <24000000>; >> + clock-output-names = "xin24m"; >> + }; >> + >> + xin32k: xin32k { >> + compatible = "fixed-clock"; >> + clock-frequency = <32768>; >> + clock-output-names = "xin32k"; >> + #clock-cells = <0>; >> + pinctrl-names = "default"; >> + pinctrl-0 = <&clk32k_out0>; >> + }; >> + >> + scmi_shmem: scmi-shmem@10f000 { >> + compatible = "arm,scmi-shmem"; >> + reg = <0x0 0x0010f000 0x0 0x100>; >> + }; >> + >> + gic: interrupt-controller@fd400000 { >> + compatible = "arm,gic-v3"; >> + #interrupt-cells = <3>; >> + #address-cells = <2>; >> + #size-cells = <2>; >> + ranges; >> + interrupt-controller; >> + >> + reg = <0x0 0xfd400000 0 0x10000>, /* GICD */ >> + <0x0 0xfd460000 0 0xc0000>; /* GICR */ >> + interrupts = ; > Please add the 'mbi-alias' property, which should map onto the GICA > range that GIC600 provides. At least this could be useful to have MSIs > despite the lack of a working ITS. We can work out the usable ranges > on a per-board basis. Thanks, we will try mbi-alias later, but we are afraid that the number of SPI is not enough. > > Thanks, > > M. >