ARM: dts: Add 32KHz clock as default clock source
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 27 Apr 2020 17:26:04 +0000 (22:56 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 5 May 2020 17:56:42 +0000 (10:56 -0700)
Clocksource to timer configured in pwm mode can be selected using the DT
property ti,clock-source. There are few pwm timers which are not
selecting the clock source and relying on default value in hardware or
selected by driver. Instead of relying on default value, always select
the clock source from DT.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-guardian.dts
arch/arm/boot/dts/am3517-evm.dts
arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi
arch/arm/boot/dts/omap3-gta04.dtsi

index 81e0f63..0ebe9e2 100644 (file)
                ti,timers = <&timer7>;
                pinctrl-names = "default";
                pinctrl-0 = <&dmtimer7_pins>;
+               ti,clock-source = <0x01>;
        };
 
        vmmcsd_fixed: regulator-3v3 {
index a1fd3e6..92466b9 100644 (file)
                pinctrl-0 = <&pwm_pins>;
                ti,timers = <&timer11>;
                #pwm-cells = <3>;
+               ti,clock-source = <0x01>;
        };
 
        /* HS USB Host PHY on PORT 1 */
index f7b82ce..381f0e8 100644 (file)
@@ -65,6 +65,7 @@
                pinctrl-0 = <&pwm_pins>;
                ti,timers = <&timer10>;
                #pwm-cells = <3>;
+               ti,clock-source = <0x01>;
        };
 
 };
index 409a758..ecc4586 100644 (file)
                compatible = "ti,omap-dmtimer-pwm";
                ti,timers = <&timer11>;
                #pwm-cells = <3>;
+               ti,clock-source = <0x01>;
        };
 
        hsusb2_phy: hsusb2_phy {