]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: orion5x: convert to use 'clocks' property for UART controllers
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 22 Apr 2014 21:26:25 +0000 (23:26 +0200)
committerJason Cooper <jason@lakedaemon.net>
Sat, 26 Apr 2014 14:40:51 +0000 (14:40 +0000)
Until the previous commit, the Orion5x clocks were not described in
the Device Tree. Now that they are described in the Device Tree, we
can replace the manual 'clock-frequency' property in the UART nodes
by a nicer 'clocks' reference in those UART nodes.

This commit consequently removes the 'clock-frequency' property from
the LaCie edmini_v2 board, which is at this point the only Orion5x
board converted to the Device Tree.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Link: https://lkml.kernel.org/r/1398202002-28530-22-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
arch/arm/boot/dts/orion5x.dtsi

index 83f45a7220552a7f4be233c39770155369378893..ba43197d08730ae81314c5e4e38e8669f46c899a 100644 (file)
@@ -73,6 +73,5 @@
 };
 
 &uart0 {
-       clock-frequency = <166666667>;
        status = "okay";
 };
index ad23ff40e0d12cc25b77adfdc77750acac38e985..88df8a811ad3614bd46a8b1a0a1ecd106b4cf497 100644 (file)
@@ -65,7 +65,7 @@
                                reg = <0x12000 0x100>;
                                reg-shift = <2>;
                                interrupts = <3>;
-                               /* set clock-frequency in board dts */
+                               clocks = <&core_clk 0>;
                                status = "disabled";
                        };
 
@@ -74,7 +74,7 @@
                                reg = <0x12100 0x100>;
                                reg-shift = <2>;
                                interrupts = <4>;
-                               /* set clock-frequency in board dts */
+                               clocks = <&core_clk 0>;
                                status = "disabled";
                        };