]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: pxa: fix the rtc controller
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 25 Jun 2018 16:44:01 +0000 (18:44 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 31 Aug 2018 14:54:04 +0000 (16:54 +0200)
The RTC controller is fed by an external fixed 32kHz clock. Yet the
driver wants to acquire this clock, even though it doesn't make any use
of it, ie. doesn't get the rate to make calculation.

Therefore, use the exported 32.768kHz clock in the PXA clock tree to
make the driver happy and working.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/boot/dts/pxa25x.dtsi
arch/arm/boot/dts/pxa27x.dtsi

index 95d59be97213e0392505c4e7afd67d2f99e5e4a6..8494b578717090a6401090ce3c59b25f17f7dab1 100644 (file)
@@ -80,6 +80,10 @@ pwm1: pwm@40b00010 {
                        #pwm-cells = <1>;
                        clocks = <&clks CLK_PWM1>;
                };
+
+               rtc@40900000 {
+                       clocks = <&clks CLK_OSC32k768>;
+               };
        };
 
        timer@40a00000 {
index 747f750f675d96dd351d8ad5a02213dae10fb6bf..2ab6986433c8299f818c07dd71465429ef4f5cc0 100644 (file)
@@ -113,6 +113,10 @@ &pdma 69 0 /* U channel */
 
                        status = "disabled";
                };
+
+               rtc@40900000 {
+                       clocks = <&clks CLK_OSC32k768>;
+               };
        };
 
        clocks {