From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v2 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Wed, 21 Nov 2018 09:55:18 +0100 Message-ID: References: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> <20181121033652.12247-7-manivannan.sadhasivam@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20181121033652.12247-7-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org To: Manivannan Sadhasivam Cc: Olof Johansson , Rob Herring , Thomas Gleixner , Jason Cooper , Marc Zyngier , Daniel Lezcano , gregkh , Jiri Slaby , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Linux ARM , Linux Kernel Mailing List , DTML , linux-serial@vger.kernel.org, Amit Kucheria , Linus Walleij , zhao_steven@263.net, overseas.sales@unisoc.com List-Id: linux-serial@vger.kernel.org On Wed, Nov 21, 2018 at 4:38 AM Manivannan Sadhasivam wrote: > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + }; > + > +&uart2 { > + status = "okay"; > + clocks = <&uart2_clk>; > +}; This is clearly mismatched here: you mark only one uart as 'enabled, but list three of them as aliases. Having 'serial0' point to a disabled uart may easily break applications that expect the first one to be the console. Best make that serial0 = &uart2; and drop the other ones if only one of them is exposed on the board. If all three are usable, you should enable them all here, and make sure that the numbering of the aliases matches the labels on the board or its documentation. Arnd