Received: by 10.223.185.116 with SMTP id b49csp312366wrg; Fri, 2 Mar 2018 20:02:10 -0800 (PST) X-Google-Smtp-Source: AG47ELvQDrxGI07IaidOKF3aJJKqG0Q7brKS19jB+GLhslBzWuYQQfJJb08lGXAwa9Bppr4mgVpX X-Received: by 10.101.67.2 with SMTP id j2mr6261862pgq.147.1520049730530; Fri, 02 Mar 2018 20:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520049730; cv=none; d=google.com; s=arc-20160816; b=mw3OUcmN28Bykj9H8SFw6HBJkqgeo8LHM1j/TxI/8/9u7iKWxAL2wm/r711O3rk71E M28w1Jkn9JnljASpBwGgz0qItjpYvXRST5//Xr58EzAv9sGjfkv10CmdCCE2j+dhMJk3 IO9ow3E5mXP4pkzKD9+9lcaGT4HRu/St5cC1nj7bcaZHjEufN64U0IcXmk7AoZ2LWw6P 2p6Zk2LhzGcwIqoemDxFMbYvgCf5ejuCl6ICdPXqkyvcbFoncduZ2E+MkzMS+Y1IGJx+ CVe0ymkjkZxwH15ioD880iX+/jwKP/KmbPHfkDnxmn6QJZIiIWDbrD8C/dE5/q5oXsaA aKUg== 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=yqC7ACekDbGNXBvyu+WCQFWm2OHto9MhHDDd0MGiavM=; b=I+xwfaXWidAHzoPDBt87efQAw0BvRM83p+242tt7jAUE55YAJIrvJ7GFtZBke5exMe 3SlkxVxNdDDhrbuhkTOHsrC4u15g/zUSDJ6jbHyNk5EqwtFWjqQIVnmdiWzsw9heZlna Yr48hyll4GcOoTKhMTEI0CFG/meQKUP8ImuM1hnOS3cPXyniwyhXG6Cswv0TqDTyYUMj qbJQAq2UbAe+2ojnWwd2r1WDFD/3d1VFznXf2B+qhPd2b7HeZRk72MqgT/XTYGJyK1oi FFVr7zI5OBf1TopYtVQB/O6iUs/hZ8nAjdMHW3BdH3+SX5VIx7Lvcjmq8LEUHOM8YAS5 l3ew== 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 e13-v6si4633782pln.204.2018.03.02.20.01.55; Fri, 02 Mar 2018 20:02:10 -0800 (PST) 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 S965198AbeCCCPx (ORCPT + 99 others); Fri, 2 Mar 2018 21:15:53 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:6356 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S965153AbeCCCPw (ORCPT ); Fri, 2 Mar 2018 21:15:52 -0500 X-UUID: eaf80cb1fd45466290a0af5ac39a45f4-20180303 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 11045084; Sat, 03 Mar 2018 10:15:46 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sat, 3 Mar 2018 10:15: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; Sat, 3 Mar 2018 10:15:43 +0800 Message-ID: <1520043343.8089.216.camel@mtkswgap22> Subject: Re: [PATCH v1 18/19] arm: dts: mt7623: add MT7623A reference boards From: Sean Wang To: Rob Herring CC: , , , , , Date: Sat, 3 Mar 2018 10:15:43 +0800 In-Reply-To: <20180302154547.xq5nkmkdk3oenbta@rob-hp-laptop> References: <20180302154547.xq5nkmkdk3oenbta@rob-hp-laptop> 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 On Fri, 2018-03-02 at 09:45 -0600, Rob Herring wrote: > On Fri, Feb 23, 2018 at 06:16:38PM +0800, sean.wang@mediatek.com wrote: > > From: Sean Wang > > > > Add mt7623a-rfb.dtsi where most nodes can be inherited from > > mt7623n-rfb.dtsi and keep these distinctions from MT7623A boards in > > mt7623a-rfb.dtsi for most definition can be reused among MT7623A board > > variants. > > > > MT7623A has its specific definition of power domain and thus we need > > to change related devices such as audio, ethernet, crypto, high-speed > > DMA, NAND, and USB controller to the power domain they specifically > > belong to. In addition, MT7530 exists as built-in module inside MT7623A > > SoC and I2C2 and UART[0-1] get being removed and UART2 have distinct pin > > usage. Those all differences can be totally seen in mt7623a-rfb.dtsi. > > > > Signed-off-by: Sean Wang > > --- > > arch/arm/boot/dts/Makefile | 2 + > > arch/arm/boot/dts/mt7623a-rfb-emmc.dts | 22 +++++++++ > > arch/arm/boot/dts/mt7623a-rfb-nand.dts | 26 +++++++++++ > > arch/arm/boot/dts/mt7623a-rfb.dtsi | 84 ++++++++++++++++++++++++++++++++++ > > arch/arm/boot/dts/mt7623n-rfb.dtsi | 15 ++++++ > > 5 files changed, 149 insertions(+) > > create mode 100644 arch/arm/boot/dts/mt7623a-rfb-emmc.dts > > create mode 100644 arch/arm/boot/dts/mt7623a-rfb-nand.dts > > create mode 100644 arch/arm/boot/dts/mt7623a-rfb.dtsi > > > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > > index 5af6fce..818817c 100644 > > --- a/arch/arm/boot/dts/Makefile > > +++ b/arch/arm/boot/dts/Makefile > > @@ -1122,6 +1122,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ > > mt6580-evbp1.dtb \ > > mt6589-aquaris5.dtb \ > > mt6592-evb.dtb \ > > + mt7623a-rfb-emmc.dtb \ > > + mt7623a-rfb-nand.dtb \ > > mt7623n-rfb-emmc.dtb \ > > mt7623n-rfb-nand.dtb \ > > mt7623n-bananapi-bpi-r2.dtb \ > > diff --git a/arch/arm/boot/dts/mt7623a-rfb-emmc.dts b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts > > new file mode 100644 > > index 0000000..ef6398e > > --- /dev/null > > +++ b/arch/arm/boot/dts/mt7623a-rfb-emmc.dts > > @@ -0,0 +1,22 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2017-2018 MediaTek Inc. > > + * Author: Sean Wang > > + * > > + */ > > + > > +/dts-v1/; > > +#include "mt7623a-rfb.dtsi" > > + > > +/ { > > + model = "MediaTek MT7623A with eMMC reference board"; > > + compatible = "mediatek,mt7623a-rfb-emmc", "mediatek,mt7623"; > > + > > + chosen { > > + bootargs = "console=ttyS0,115200n8 earlyprintk"; > > Use stdout-path instead. earlyprintk option only works for a kernel > built with a debug uart at a fixed address, so drop it. > thanks, I will try and have stdout-path instead. But for earlyprintk, our kernel can support and be built with a debug uart at a fixed address and it is greatly useful to know what's going on when a system hang happens on certain device's initialization prior to uart initialization such as PCI device. Thus, I consider to keep it there in special on such kinds of development boards for debugging purpose. > > + }; > > +}; > > + > > +&mmc0 { > > + status = "okay"; > > +}; > > diff --git a/arch/arm/boot/dts/mt7623a-rfb-nand.dts b/arch/arm/boot/dts/mt7623a-rfb-nand.dts > > new file mode 100644 > > index 0000000..592d5d7 > > --- /dev/null > > +++ b/arch/arm/boot/dts/mt7623a-rfb-nand.dts > > @@ -0,0 +1,26 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2017-2018 MediaTek Inc. > > + * Author: Sean Wang > > + * > > + */ > > + > > +/dts-v1/; > > +#include "mt7623a-rfb.dtsi" > > + > > +/ { > > + model = "MediaTek MT7623A with NAND reference board"; > > + compatible = "mediatek,mt7623a-rfb-nand", "mediatek,mt7623"; > > + > > + chosen { > > + bootargs = "console=ttyS0,115200n8 earlyprintk"; > > ditto. > > > + }; > > +}; > > + > > +&bch { > > + status = "okay"; > > +}; > > + > > +&nandc { > > + status = "okay"; > > +}; > > diff --git a/arch/arm/boot/dts/mt7623a-rfb.dtsi b/arch/arm/boot/dts/mt7623a-rfb.dtsi > > new file mode 100644 > > index 0000000..3a15c46 > > --- /dev/null > > +++ b/arch/arm/boot/dts/mt7623a-rfb.dtsi > > @@ -0,0 +1,84 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2017-2018 MediaTek Inc. > > + * Author: Sean Wang > > + * > > + */ > > + > > +/dts-v1/; > > +#include > > +#include "mt7623n-rfb.dtsi" > > + > > +/ { > > + memory { > > Unit-address? If unit-address is being included, it seem there is dtc problem two , memory nodes are generated, one with invalid size 0 would cause boot fails as [1] I addressed. [1] http://lists.infradead.org/pipermail/linux-mediatek/2018-March/012249.html > > + device_type = "memory"; > > + reg = <0 0x80000000 0 0x20000000>; > > + }; > > +}; > > + > > +&afe { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; > > +}; > > + > > +&cir { > > + status = "disabled"; > > +}; > > + > > +&crypto { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; > > +}; > > + > > +ð { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; > > +}; > > + > > +&hsdma { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>; > > +}; > > + > > +&i2c2 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&i2c2_pins_b>; > > +}; > > + > > +&mt7530 { > > + mediatek,mcm; > > + resets = <ðsys MT2701_ETHSYS_MCM_RST>; > > + reset-names = "mcm"; > > +}; > > + > > +&nandc { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; > > +}; > > + > > +&pcie { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; > > +}; > > + > > +&scpsys { > > + compatible = "mediatek,mt7623a-scpsys", > > + "syscon"; > > + clocks = <&topckgen CLK_TOP_ETHIF_SEL>; > > + clock-names = "ethif"; > > +}; > > + > > +&uart0 { > > + status = "disabled"; > > +}; > > + > > +&uart1 { > > + status = "disabled"; > > +}; > > + > > +&uart2 { > > + pinctrl-names = "default"; > > + pinctrl-0 = <&uart2_pins_b>; > > +}; > > + > > +&usb1 { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; > > +}; > > + > > +&usb2 { > > + power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; > > +}; > > diff --git a/arch/arm/boot/dts/mt7623n-rfb.dtsi b/arch/arm/boot/dts/mt7623n-rfb.dtsi > > index 0237476..07ed15d 100644 > > --- a/arch/arm/boot/dts/mt7623n-rfb.dtsi > > +++ b/arch/arm/boot/dts/mt7623n-rfb.dtsi > > @@ -380,6 +380,14 @@ > > }; > > }; > > > > + i2c2_pins_b: i2c2-alt { > > + pin-i2c2 { > > + pinmux = , > > + ; > > + bias-disable; > > + }; > > + }; > > + > > i2s0_pins_a: i2s0-default { > > pin-i2s0 { > > pinmux = , > > @@ -629,6 +637,13 @@ > > ; > > }; > > }; > > + > > + uart2_pins_b: uart2-alt { > > + pins-dat { > > + pinmux = , > > + ; > > + }; > > + }; > > }; > > > > &pwm { > > -- > > 2.7.4 > >