Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4891014imm; Tue, 31 Jul 2018 01:45:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesU1lgJ0k/lfFmZqu/Dv71BCwN33JIEAgNRmf5ZSIf4TeeWZBgTgv7oc535mCEqAm2uWBc X-Received: by 2002:a63:90c8:: with SMTP id a191-v6mr19612802pge.173.1533026704817; Tue, 31 Jul 2018 01:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533026704; cv=none; d=google.com; s=arc-20160816; b=kzPhCzF6/cN/oEkWHLyBxtXdAcVmoYideL2LeTv6eJQoAUiy2oUDP0XtZYRUq1kIPU vf9DtMLB0m4Gc8/aPZsVgJ3jOQfizCGCkbqTZv6s65sVCUpEEWUacWSHSA99YXYe0CmO Wi97zpIpybUF1YyeC0TZOyxXvwGJq7/yE/ZauprAtWAH6I6EnbmeyCkZhVOXo4VOwHnd FvK/dNtlLpAs2wrM7bt1FhxQ65eHZhW3UCXTBogAdiNU8qN2iNi+2M5AID53pEJ/Texa 0Yft2fW2J3Gz/jh1eHivTxTddQQ8KbGNBBIZuWkxEBThqRT7I4zZDaWqgC/L/KgJLGh4 UFUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=UZDiFABW5lltR9SONLNN+M6Qgee0SXbOAc0FR8ahKDA=; b=UJ8KPzNwOR3oC5VYK2ws83r1pLO7SLp7aXOHy9wfiJWSwmtDnd6sZOVDH3MnNzIL8m aQHwOd1J45Pd6uLggG+lRJwpjdCMAS+7o48NrKAgXy31Qfl6iu3RsW+f5tIk4wB2/Bqf VQCWzbKIf8zxKJpWEprHAzUeEprgQdYutx+ssjpdH4mVw9Xcf0fo4gpTL+adIzJxOpIM dceux9iG7dXmy4vkCr5K15rUMl7vXtptqrEl4uYSbGIT2WGpUXqlss6N7QcLSq1S3zh4 CX78CPVXkAzxhe8KPPJdXJySF+fEbq218ClGrCgWcw1h3xMxIvNF/oEcyYzXcVj9TAMs ttrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si4948408plc.154.2018.07.31.01.44.50; Tue, 31 Jul 2018 01:45:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729790AbeGaKXR (ORCPT + 99 others); Tue, 31 Jul 2018 06:23:17 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:17891 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729485AbeGaKXR (ORCPT ); Tue, 31 Jul 2018 06:23:17 -0400 X-UUID: d20e830d23534e93b7d2c9336c2cbdde-20180731 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1637635894; Tue, 31 Jul 2018 16:43:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 31 Jul 2018 16:43:53 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 31 Jul 2018 16:43:53 +0800 Message-ID: <1533026633.10540.20.camel@mtkswgap22> Subject: RE: Re: [PATCH v1 1/2] arm64: dts: mt7622: add some misc device nodes From: Ryder Lee To: Matthias Brugger , Rob Herring , Sean Wang CC: , , , Date: Tue, 31 Jul 2018 16:43:53 +0800 In-Reply-To: <2839886f07dc47afb9a05d06fb1acc84@mtkmbs08n1.mediatek.inc> References: <2ff39c40ef6bc3054667e63c785a1d28527b5ddf.1531753039.git.ryder.lee@mediatek.com> <864955d5-26c4-a5f3-ec1a-420acba50880@gmail.com> <2839886f07dc47afb9a05d06fb1acc84@mtkmbs08n1.mediatek.inc> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, Sorry for the late reply. On Tue, 2018-07-31 at 16:17 +0800, Ryder Lee (李庚諺) wrote: > Hi Ryder, > > On 16/07/18 16:59, Ryder Lee wrote: > > Add some misc nodes support - timer and ARM CCI-400. > > > > Signed-off-by: Ryder Lee > > --- > > arch/arm64/boot/dts/mediatek/mt7622.dtsi | 36 > > ++++++++++++++++++++++++++++++++ > > 1 file changed, 36 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > index 9213c96..8cdec52 100644 > > --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi > > @@ -217,6 +217,16 @@ > > #reset-cells = <1>; > > }; > > > > + timer: timer@10004000 { > > + compatible = "mediatek,mt7622-timer", > > + "mediatek,mt6577-timer"; > > + reg = <0 0x10004000 0 0x80>; > > + interrupts = ; > > + clocks = <&infracfg CLK_INFRA_APXGPT_PD>, > > + <&topckgen CLK_TOP_RTC>; > > + clock-names = "system-clk", "rtc-clk"; > > + }; > > + > > scpsys: scpsys@10006000 { > > compatible = "mediatek,mt7622-scpsys", > > "syscon"; > > @@ -317,6 +327,32 @@ > > <0 0x10360000 0 0x2000>; > > }; > > > > + cci: cci@10390000 { > > + compatible = "arm,cci-400"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + reg = <0 0x10390000 0 0x1000>; > > + ranges = <0 0 0x10390000 0x10000>; > > From my understanding of the binding description ranges should hold child address, parent address and size of the region in the child address space. I can see in arch/arm64 two different variants using 4 ranges values (like here) and using three values. > > @Rob + Will what is the preferred way to describe this? Hmmm... it's just a copy-paste (I take zynqmp.dtsi as an example). > > + > > + cci_control0: slave-if@1000 { > > + compatible = "arm,cci-400-ctrl-if"; > > + interface-type = "ace-lite"; > > + reg = <0x1000 0x1000>; > > + }; > > Don't we need to add phandles to the cci-control-port property in the cpu nodes? > > Regards, > Matthias MT7622 use cci-400 to improve performance (DMA IO coherence) for high-speed IPs. (i.e., ETH/WIFI/SATA/...) I added it early but actually the related features have not supported in mainline yet. Ryder