From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 15 Aug 2014 11:10:44 -0600 Subject: [U-Boot] [PATCH v4 14/15] tegra: dts: Add serial port details In-Reply-To: <1407770874-12749-15-git-send-email-sjg@chromium.org> References: <1407770874-12749-1-git-send-email-sjg@chromium.org> <1407770874-12749-15-git-send-email-sjg@chromium.org> Message-ID: <53EE3F14.1010804@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/11/2014 09:27 AM, Simon Glass wrote: > Some Tegra device tree files do not include information about the serial > ports. Add this and also add information about the input clock speed. > > The console alias needs to be set up to indicate which port is used for > the console. > > Also add a binding file since this is missing. > diff --git a/arch/arm/dts/tegra114-dalmore.dts b/arch/arm/dts/tegra114-dalmore.dts > aliases { > + console = &uart_d; Did the use of "console" get OK'd on the devicetree mailing list then? I know we have this bug in the kernel DTs, but let's fix it here: phandle values should have <> around them: console = <&uart_d>; > diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi > + uart_a: serial at 70006000 { > + compatible = "nvidia,tegra20-uart"; > + reg = <0x70006000 0x40>; > + reg-shift = <2>; > + interrupts = < 68 >; > + }; In order to prevent the kernel and U-Boot DT files from diverging, can you copy the entire DT content from the kernel rather than just a subset, i.e.: uarta: serial at 70006000 { compatible = "nvidia,tegra114-uart", "nvidia,tegra20-uart"; reg = <0x70006000 0x40>; reg-shift = <2>; interrupts = ; clocks = <&tegra_car TEGRA114_CLK_UARTA>; resets = <&tegra_car 6>; reset-names = "serial"; dmas = <&apbdma 8>, <&apbdma 8>; dma-names = "rx", "tx"; status = "disabled"; };