From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 164BFC43462 for ; Sun, 25 Apr 2021 10:20:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8CA8A613B1 for ; Sun, 25 Apr 2021 10:20:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbhDYKU5 convert rfc822-to-8bit (ORCPT ); Sun, 25 Apr 2021 06:20:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:57740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhDYKU4 (ORCPT ); Sun, 25 Apr 2021 06:20:56 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E197613AA; Sun, 25 Apr 2021 10:20:17 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1labs7-009JuV-1s; Sun, 25 Apr 2021 11:20:15 +0100 Date: Sun, 25 Apr 2021 11:20:13 +0100 Message-ID: <87o8e2sm1u.wl-maz@kernel.org> From: Marc Zyngier To: =?UTF-8?B?6ZmI5Lqu?= Cc: 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 In-Reply-To: References: <20210421065921.23917-1-cl@rock-chips.com> <20210421065921.23917-5-cl@rock-chips.com> <87zgxrpxo5.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: 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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Sun, 25 Apr 2021 10:16:50 +0100, 陈亮 wrote: > > 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 [...] > >> + 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. That the comparator stops is completely expected, as it lives in the CPU power domain. But losing the system counter on suspend is a complete violation of the architecture, which clearly states that "The system counter must be implemented in an always-on power domain." (ARMv8 ARM G_a, D11.1.2 The system counter). Are you actually losing the system counter? > > > >> + }; > >> + > >> + 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. Not enough for what? People might want to trade the use of in-SoC devices for MSIs. Also, the DT should describe the whole of the HW, including features that you don't find useful. Thanks, M. -- Without deviation from the norm, progress is not possible.