Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4825874imm; Tue, 26 Jun 2018 00:55:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIEH4zecC8Jm3y51r7W2zEJHWGvfV+ZNbdmZcKubP5HfKKdvdSKV238A0IT6PRwdwM7Ip2U X-Received: by 2002:a17:902:6115:: with SMTP id t21-v6mr524569plj.92.1529999716528; Tue, 26 Jun 2018 00:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529999716; cv=none; d=google.com; s=arc-20160816; b=QSlFAeFSdIQx/DPEyzYb5IoJ+bqi5frrtDF2m3AsQaQeD/IIIMqIAyNMUuML+ODd7/ fxR3R4vCcH65tzTLB/UkhyvWXstWleGDOP4Izs9Gyo7af5SATFFwAgniEENJbXzg30gi NYaRNV6z2/BAgwSE4xbi4Fws0T5glRvc5I2kR7I/bVgWWS1A8zEQMRGLCYbhCCpHfDWT 3jPCNNBw7b27Aj/xHJSZkHFatmm7k5DxbdAE+MSKZ7AOKzpu9xQW9zdsl6mMAUr1rGMY 7MWuljQdRgoEAdAm/9asPUylUoKpGR7kz+wO+nP8o6iEsg2rtiiAXowllwlwguusADJE uw8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=wTY0et32Mvt2QPqutnFKlWmZKYQAI955+mD5zM722Ec=; b=ofE7JAip/7w1hLKA5ZZrK+2cWKLA/oaXPhVWVQfB1AdEbAjArwCw5VSEhseqEvV6bU uJRIYOnqY3bOMU3wHzg0VxjkCnoaczYUyea0GKZX5inh82s3TUxHg9iVwwGXUk04owuy GaNibI3EorhPsFwyvX3M+UaTFddkK8wrbouHDcmyrl+WaaH5zWBWg4jq1PlRuVTHZgOY /3usLMBvv1KQpMKuiha47N/Lj/0x+zW4IXWNIyndNMJxApGWkMdAcs+6DwDm104b0APF LDwFL8IQxefO1sBx+bYnvap6w2xAX4zgh9msc31Wa7tZo5f31MtRpNwgCMsJINSsfRw/ +9Wg== 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 c17-v6si1013594pfi.102.2018.06.26.00.55.02; Tue, 26 Jun 2018 00:55:16 -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 S1752724AbeFZHxh (ORCPT + 99 others); Tue, 26 Jun 2018 03:53:37 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40542 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752098AbeFZHxg (ORCPT ); Tue, 26 Jun 2018 03:53:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B0AB07A9; Tue, 26 Jun 2018 00:53:35 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC3613F5C0; Tue, 26 Jun 2018 00:53:29 -0700 (PDT) Date: Tue, 26 Jun 2018 08:53:20 +0100 Message-ID: <86h8lq6l1r.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Mars Cheng Cc: Matthias Brugger , Rob Herring , CC Hwang , Loda Chou , Miles Chen , Jades Shih , Yingjoe Chen , My Chuang , , , , , , Subject: Re: [PATCH v2 2/2] arm64: dts: mediatek: add mt6765 support In-Reply-To: <1529978646-28976-3-git-send-email-mars.cheng@mediatek.com> References: <1529978646-28976-1-git-send-email-mars.cheng@mediatek.com> <1529978646-28976-3-git-send-email-mars.cheng@mediatek.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + }; > + > + 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. > + 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. > + interrupts = ; > + }; Thanks, M. -- Jazz is not dead, it just smell funny.