ARM: dts: sun8i-a83t: Correct low speed oscillator clocks
authorChen-Yu Tsai <wens@csie.org>
Sun, 31 Jan 2016 01:20:58 +0000 (09:20 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 4 Feb 2016 12:03:04 +0000 (13:03 +0100)
The A83T does not have a 32.768 kHz low speed oscillator, either as
an external crystal or input. It has a 16 MHz RC-based (inaccurate)
internal oscillator, which is then divided by 512 for a clock close
to 32 kHz.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-a83t.dtsi

index 8d27b6381257cc9c02818414d9a1df3001786f5d..d3473f81b12f7182c953fc02abd29b26f800cc5b 100644 (file)
                #size-cells = <1>;
                ranges;
 
+               /* TODO: PRCM block has a mux for this. */
                osc24M: osc24M_clk {
                        #clock-cells = <0>;
                        compatible = "fixed-clock";
                        clock-output-names = "osc24M";
                };
 
-               osc32k: osc32k_clk {
+               /*
+                * This is called "internal OSC" in some places.
+                * It is an internal RC-based oscillator.
+                * TODO: Its controls are in the PRCM block.
+                */
+               osc16M: osc16M_clk {
                        #clock-cells = <0>;
                        compatible = "fixed-clock";
-                       clock-frequency = <32768>;
-                       clock-output-names = "osc32k";
+                       clock-frequency = <16000000>;
+                       clock-output-names = "osc16M";
+               };
+
+               osc16Md512: osc16Md512_clk {
+                       #clock-cells = <0>;
+                       compatible = "fixed-factor-clock";
+                       clock-div = <512>;
+                       clock-mult = <1>;
+                       clocks = <&osc16M>;
+                       clock-output-names = "osc16M-d512";
                };
        };
 
This page took 0.028017 seconds and 5 git commands to generate.