]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: mvebu: Enable the reference clock for timer and watchdog on Armada 375 SoC
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Sat, 25 Oct 2014 14:48:42 +0000 (11:48 -0300)
committerJason Cooper <jason@lakedaemon.net>
Sat, 1 Nov 2014 23:10:25 +0000 (23:10 +0000)
Now that the timer and watchdog drivers support the Armada 375 usage of
the reference clock, we can enable it in the devicetree.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1414248522-16055-5-git-send-email-ezequiel.garcia@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-375.dtsi

index de6571445cef7140da63ed0cf54a4952fcdab6a1..9721e55384ce086a52ac3c0e93b25c7b4e2c3b4f 100644 (file)
                        #clock-cells = <0>;
                        clock-frequency = <2000000000>;
                };
+               /* 25 MHz reference crystal */
+               refclk: oscillator {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <25000000>;
+               };
        };
 
        cpus {
                                                      <&gic  GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
                                                      <&mpic 5>,
                                                      <&mpic 6>;
-                               clocks = <&coreclk 0>;
+                               clocks = <&coreclk 0>, <&refclk>;
+                               clock-names = "nbclk", "fixed";
                        };
 
                        watchdog@20300 {
                                compatible = "marvell,armada-375-wdt";
                                reg = <0x20300 0x34>, <0x20704 0x4>, <0x18254 0x4>;
-                               clocks = <&coreclk 0>;
+                               clocks = <&coreclk 0>, <&refclk>;
+                               clock-names = "nbclk", "fixed";
                        };
 
                        cpurst@20800 {