From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 7/8] serial: xilinx_uartps: get clock rate info from dts Date: Fri, 02 Nov 2012 10:20:33 +0100 Message-ID: <50939061.9060201@metafoo.de> References: <23a299ee5e89cfd17bb9affd8fbb9f41b79cfd46.1351721190.git.josh.cartwright@ni.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <23a299ee5e89cfd17bb9affd8fbb9f41b79cfd46.1351721190.git.josh.cartwright@ni.com> Sender: linux-kernel-owner@vger.kernel.org To: Josh Cartwright Cc: Grant Likely , Rob Herring , Russell King , Mike Turquette , John Stultz , Thomas Gleixner , Alan Cox , Greg Kroah-Hartman , John Linn , Michal Simek , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Michal Simek List-Id: devicetree@vger.kernel.org On 10/31/2012 08:28 PM, Josh Cartwright wrote: > Add support for specifying clock information for the uart clk via the > device tree. This eliminates the need to hardcode rates in the device > tree. > > Signed-off-by: Josh Cartwright > --- > arch/arm/boot/dts/zynq-7000.dtsi | 4 ++-- > drivers/tty/serial/xilinx_uartps.c | 30 +++++++++++++++++------------- > 2 files changed, 19 insertions(+), 15 deletions(-) > > diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi > index bb3085c..5fb763f 100644 > --- a/arch/arm/boot/dts/zynq-7000.dtsi > +++ b/arch/arm/boot/dts/zynq-7000.dtsi > @@ -44,14 +44,14 @@ > compatible = "xlnx,xuartps"; > reg = <0xE0000000 0x1000>; > interrupts = <0 27 4>; > - clock = <50000000>; > + clocks = <&uart_clk 0>; > }; > > uart1: uart@e0001000 { > compatible = "xlnx,xuartps"; > reg = <0xE0001000 0x1000>; > interrupts = <0 50 4>; > - clock = <50000000>; > + clocks = <&uart_clk 0>; Shouldn't this be <&uart_clk 1>? > }; > > slcr: slcr@f8000000 {