Received: by 10.223.185.116 with SMTP id b49csp8996569wrg; Fri, 2 Mar 2018 11:27:18 -0800 (PST) X-Google-Smtp-Source: AG47ELtSsdjOZRuIEUbf6oU9lFTk8Y7/yUcUj3j95Lf7f5mrqvgvwKGD5WginlA5nCaPGrEXk+UZ X-Received: by 10.98.248.7 with SMTP id d7mr6711453pfh.117.1520018838532; Fri, 02 Mar 2018 11:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520018838; cv=none; d=google.com; s=arc-20160816; b=cImvKnhFS1PpdAM5yriiW/YNky1yv4ZepbxKyGc4SA8k4Hr3e69AU2mlNMT7kdykch 3URxvhf39lEspEHoVhoouTsyIoOxAm8dj/6i19ac+pSRXJxo2/0PDWfQ9s1moK2sDVaT AI6h2VYcLph6Cu+qffTlpCGJz1yf/B8Nv8iCy/vc/ZXV9aZDxjTcjBAQv8nZS3SWHVEu iJgC9/uRJE/yrV9Js78XBKH1M6ETx66fiARjHsPi2rBXD/KPNR97JgBTJ0OEShq+0dxi Yrxh9vzJUHV4HrUD9ACEd5lxgBps3kflE2in1DTyIlCDh7Iq/I4V/KSSNj8Di2T9iMjl /PKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=P1wVNods4hVZRLgfNHb8vP1eqdw3X/RiIxGuY8FoJhc=; b=yc2zUHwnlEoI5/ux1TuCDrTGYF4Gxdq0oNYbGNhigbMWYTnvGweRYTwBnT6dOZcmXW zXZKaMmhjdGrn66efeP6mZOSsAb2P1cJ8TGsjcsG4ZsavwFEzezYI6ISvN6MkxgkveLX +WCInnn5Z7hAWLh7vZ9Ursiyu5rzPxaFJja0APuFaMAmCCCoBHIsHlFTVZ3FRWc7cbsQ RC84WYWif2F7EIosLjuDhv9JFOVXaaWQD5Fi7CntlrBbB3+pQ88/3ozPif9TyV2ZvttE hHgZ7pYrnCOV0D1kCV154FqAfRpUCrTIoFRBN54x6vexV9RZ4f3HjF1z2BE66weqDz98 PDGA== 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 k24si5358591pfh.151.2018.03.02.11.27.03; Fri, 02 Mar 2018 11:27:18 -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 S1946312AbeCBPpz (ORCPT + 99 others); Fri, 2 Mar 2018 10:45:55 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:42661 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946256AbeCBPpt (ORCPT ); Fri, 2 Mar 2018 10:45:49 -0500 Received: by mail-ot0-f193.google.com with SMTP id l5so9062603otf.9; Fri, 02 Mar 2018 07:45:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P1wVNods4hVZRLgfNHb8vP1eqdw3X/RiIxGuY8FoJhc=; b=f7YY4w3ZSJC4CdWgT/TAIsLSYVh576pnfu1Uj0ONcHK+hfBquvlItq8D051Muo3P1p CMbhxvOl7bljGWYBRPjNCwvU1DXlqnSJlZObj1V2PYsvDeurChg+tLLgZMZnK7o4AC9M HScCtyMZxYQdkq/kpd85EixuYa9H2qf6RbPKNFgT/BJJkeVMPlXWp8hben3YjtErIPDG 8MTkNmNAH1pbEDqdpkSae31AI76aET6Z/JAtrWk+tk4ro+65g9eCT1YaEA3j385+e7Dc 68jaREBr+oQQImDbqD8QK4nvKl5sKJ+6legV+h1ZpD+2cG9/+icqRS9tA+GSSlsxQTNr TC6A== X-Gm-Message-State: AElRT7EpAPygx8bQFEW1MXVAHL5Bu6cM7ofzJ1/5WV6Kbpkey7bD0ZoF JSrMnSl+P/JIoB03Tn4ITA== X-Received: by 10.157.36.7 with SMTP id p7mr4582362ota.146.1520005548573; Fri, 02 Mar 2018 07:45:48 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id j196sm3147985oih.3.2018.03.02.07.45.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 07:45:48 -0800 (PST) Date: Fri, 2 Mar 2018 09:45:47 -0600 From: Rob Herring To: sean.wang@mediatek.com Cc: matthias.bgg@gmail.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 18/19] arm: dts: mt7623: add MT7623A reference boards Message-ID: <20180302154547.xq5nkmkdk3oenbta@rob-hp-laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + }; > +}; > + > +&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? > + 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 >