Received: by 10.223.185.116 with SMTP id b49csp2634839wrg; Mon, 5 Mar 2018 06:21:56 -0800 (PST) X-Google-Smtp-Source: AG47ELt8zrGOd26LfStn9IO+QS8vqSrDx4zRi3EzWE6amShNr7M1NuziInaozdjwus30fDI+W9/0 X-Received: by 10.99.163.80 with SMTP id v16mr12372504pgn.19.1520259715940; Mon, 05 Mar 2018 06:21:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520259715; cv=none; d=google.com; s=arc-20160816; b=ErnOf+q89I9N+wOav9opH3dz4aDHlibWYLdYiQ/BfaZpMWwyluPae/4gYGA2obTHff TesJmQfSySJgR96LOyVUp3U//v7OjU0sZ5AkW7ICfxMlG/6Tb8Eb4GFlYmpptuGyekyx ESobaNnVvaqNTYfaS6F4RUDQ5Jz2VckjiGyC/+XAG2mE+G7Nu40z4yHjlyC9sDkWYgvQ Dmymkx8FTTm2x1x2/9qUqDWNH1D/9XvC4bRDrjkXTdmB+CvuSTYw9Xd1nqPXSCp8793w P7VTON6ckNhuPXhlji6NSO66p5z4yaIV4GtxCzKlKn7S5g9GvVHblwRqRh9PgE195M4C VPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=g66Iou4rkTq5P8zMIRRwPHsO4hMOv/wsPOamirapkEc=; b=Gg8XLPNdLhtpyH4e5GVnRlwc62xUOxziXOi4129mJaNh2bTdFv4Bjipgng9XCTuRlB XpIan+fSUbaCjSYY9+oGyHZq2VyCey8DUv+v5iXD1CHMeDJGZt6QQGtRMRm1GVW+3xzk udNjBrzSlF4yAGcNVyJq0q8akgYx3TuAXDzRgf76Bd+MEuWXSBJD686b0Q2WYEqVFnFM I6tmEQoutb+mz/j+f4hJv8bXu2bSteoBBhln41CuQyT9KIVgKn1+39obnztJRBzyRpwO zrYdDQ07ojaVda33gp/efkZGBdQzUUxz0O8MKS3ZWf7y/spuuHiu5VvdFZWMyWq2ARpd /Z8w== 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 b9-v6si9612752pll.117.2018.03.05.06.21.41; Mon, 05 Mar 2018 06:21:55 -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 S1751982AbeCEOLX (ORCPT + 99 others); Mon, 5 Mar 2018 09:11:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:50714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbeCEOLS (ORCPT ); Mon, 5 Mar 2018 09:11:18 -0500 Received: from mail-yb0-f181.google.com (mail-yb0-f181.google.com [209.85.213.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9DF5221772; Mon, 5 Mar 2018 14:11:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DF5221772 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-yb0-f181.google.com with SMTP id w9-v6so2043774ybe.13; Mon, 05 Mar 2018 06:11:17 -0800 (PST) X-Gm-Message-State: AElRT7GJPYKNwQzuH8X0AvDX+qyi8t7v7nwxbXJuFjIi3JXxia1C7XXA MVAcWvEZRECR7m/GBKH1jG7gdcFXT6XyCoLUhA== X-Received: by 2002:a25:8609:: with SMTP id y9-v6mr8997367ybk.298.1520259076773; Mon, 05 Mar 2018 06:11:16 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:8007:0:0:0:0:0 with HTTP; Mon, 5 Mar 2018 06:10:56 -0800 (PST) In-Reply-To: <1520043343.8089.216.camel@mtkswgap22> References: <20180302154547.xq5nkmkdk3oenbta@rob-hp-laptop> <1520043343.8089.216.camel@mtkswgap22> From: Rob Herring Date: Mon, 5 Mar 2018 08:10:56 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 18/19] arm: dts: mt7623: add MT7623A reference boards To: Sean Wang Cc: Matthias Brugger , Mark Rutland , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 8:15 PM, Sean Wang wrote: > 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. These days, you only need earlyprintk for *really* early console like in the assembly boot entry code and before the DT is unflattened. For anything else, use earlycon instead because earlycon is a runtime option. > Thus, I consider to keep it there in special on such kinds of > development boards for debugging purpose. Then add this option when you are doing debug. But for what's "shipped" in mainline, you should not have this enabled. Rob