From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com ([134.134.136.100]:60351 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935884AbeFRJmT (ORCPT ); Mon, 18 Jun 2018 05:42:19 -0400 Subject: Re: [PATCH 1/7] MIPS: dts: Add aliases node for lantiq danube serial To: Arnd Bergmann Cc: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@intel.com, "open list:RALINK MIPS ARCHITECTURE" , qi-ming.wu@intel.com, linux-clk , linux-serial@vger.kernel.org, DTML , James Hogan , Linux Kernel Mailing List , Thomas Gleixner , Philippe Ombredanne , Rob Herring , Kate Stewart , Greg Kroah-Hartman , Mark Rutland , Ralf Baechle References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-2-songjun.wu@linux.intel.com> From: "Wu, Songjun" Message-ID: <539411c1-82b7-cf76-71cf-d50f3303f50f@linux.intel.com> Date: Mon, 18 Jun 2018 17:42:14 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-clk-owner@vger.kernel.org List-ID: On 6/14/2018 6:03 PM, Arnd Bergmann wrote: > On Tue, Jun 12, 2018 at 7:40 AM, Songjun Wu wrote: >> Previous implementation uses a hard-coded register value to check if >> the current serial entity is the console entity. >> Now the lantiq serial driver uses the aliases for the index of the >> serial port. >> The lantiq danube serial dts are updated with aliases to support this. >> >> Signed-off-by: Songjun Wu >> --- >> >> arch/mips/boot/dts/lantiq/danube.dtsi | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi >> index 2dd950181f8a..7a9e15da6bd0 100644 >> --- a/arch/mips/boot/dts/lantiq/danube.dtsi >> +++ b/arch/mips/boot/dts/lantiq/danube.dtsi >> @@ -4,6 +4,10 @@ >> #size-cells = <1>; >> compatible = "lantiq,xway", "lantiq,danube"; >> >> + aliases { >> + serial0 = &asc1; >> + }; >> + > You generally want the aliases to be part of the board specific file, > not every board numbers their serial ports in the same way. > > Arnd In this chip only asc1 can be used as console,  so serial0 is defined in chip specific file.