Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5002728imm; Tue, 26 Jun 2018 04:24:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK8jxMEAtOEaQ6qLaNL4kB7hXPVIBiqqovu7q0bwPbtoZ5qKbZjNUsBuBjQTec1+xbJrKcW X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr1186380plr.199.1530012279897; Tue, 26 Jun 2018 04:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530012279; cv=none; d=google.com; s=arc-20160816; b=stZx9hc2K6uZGord8bEUB8whfrdkxhZJBrTd6JB6aksG9eHDJTuOz5yvKecyF+s9V/ 9BDR3MeiGnkT7dqV+xyutlotEY4CcZ9gHUVwllP3Z7PgnWRfAmj7qoqFOrxjYmZVELdO SewbIA6h2d+fdN6LyctJDWZ9GfppdwZeH32dda4gKh5VWonVZrSQrmBKVNbCvcNmwM5x 0LssTLnim+NoP+p4KIqbWmuDUqkayW4sXCrk8RGaYUGZV0tjfPkjoQST8I8pKatpROCR GwaSdzGWdqq+mgbS0wjuNIjA+H/hAsxMUttd0+Ih9D46zQ6uhu7Qd0Hw7jt6nJ2j6cDk 1uqg== 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=yi8z/M4T6ffzKWUy1rChyewJv2miyKQAv8sXnFtuN5s=; b=hv/Aj0bxoO7ZJJOZ0ks4U4llSoPiscEUyloAOzbTFzuEn2fA9pC79AOqhE1XeHYI7b wCrEFLknjji+jYk2sxi8vytTkK74EjyDHrzEJsJCL8V0P+fh1WT3hTPRzhf1HxrqZ4Uz S8Nq06BsTBYs44oOsizMIZcWbmMgCGQHyiKEDGTWxHnWZHS7H01em0QZ0GpTR5pCrZ0q z6U7lABkWBJ8PFB20Utno7SEMKUkUgt8B/BdHwNPgB/3epE3eu5u2+okNjzcmL9c9a7s 8cDOQYHmenU1Ak67eoUe5z0FbwhyoHnWBrj599ou/f3nk0BQqYOMIZCeK7j8LuYMWI4I iuDg== 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 y124-v6si1247447pgy.228.2018.06.26.04.24.25; Tue, 26 Jun 2018 04:24:39 -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 S934219AbeFZLXx (ORCPT + 99 others); Tue, 26 Jun 2018 07:23:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:56450 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932544AbeFZLXv (ORCPT ); Tue, 26 Jun 2018 07:23:51 -0400 X-UUID: 9b3cccbf2e804714a49edc6ef6d7e1df-20180626 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1558188118; Tue, 26 Jun 2018 19:23:46 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 26 Jun 2018 19:23:43 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 26 Jun 2018 19:23:43 +0800 Message-ID: <1530012223.17380.2.camel@mtkswgap22> Subject: Re: [PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support From: Mars Cheng To: Marc Zyngier CC: Matthias Brugger , Rob Herring , CC Hwang , Loda Chou , Miles Chen , Jades Shih , Yingjoe Chen , "My Chuang" , , , , , , Date: Tue, 26 Jun 2018 19:23:43 +0800 In-Reply-To: <86h8lq6l1r.wl-marc.zyngier@arm.com> References: <1529978646-28976-1-git-send-email-mars.cheng@mediatek.com> <1529978646-28976-3-git-send-email-mars.cheng@mediatek.com> <86h8lq6l1r.wl-marc.zyngier@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit 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 Marc On Tue, 2018-06-26 at 08:53 +0100, Marc Zyngier wrote: > On Tue, 26 Jun 2018 03:04:06 +0100, > Mars Cheng wrote: > > > > This adds basic chip support for MT6765 SoC. > > > > Signed-off-by: Mars Cheng > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 1 + > > arch/arm64/boot/dts/mediatek/mt6765-evb.dts | 33 ++++++ > > arch/arm64/boot/dts/mediatek/mt6765.dtsi | 158 +++++++++++++++++++++++++++ > > 3 files changed, 192 insertions(+) > > create mode 100644 arch/arm64/boot/dts/mediatek/mt6765-evb.dts > > create mode 100644 arch/arm64/boot/dts/mediatek/mt6765.dtsi > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt6765.dtsi b/arch/arm64/boot/dts/mediatek/mt6765.dtsi > > new file mode 100644 > > index 0000000..ab34c0f > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt6765.dtsi > > [...] > > > + timer { > > + compatible = "arm,armv8-timer"; > > + interrupt-parent = <&gic>; > > + interrupts = > + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>, > > + > + (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>; > > GICv3 doesn't encode the PPI affinity in its interrupt specifiers (or > at least not this way). Please drop it. Got it, will fix it. > > > + }; > > + > > + soc { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + compatible = "simple-bus"; > > + ranges; > > + > > + sysirq: intpol-controller@10200a80 { > > + compatible = "mediatek,mt6765-sysirq", > > + "mediatek,mt6577-sysirq"; > > + interrupt-controller; > > + #interrupt-cells = <3>; > > + interrupt-parent = <&gic>; > > + reg = <0 0x10200a80 0 0x50>; > > + }; > > + > > + gic: interrupt-controller@0c000000 { > > + compatible = "arm,gic-v3"; > > + #interrupt-cells = <3>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + #redistributor-regions = <1>; > > A single redistributor is the default, and you don't need to specify > it in the DT. > sure, it's really unnecessary. will remove it. > > + interrupt-parent = <&gic>; > > + interrupt-controller; > > + reg = <0 0x0c000000 0 0x40000>, // distributor > > + <0 0x0c100000 0 0x200000>; // redistributor > > How about the GICv2 compatibility regions, which are provided by the > CPUs at a fixed offset from PERIPHBASE? See the Cortex-A53 TRM for > detail, and please add the missing regions. > Thanks. will add it soon. > > + interrupts = ; > > + }; > > Thanks, > > M. >