Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp913080pxk; Thu, 10 Sep 2020 01:48:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMMtPCgxyB6In/1p/46csIq3rB3hDtmXtr9FLQyjT+aBTZsY6YdRvn8uIuAiDZ92yN8rt/ X-Received: by 2002:a50:f197:: with SMTP id x23mr8486599edl.367.1599727712224; Thu, 10 Sep 2020 01:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599727712; cv=none; d=google.com; s=arc-20160816; b=DXxcVnA0FesC7wlo0whyquI+JE6qXXeCER50FjVfxaZEJFr69fAp3vfhF7QrYdgjcv mCctcpK2YmghBm3S1ATr3zvoW0l+ERW+LT1ymG2Yt7k9CtfTijwdu0XH3a9SXMxwwb6b hTfNP+qJK50yIOdLvL/OP/GBwPEzqzI3HPpFi6oiWQYi3xLvowgrzUADae0XBWx8+HEu izECE90atTMC4A/Xsu9lIMQWyUvVTPGkDchvVxGlAB/ceaAYF/13i6oc0yxYzQfsigny 64BycAVz2KkDNaKlsn5OkS0n1znbNGCjVAV8Zw13SIRCL30TXNA6IGCh+KWt3ywTSsLV dFBQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Vc9DogxoLgngfubJ0u33iUTXXgPBqlfWnxisJuHVigk=; b=yAS0h61RuKF2OsIW39NzPSgIpaVAgfcHFmZ0FLbKVm8DgIu1iqzLWya5UbfEbudM6g k8LeRIOlwFJFpPeDfHu2YrugMGOQhSZLPI68EsQLDYymjcYgB2PkaNVyXbV95FSfLM1C bTuGM8NPcIqPA9wymdAoe7rD1qoY8YnCWwYKCn8oeCJh1Ri3BsUFVo0Ev1cPPTY1lNeG OQkCdjwfDFPdME/UYhzdWRSV4NpUt2Y44xeAEimmY11O3VVd6NDfGbtibXmiNY2XLT0N EA76Kb/lEatFtwDBP+lIvorNR+G7f6QjqWJvaxPfFAmBoZi0eA5yhrEC3jXxG6O9iplP tZhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M7wdL6CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si3189064ejq.407.2020.09.10.01.48.09; Thu, 10 Sep 2020 01:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M7wdL6CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730315AbgIJIqg (ORCPT + 99 others); Thu, 10 Sep 2020 04:46:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730224AbgIJIpI (ORCPT ); Thu, 10 Sep 2020 04:45:08 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82F70C0613ED for ; Thu, 10 Sep 2020 01:45:06 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id z25so6166954iol.10 for ; Thu, 10 Sep 2020 01:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vc9DogxoLgngfubJ0u33iUTXXgPBqlfWnxisJuHVigk=; b=M7wdL6CNysKj2I2uFNxFP98crOR6oki0Kv9eRzGJ/PUHBswh1K2Yef8UbV955S99ID CtqGAsbh6F1xTWPhc6/mzKjL8BLWEH41oqA7SEHhpbQr9ftZ+z7DZWEIjmkFp1Ft+YVc k8p/nOP2BaHgcfiFrb0kKX0UeiprgHQqBSDwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vc9DogxoLgngfubJ0u33iUTXXgPBqlfWnxisJuHVigk=; b=qly5C/nTi3oJ/1cscWUtRqwhGRsCYmCF525x2+EEcWGWUzTxVO+QmYfLs+gyhr95xB mR44AgpHEAZAQ385wPMgpBWWx7pu5UT3nDEHhAHgcNxfOzIM9tmd0n8Hd/dyV7BROAgW 2QvWxB+/nRuFa/DOZ4z3pDT2p9HBSniCPbFjB8H3el4VRv0tdSJazrfEdMRUTKsH5Q9u YPswdxzBoXnH5ti0pLHXv6CqhkmL5FwY0fcMQ1mFP5wCogz+l9YIUanKb9Zv/uUWtJWL DafsusDmF4hhNtWlhTrIm8CGZhX2Ivl0rPH+JKr9cCoI9nSMVjvxeQOo4QSq5zVYK3q/ 3Dsg== X-Gm-Message-State: AOAM532iHe5suD++9ompoKzR+QNjbeeBSH9pxp4P7ODAmhWP5vqK9LA6 nAKmjB30OHZECOz+M6C1txGxZ49saPonsijiyV6GQg== X-Received: by 2002:a5e:930d:: with SMTP id k13mr6689385iom.40.1599727505770; Thu, 10 Sep 2020 01:45:05 -0700 (PDT) MIME-Version: 1.0 References: <20200910054635.3337487-1-hsinyi@chromium.org> <944325c1-818e-934c-907d-7ff0493446b4@collabora.com> In-Reply-To: <944325c1-818e-934c-907d-7ff0493446b4@collabora.com> From: Hsin-Yi Wang Date: Thu, 10 Sep 2020 16:44:39 +0800 Message-ID: Subject: Re: [PATCH 1/2] arm64: dts: mt8173: elm: Set uart0 to mmio32 iotype To: Enric Balletbo i Serra Cc: "moderated list:ARM/Mediatek SoC support" , Rob Herring , Matthias Brugger , Devicetree List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , lkml 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 Thu, Sep 10, 2020 at 4:16 PM Enric Balletbo i Serra wrote: > > Hi Hsin-Yi, > > On 10/9/20 9:57, Hsin-Yi Wang wrote: > > On Thu, Sep 10, 2020 at 3:20 PM Enric Balletbo i Serra > > wrote: > >> > >> Hi Hsin-Yi, > >> > >> On 10/9/20 7:46, Hsin-Yi Wang wrote: > >>> Set uart0 iotype to mmio32 to make earlycon work with stdout-path. > >>> > >>> Signed-off-by: Hsin-Yi Wang > >>> --- > >>> arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 2 ++ > >>> 1 file changed, 2 insertions(+) > >>> > >>> diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi > >>> index a5a12b2599a4a..d54e62f72c65d 100644 > >>> --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi > >>> +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi > >>> @@ -1160,6 +1160,8 @@ &thermal { > >>> }; > >>> > >>> &uart0 { > >>> + reg-io-width = <4>; > >>> + reg-shift = <2>; > >> > >> I am wondering if these properties are common enough to go to mt8173.dtsi > >> instead of here. > >> > > Since stdout-path is set on elm.dtsi (using uart0), so I add this > > attribute here. > > > > Why needs to be defined in the same place that stdout-path is set? > > My guess is that reg-io-width and reg-shift are SoC specific, as they define how > the IO access to the register is done. In fact, I think that these properties > should be added in all the uarts, not only the one that has defined the stdout-path. > Okay, I'll apply them to all uart. Thanks.