ARM: dts: logicpd-torpedo: Add fixed 26MHz clock as fck for twl
authorAdam Ford <aford173@gmail.com>
Fri, 4 May 2018 21:00:10 +0000 (16:00 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 15 May 2018 18:21:19 +0000 (11:21 -0700)
The board uses 26MHz oscillator for the twl4030 HFCLK.
This way we will not depend on the bootloader to configure the
CFG_BOOT:HFCLK_FREQ

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/logicpd-torpedo-som.dtsi

index 3e174e4..7d2302e 100644 (file)
                        linux,default-trigger = "none";
                };
        };
+
+       /* fixed 26MHz oscillator */
+       hfclk_26m: oscillator {
+               #clock-cells = <0>;
+               compatible = "fixed-clock";
+               clock-frequency = <26000000>;
+       };
 };
 
 &gpmc {
@@ -74,6 +81,9 @@
                reg = <0x48>;
                interrupts = <7>; /* SYS_NIRQ cascaded to intc */
                interrupt-parent = <&intc>;
+               clocks = <&hfclk_26m>;
+               clock-names = "fck";
+
                twl_audio: audio {
                        compatible = "ti,twl4030-audio";
                        codec {