[{"id":1779431,"web_url":"http://patchwork.ozlabs.org/comment/1779431/","msgid":"<1507093999.5452.16.camel@aj.id.au>","list_archive_url":null,"date":"2017-10-04T05:13:19","subject":"Re: [PATCH 7/8] ARM: dts: aspeed: Add aliases for UARTs","submitter":{"id":68332,"url":"http://patchwork.ozlabs.org/api/people/68332/","name":"Andrew Jeffery","email":"andrew@aj.id.au"},"content":"On Thu, 2017-09-28 at 17:21 +0930, Joel Stanley wrote:\n> Existing userspace expects the console (UART5) to be at /dev/ttyS4.  To\n> ensure the UARTs show up where users expect them, we give them fixed\n> aliases starting at 0.\n> \n> Signed-off-by: Joel Stanley <joel@jms.id.au>\n\nReviewed-by: Andrew Jeffery <andrew@aj.id.au>\n\n> ---\n>  arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 4 ----\n>  arch/arm/boot/dts/aspeed-g4.dtsi              | 5 +++++\n>  arch/arm/boot/dts/aspeed-g5.dtsi              | 5 +++++\n>  3 files changed, 10 insertions(+), 4 deletions(-)\n> \n> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts\n> index e387c80b7f4f..be51be5a5f39 100644\n> --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts\n> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts\n> @@ -6,10 +6,6 @@\n>  \tmodel = \"Palmetto BMC\";\n>  \tcompatible = \"tyan,palmetto-bmc\", \"aspeed,ast2400\";\n>  \n> -\taliases {\n> -\t\tserial4 = &uart5;\n> -\t};\n> -\n>  \tchosen {\n>  \t\tstdout-path = &uart5;\n>  \t\tbootargs = \"console=ttyS4,115200 earlyprintk\";\n> diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi\n> index f8611d5a6465..191c33d18122 100644\n> --- a/arch/arm/boot/dts/aspeed-g4.dtsi\n> +++ b/arch/arm/boot/dts/aspeed-g4.dtsi\n> @@ -22,6 +22,11 @@\n>  \t\ti2c11 = &i2c11;\n>  \t\ti2c12 = &i2c12;\n>  \t\ti2c13 = &i2c13;\n> +\t\tserial0 = &uart1;\n> +\t\tserial1 = &uart2;\n> +\t\tserial2 = &uart3;\n> +\t\tserial3 = &uart4;\n> +\t\tserial4 = &uart5;\n>  \t};\n>  \n>  \tcpus {\n> diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi\n> index de127370131d..251fc9f4637e 100644\n> --- a/arch/arm/boot/dts/aspeed-g5.dtsi\n> +++ b/arch/arm/boot/dts/aspeed-g5.dtsi\n> @@ -22,6 +22,11 @@\n>  \t\ti2c11 = &i2c11;\n>  \t\ti2c12 = &i2c12;\n>  \t\ti2c13 = &i2c13;\n> +\t\tserial0 = &uart1;\n> +\t\tserial1 = &uart2;\n> +\t\tserial2 = &uart3;\n> +\t\tserial3 = &uart4;\n> +\t\tserial4 = &uart5;\n>  \t};\n>  \n>  \tcpus {","headers":{"Return-Path":"<linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-aspeed@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","linux-aspeed@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y6PF84dChz9sRV\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 16:13:32 +1100 (AEDT)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3y6PF82Xk8zDqlM\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  4 Oct 2017 16:13:32 +1100 (AEDT)","from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n\t[66.111.4.25])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3y6PF60MCFzDqlM\n\tfor <linux-aspeed@lists.ozlabs.org>;\n\tWed,  4 Oct 2017 16:13:30 +1100 (AEDT)","from compute4.internal (compute4.nyi.internal [10.202.2.44])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 0211F20D60;\n\tWed,  4 Oct 2017 01:13:28 -0400 (EDT)","from frontend2 ([10.202.2.161])\n\tby compute4.internal (MEProxy); Wed, 04 Oct 2017 01:13:28 -0400","from keelia (unknown [203.0.153.9])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id AB53124009;\n\tWed,  4 Oct 2017 01:13:23 -0400 (EDT)"],"Authentication-Results":["ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"S4HxMp9g\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"NKPb6iLy\"; \n\tdkim-atps=neutral","lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"S4HxMp9g\";\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"NKPb6iLy\"; \n\tdkim-atps=neutral","ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=aj.id.au\n\t(client-ip=66.111.4.25; helo=out1-smtp.messagingengine.com;\n\tenvelope-from=andrew@aj.id.au; receiver=<UNKNOWN>)","lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=aj.id.au header.i=@aj.id.au header.b=\"S4HxMp9g\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com\n\theader.b=\"NKPb6iLy\"; dkim-atps=neutral"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc\n\t:content-type:date:from:in-reply-to:message-id:mime-version\n\t:references:subject:to:x-me-sender:x-me-sender:x-sasl-enc\n\t:x-sasl-enc; s=fm1; bh=nMpbbWTbwq2pU5kTe/zymbRVwj1jIjZ2BbfNsVpbV\n\ta4=; b=S4HxMp9g67QGMG6zD0u85FBD96x+oJI56vUPCeBv7mr3nK8wQ8MCwiTut\n\t8o4JVQkQXjwcqqPD9vBY2rnpPLzp0BfreGQtt0U3aKj06dslY1UA1YfLNzxcmm0M\n\tcHwq+NaC7If93DDmRG4JLlK8UULAx5WUV0uOlPsfQYRgqtNBgokOKKkYnclII7Ho\n\t10xa25v5sVWs632JzrHUsmY1dtBRC3U3jTWJoB++dzOErtUiL+j5BcdM2sq+qXoQ\n\tVDnY5cOUEHfjgbd1QZb/3oncm9rYO7JUpjTAu50TDRRoC6+Od0yyN0UkRXPomwX9\n\tzF1O0bC664r1q2oH/OK/tUouQHswg==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:content-type:date:from:in-reply-to\n\t:message-id:mime-version:references:subject:to:x-me-sender\n\t:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=nMpbbWTbwq2pU5kTe/\n\tzymbRVwj1jIjZ2BbfNsVpbVa4=; b=NKPb6iLy2pE32iPkI9JN9iBpWzePkfUdEM\n\tU1lGfCme8lsL28JUk9kbklTFNgG/cKAwheC04pwdoYXlY+UUKiKRM1rDTYp/Jtee\n\tamYavMBF+K1RGL+n+nTvTNuP91HVRVaZ5/nEiM3aMGYFaUbb09bf8wUQiQeXYzQN\n\tn2E81s5rr39BCx1KOLqVmvMsi9s8khj1O+DUlGrkDVZFOfIDcJFm+W6wlKF+Z7Pk\n\tdkO21HXdka4GRncTZoNCRH1zjHD4CoBcjIO/nmlv+KPv97iRp/Jg0Gxfbe/LN3rp\n\tAvO9gqAiUssY7T/3v2vPZXNNTilJE3RdeHIEwpxCW+G76S4DXQbA=="],"X-ME-Sender":"<xms:923UWTreOpwaArCdmoFC7JlgKOr3TMl2N-ZhiCtdbal8vlx7tDIQIw>","X-Sasl-enc":"RY/ENlvMlUv25QuW+zxpc4PRGLnd8QvC2sc3FozFB1JQ 1507094007","Message-ID":"<1507093999.5452.16.camel@aj.id.au>","Subject":"Re: [PATCH 7/8] ARM: dts: aspeed: Add aliases for UARTs","From":"Andrew Jeffery <andrew@aj.id.au>","To":"Joel Stanley <joel@jms.id.au>, Rob Herring <robh+dt@kernel.org>, Mark\n\tRutland <mark.rutland@arm.com>","Date":"Wed, 04 Oct 2017 15:43:19 +1030","In-Reply-To":"<20170928075149.8154-8-joel@jms.id.au>","References":"<20170928075149.8154-1-joel@jms.id.au>\n\t<20170928075149.8154-8-joel@jms.id.au>","Content-Type":"multipart/signed; micalg=\"pgp-sha512\";\n\tprotocol=\"application/pgp-signature\";\n\tboundary=\"=-oZEm4benk0uYV4kEaiSn\"","X-Mailer":"Evolution 3.22.6-1ubuntu1 ","Mime-Version":"1.0","X-BeenThere":"linux-aspeed@lists.ozlabs.org","X-Mailman-Version":"2.1.24","Precedence":"list","List-Id":"Linux ASPEED SoC development <linux-aspeed.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linux-aspeed>,\n\t<mailto:linux-aspeed-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linux-aspeed/>","List-Post":"<mailto:linux-aspeed@lists.ozlabs.org>","List-Help":"<mailto:linux-aspeed-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linux-aspeed>,\n\t<mailto:linux-aspeed-request@lists.ozlabs.org?subject=subscribe>","Cc":"devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org,\n\tBrendan Higgins <brendanhiggins@google.com>,\n\tRussell King <linux@armlinux.org.uk>, linux-kernel@vger.kernel.org,\n\tRick Altherr <raltherr@google.com>, linux-arm-kernel@lists.infradead.org","Errors-To":"linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org","Sender":"\"Linux-aspeed\"\n\t<linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"}}]