Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp369483imm; Mon, 9 Jul 2018 03:23:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDcDkQrO6vC7YoX1wBjxZzXx8U0ga+P/FpV12BKmtrfO128FqJEXVvHSbkgeD8JTX8cW6a X-Received: by 2002:a65:5bc4:: with SMTP id o4-v6mr12222067pgr.448.1531131811475; Mon, 09 Jul 2018 03:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531131811; cv=none; d=google.com; s=arc-20160816; b=JvcvycmHxUBw+Ci0fORQbdpynhF1NwSMxv4nvAQ+YgfS3kGYVUKl/UKHkI8mKWFjWg ODOxU2s5kl8c5MxXiqQ8GOBHceRjwNpd8pnY+R8/BBPSapdK3GYwYtjmjLrNH9lElP/u gcck5dl/sldDwSoS/X8rohzjrbPFRNG6lmm9gvY7wYtD7GWqo4/L+oduEdbCcRY7FVzV yoTMimsxuMfPWkslO6y7Ii2bCN6KlB4uj4SQYa89jLMu6zniqXXUxKcFbO1G6OrxYERo tbdYWr0xHoDvIcnEbhpeCiPFqBNA0sK/wJn6JFFPfWE4o39PoEsuzE5YXN1OVJJGb842 E7jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=BaSywUF+HuTqs1IkCmS8d2zZuv/+65FZ5jy7kOf4fyE=; b=Bk65ajUMvZKdSxXy6ajTBPjydPMd52BG9GU0cuuQWuczhpiRe8J/THoEKU/H6kailV IbQHeNpx/ZBHH+Sr1jR/cJcA9yHrkIshuAXuHz8O1PNeY32UptGnWu0JqbuL1LFcH3dD iCCNVgI+FRxWBTtr9dCiWib6enDeEJDGmOhg9JXyoZ+RQ1PTJqUvICLgiVEl0d8G7nuq K+wQpLnaa1OXXZ3Nor8n1iERk88yMmuiXh6k+yVRkkMR/oZBrJOYl3V8gQxn14Fr8qL/ mVQW0TJ5B4eADGvX9ITyfTwo9CKWXmkbgbXeAy5Aj+YzhyrfAgpwFpha69DLII+i+tJ8 AF1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tAA6QqpR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q65-v6si13869626pga.283.2018.07.09.03.23.16; Mon, 09 Jul 2018 03:23:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tAA6QqpR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbeGIKVC (ORCPT + 99 others); Mon, 9 Jul 2018 06:21:02 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38462 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754425AbeGIKU5 (ORCPT ); Mon, 9 Jul 2018 06:20:57 -0400 Received: by mail-ed1-f65.google.com with SMTP id a5-v6so13501913edt.5; Mon, 09 Jul 2018 03:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BaSywUF+HuTqs1IkCmS8d2zZuv/+65FZ5jy7kOf4fyE=; b=tAA6QqpRxWxCrBT1GvfmRt+8bHuk72GpOJ2P5zvzpLK3CH7BxW5yKCkA72RnEkdn+2 rmNGCe423NQWbWjhRhdtUhab+lvTWBf+6vxT5FWicinvlsXk53bj8KRNQMxmsI6KTftj 79zYeofifqNO29wgJikEVK9D/LIoWyaHOQhnL1KhIxlAFfpbW6Tfs3EmH46Nnii5j0mI iZA2Ija4/7gKs967YNwJPT7k2b96TU8QwkBOYd31kyPkinkjZhtWC7ERB0+W0jccQ3+L clZ7i2rjsiZy5ApW06pgco3e9F7N3XFnBvRXRJq3NmzfrJG9zUL7RtPpa/MSW1r4N5dt rV/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=BaSywUF+HuTqs1IkCmS8d2zZuv/+65FZ5jy7kOf4fyE=; b=l6Y8euk72zp9UYpTojSUoazRLXGCD5yMLuK7BCc04ywevRDb8mkVTxe3bRts+kmSvo dARnl8/JTNN7uTI3abG9bFM2hJ5lZCGKrOGEHzP2EpuDjA8aL6f5dp/MIcvCsksaonhJ Ec9y3HG8fEQUplmMnh5sQE6ggcP0Zw5UTQOCeeO6ljB8+AltQ2hjXWc2ylNd4nQQ4eeX 8MPPKDrrIu//txnFIU1Qdmq91/gqahtFqQyQFWm7QYnGFpvAgDnB+yUSn9GH3YSh1MFF 7NzlRjQZjFF5+vJC6sP8og0dU8Dm/gkftLYrHSjt2gHFCcrUul+tfcIpQ7FTHweI5zfF wlFw== X-Gm-Message-State: APt69E3xHSAHuALHxfX0MmGB8mUVV/HQeqUGD22c4Mg0/Tt5MCw8nRGm jO8QQhgTGBLEFzuAFSf41wQ= X-Received: by 2002:a50:b56e:: with SMTP id z43-v6mr22098506edd.223.1531131655977; Mon, 09 Jul 2018 03:20:55 -0700 (PDT) Received: from ziggy.stardust ([37.223.136.20]) by smtp.gmail.com with ESMTPSA id p23-v6sm6370442edm.31.2018.07.09.03.20.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 03:20:54 -0700 (PDT) Subject: Re: [PATCH v4 1/1] arm64: dts: mediatek: add mt6765 support To: Mars Cheng , Rob Herring , Marc Zyngier Cc: CC Hwang , Loda Chou , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, wsd_upstream@mediatek.com, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <1531116302-29921-1-git-send-email-mars.cheng@mediatek.com> <1531116302-29921-2-git-send-email-mars.cheng@mediatek.com> From: Matthias Brugger Openpgp: preference=signencrypt Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlDVtS1QEXyvZbZky7ur9rHkZvP ZqlUsLJ2nOqsmahMTIQ8Mgx9SLEShWqD4kOF4zNfPJsgEM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C5H62G059cCPAXKgsFpNMKmBAWweBkVJAisoQeX 50OP+/11ArV0cv+fOTfJj0/KwFXJaaYh3LUQNILLBNxkSrhCLl8dUg53IbHx4NfIAgqxLWGf XM8DY1aFdU79pac005PuhxCWkKTJz3gCmznnoat4GCnL5gy/m0Qk45l4PFqwWXVLo9AQg2Kp 3mlIFZ6fsEKIAN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHc UXI+r2JwH1CJjrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: <7fb13f45-4e33-6efc-467b-c7256a40cbc9@gmail.com> Date: Mon, 9 Jul 2018 12:20:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1531116302-29921-2-git-send-email-mars.cheng@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/18 08:05, 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 | 156 +++++++++++++++++++++++++++ > 3 files changed, 190 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/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > index ac17f60..7506b0d 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > +++ b/arch/arm64/boot/dts/mediatek/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_MEDIATEK) += mt2712-evb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt6755-evb.dtb > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt6765-evb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-evb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb As you can see, we have a long list of SoCs which are poorly supported. I'm not very keen to just add another SoC which supports booting into a ramdisk using the serial console. Do you have a roadmap adding mainline support for this SoC? Regards, Matthias > diff --git a/arch/arm64/boot/dts/mediatek/mt6765-evb.dts b/arch/arm64/boot/dts/mediatek/mt6765-evb.dts > new file mode 100644 > index 0000000..36dddff2 > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt6765-evb.dts > @@ -0,0 +1,33 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * dts file for Mediatek MT6765 > + * > + * (C) Copyright 2018. Mediatek, Inc. > + * > + * Mars Cheng > + */ > + > +/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..cc365b1 > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt6765.dtsi > @@ -0,0 +1,156 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * dts file for Mediatek MT6765 > + * > + * (C) Copyright 2018. Mediatek, Inc. > + * > + * Mars Cheng > + */ > + > +#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>; > + > + cpu@0 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x000>; > + }; > + > + cpu@1 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x001>; > + }; > + > + cpu@2 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x002>; > + }; > + > + cpu@3 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x003>; > + }; > + > + cpu@100 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x100>; > + }; > + > + cpu@101 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x101>; > + }; > + > + cpu@102 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x102>; > + }; > + > + cpu@103 { > + device_type = "cpu"; > + compatible = "arm,cortex-a53"; > + enable-method = "psci"; > + reg = <0x103>; > + }; > + }; > + > + baud_clk: dummy26m { > + compatible = "fixed-clock"; > + clock-frequency = <26000000>; > + #clock-cells = <0>; > + }; > + > + sys_clk: dummyclk { > + compatible = "fixed-clock"; > + clock-frequency = <26000000>; > + #clock-cells = <0>; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupt-parent = <&gic>; > + interrupts = , > + , > + , > + ; > + }; > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + compatible = "simple-bus"; > + ranges; > + > + gic: interrupt-controller@c000000 { > + compatible = "arm,gic-v3"; > + #interrupt-cells = <3>; > + #address-cells = <2>; > + #size-cells = <2>; > + interrupt-parent = <&gic>; > + interrupt-controller; > + reg = <0 0x0c000000 0 0x40000>, /* GICD */ > + <0 0x0c100000 0 0x200000>, /* GICR */ > + <0 0x0c400000 0 0x2000>, /* GICC */ > + <0 0x0c410000 0 0x2000>, /* GICH */ > + <0 0x0c420000 0 0x20000>; /* GICV */ > + interrupts = ; > + }; > + > + sysirq: interrupt-controller@10200a80 { > + compatible = "mediatek,mt6765-sysirq", > + "mediatek,mt6577-sysirq"; > + interrupt-controller; > + #interrupt-cells = <3>; > + interrupt-parent = <&gic>; > + reg = <0 0x10200a80 0 0x50>; > + }; > + > + uart0: serial@11002000 { > + compatible = "mediatek,mt6765-uart", > + "mediatek,mt6577-uart"; > + reg = <0 0x11002000 0 0x400>; > + interrupts = ; > + clocks = <&baud_clk>, <&sys_clk>; > + clock-names = "baud", "bus"; > + status = "disabled"; > + }; > + > + uart1: serial@11003000 { > + compatible = "mediatek,mt6765-uart", > + "mediatek,mt6577-uart"; > + reg = <0 0x11003000 0 0x400>; > + interrupts = ; > + clocks = <&baud_clk>, <&sys_clk>; > + clock-names = "baud", "bus"; > + status = "disabled"; > + }; > + }; /* end of soc */ > +}; >