Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp81210imm; Tue, 12 Jun 2018 18:58:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJltBs2XqLj07HSM7LaKdieGrbeOD8mBAuRHqqiWtnuUa0rpeIhIHFAovZAwTkTWuj3FaSx X-Received: by 2002:a17:902:82cc:: with SMTP id u12-v6mr2969273plz.83.1528855112095; Tue, 12 Jun 2018 18:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528855112; cv=none; d=google.com; s=arc-20160816; b=Aqz9L6HRB+0YrY4ZCRyTVKKVf/yMENexvrVVO9C6PBsvygKQi/75QXonmcbSQrHU9T Ahdqx6eQZU7Uy12FJtk0NfL65texAlndObTRUyAilumA0AWcTOIxpeDGcv+urNws4Ci3 FaXJ+pilAWOjxyjj1kbxIVeIyO13h1naeWTZaEtCnLU9SP5JXUqqkn5httscPd4r8mmI NfSbVklZk8FFHqpfvgtJs7zCNqcSAw9zsLvlBzYFkIMCnJTg1Z//RoHb7DvBL1Ln4rUT yuPxAtdqaaIjgjAtiJQAZ8VOIIwm5dvnmHw01Tz9DC7W6cpkswwpFFlsAcL5yuQXIWwG c+Wg== 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=LlIBPu60ru7Kal9wCwC048T3Zf6BJWlpWyv1iIcWbsc=; b=l+MWA9w0l0OrEdnAT5D72f8y8b7dFjqgvAh60KsJEho/xHvUuObaj/GpjQXm1xGOxm QoKtppppXM0xMeGxeCe+ePi7m7GSQ+tFSbHFaXLq0gWo78gQQLIWavW5BjMKy21i2pm4 BN7quMBu4DmaZP66kXY4g10waKiRTnGdoyt02ubKRkLgkDA/IjXdakGcTaNKHBUB9bpJ DL2rQK4L142iVWExkmhOrbujT0MLUxzEhSCjb8FFCHiLNh9yq3fe7fT/71A0+jW1U3Oh Te+7d7DFjpFR6RCj+UpS7tTJIlqUAFX6t4oSN6kUSRjI43vvw9dHPnJzrBLal2c9gLZf U9hQ== 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 1-v6si1497744plw.519.2018.06.12.18.57.46; Tue, 12 Jun 2018 18:58:32 -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 S934327AbeFMB4v (ORCPT + 99 others); Tue, 12 Jun 2018 21:56:51 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36816 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S933577AbeFMB4u (ORCPT ); Tue, 12 Jun 2018 21:56:50 -0400 X-UUID: 676123d323f742db86d7da1f517cc904-20180613 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1704438647; Wed, 13 Jun 2018 09:56:46 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 13 Jun 2018 09:56:44 +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; Wed, 13 Jun 2018 09:56:38 +0800 Message-ID: <1528854998.5296.7.camel@mtkswgap22> Subject: Re: [PATCH 2/2] arm64: dts: mediatek: add mt6765 support From: Mars Cheng To: Rob Herring CC: Matthias Brugger , CC Hwang , Loda Chou , Miles Chen , Jades Shih , "Yingjoe Chen" , My Chuang , "linux-kernel@vger.kernel.org" , , , Date: Wed, 13 Jun 2018 09:56:38 +0800 In-Reply-To: References: <1528843243-29782-1-git-send-email-mars.cheng@mediatek.com> <1528843243-29782-3-git-send-email-mars.cheng@mediatek.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 Rob > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt6765-evb.dts > > @@ -0,0 +1,39 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2018 MediaTek Inc. > > + * Author: Mars.C > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License version 2 as > > + * published by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > With the SPDX tag, you can drop the license text. Got it, will fix it. > > > + */ > > + > > +/dts-v1/; > > +#include "mt6765.dtsi" > > + > > +/ { > > + model = "MediaTek MT6765 EVB"; > > + compatible = "mediatek,mt6765-evb", "mediatek,mt6765"; > > + > > + aliases { > > + serial0 = &uart0; > > + }; > > + > > + memory@40000000 { > > + device_type = "memory"; > > + reg = <0 0x40000000 0 0x1e800000>; > > + }; > > + > > + chosen { > > + stdout-path = "serial0:921600n8"; > > + }; > > +}; > > + > > +&uart0 { > > + status = "okay"; > > +}; > > diff --git a/arch/arm64/boot/dts/mediatek/mt6765.dtsi b/arch/arm64/boot/dts/mediatek/mt6765.dtsi > > new file mode 100644 > > index 0000000..7222a5e > > --- /dev/null > > +++ b/arch/arm64/boot/dts/mediatek/mt6765.dtsi > > @@ -0,0 +1,148 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2018 MediaTek Inc. > > + * Author: Mars.C > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License version 2 as > > + * published by the Free Software Foundation. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > ditto Got it. > > > + */ > > + > > +#include > > +#include > > + > > +/ { > > + compatible = "mediatek,mt6765"; > > + interrupt-parent = <&sysirq>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + psci { > > + compatible = "arm,psci-0.2"; > > + method = "smc"; > > + }; > > + > > + cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cpu0: cpu@0 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x000>; > > + }; > > + > > + cpu1: cpu@1 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x001>; > > + }; > > + > > + cpu2: cpu@2 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x002>; > > + }; > > + > > + cpu3: cpu@3 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x003>; > > + }; > > + > > + cpu4: cpu@100 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x100>; > > + }; > > + > > + cpu5: cpu@101 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x101>; > > + }; > > + > > + cpu6: cpu@102 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x102>; > > + }; > > + > > + cpu7: cpu@103 { > > + device_type = "cpu"; > > + compatible = "arm,cortex-a53"; > > + enable-method = "psci"; > > + reg = <0x103>; > > + }; > > + }; > > + > > + uart_clk: dummy26m { > > + compatible = "fixed-clock"; > > + clock-frequency = <26000000>; > > + #clock-cells = <0>; > > + }; > > + > > + 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)>; > > + }; > > + > > + sysirq: intpol-controller@10200a80 { > > This and others with an address should go under a simple-bus node. > > Node name should be 'interrupt-controller@...' Got it, will fix them. > > > + compatible = "mediatek,mt6765-sysirq", > > + "mediatek,mt6577-sysirq"; > > + interrupt-controller; > > + #interrupt-cells = <3>; > > + interrupt-parent = <&gic>; > > + reg = <0 0x10200a80 0 0x50>; > > + }; > > + > > + gic: interrupt-controller@0c000000 { > > Drop the leading 0. Got it, will fix it. > > > + compatible = "arm,gic-v3"; > > + #interrupt-cells = <3>; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + #redistributor-regions = <1>; > > + interrupt-parent = <&gic>; > > + interrupt-controller; > > + reg = <0 0x0c000000 0 0x40000>, // distributor > > + <0 0x0c100000 0 0x200000>; // redistributor > > + interrupts = ; > > + }; > > + > > + uart0: serial@11002000 { > > + compatible = "mediatek,mt6765-uart", > > + "mediatek,mt6577-uart"; > > + reg = <0 0x11002000 0 0x400>; > > + interrupts = ; > > + clocks = <&uart_clk>; > > + status = "disabled"; > > + }; > > + > > + uart1: serial@11003000 { > > + compatible = "mediatek,mt6765-uart", > > + "mediatek,mt6577-uart"; > > + reg = <0 0x11003000 0 0x400>; > > + interrupts = ; > > + clocks = <&uart_clk>; > > + status = "disabled"; > > + }; > > +}; > > -- > > 1.7.9.5 > >