Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp322226imm; Thu, 2 Aug 2018 20:06:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdPN7+iClTvdMW28e0sNFjono9wzEqZ2JUW9TcmGSfDRKpVJmnykGPW5mDYKBh+xxJpfZ2A X-Received: by 2002:a62:789:: with SMTP id 9-v6mr2286236pfh.213.1533265569433; Thu, 02 Aug 2018 20:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533265569; cv=none; d=google.com; s=arc-20160816; b=lPu0udLAiN287y/d58gz/tAhdVnUp0/s4aa8+8M4eIE8ThYIcnq6M4cxTOcCLqYV1u ZasoQx7tMGg58jPsESkTntfHVUd3ISetxH+kc4NUG4cJUAJZo/9kODiGXsRaQcAQOAi5 ijJQJ7WhLDyp0gahnz0k1aYwJ1Fgpzi3Omzg/+P4rhrh5k3W5k7BnLMnBD6NQVkEywZe whxn7+WsQk8mE2SFaQJY5MVi6N3ss8ISKCl9qUGOSHod/b2vDjWNzZ8QKoXbtrKeFVDJ EG18XE9X5/gKIIbnCICuGHHuUiH0yXOU9FKbRzneqTIeZOSHnB4h2Ut5hWHrLkFQbWaF L/Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5I/NqzwVxpplYzPaSwTGPhzWo40JV2W6ovl0W4s8cqg=; b=CY5M6S+DIZ2zOw/3Ub5FZuBjR5/atTIhxmb/GeChk7gShx8i7w6MArQsMOAxg0489Y d18q7YbS/YUo12GD51jVwNvbFaL1pOGWqlwkeUlzZoIvXx1RL14y2cfzU59xmvo3klKH J4VakQgz1tUnoY+WW39Lb1tQMBC4EgMVeDyu1wrdcY4AkXCkQ3fHgE50oBZgiqjKVl4A IZmkejhrQfgUQr5PI+vXfxebFVEvDfK7cuBsc1Gm1S1h151AIh648gedy+ELCjtZPpxK SDXUj9WIqW7H+pG1EpIZmrmnYrBFAgdB8zsWYzzAyAn7r4Qq3DoAdNmCDi91rdtuAWcx uc5Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 192-v6si4369328pfa.81.2018.08.02.20.05.54; Thu, 02 Aug 2018 20:06:09 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728266AbeHCE6J (ORCPT + 99 others); Fri, 3 Aug 2018 00:58:09 -0400 Received: from mga02.intel.com ([134.134.136.20]:27336 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeHCE6J (ORCPT ); Fri, 3 Aug 2018 00:58:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2018 20:04:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,437,1526367600"; d="scan'208";a="62955495" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga006.jf.intel.com with ESMTP; 02 Aug 2018 20:03:57 -0700 From: Songjun Wu To: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Songjun Wu , James Hogan , linux-kernel@vger.kernel.org, Thomas Gleixner , Philippe Ombredanne , Paul Burton , Rob Herring , Kate Stewart , Greg Kroah-Hartman , Mark Rutland , Ralf Baechle Subject: [PATCH v2 07/18] MIPS: dts: Add aliases node for lantiq danube serial Date: Fri, 3 Aug 2018 11:02:26 +0800 Message-Id: <20180803030237.3366-8-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803030237.3366-1-songjun.wu@linux.intel.com> References: <20180803030237.3366-1-songjun.wu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes in v2: None arch/mips/boot/dts/lantiq/danube.dtsi | 2 +- arch/mips/boot/dts/lantiq/easy50712.dts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/lantiq/danube.dtsi b/arch/mips/boot/dts/lantiq/danube.dtsi index 510be63c8bdf..73746d7577d7 100644 --- a/arch/mips/boot/dts/lantiq/danube.dtsi +++ b/arch/mips/boot/dts/lantiq/danube.dtsi @@ -74,7 +74,7 @@ reg = <0xe100a00 0x100>; }; - serial@e100c00 { + asc1: serial@e100c00 { compatible = "lantiq,asc"; reg = <0xe100c00 0x400>; interrupt-parent = <&icu0>; diff --git a/arch/mips/boot/dts/lantiq/easy50712.dts b/arch/mips/boot/dts/lantiq/easy50712.dts index 1ce20b7d05cb..452860ca1868 100644 --- a/arch/mips/boot/dts/lantiq/easy50712.dts +++ b/arch/mips/boot/dts/lantiq/easy50712.dts @@ -4,6 +4,10 @@ /include/ "danube.dtsi" / { + aliases { + serial0 = &asc1; + }; + chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; }; -- 2.11.0