ARM: dts: Configure system timers for am437x
We can now init system timers using the dmtimer and 32k counter based on only devicetree data and drivers/clocksource timers. Let's configure the clocksource and clockevent, and drop the old unused platform data. As we're just dropping platform data, and the early platform data init is based on the custom ti,hwmods property, we want to drop both the platform data and ti,hwmods property in a single patch. Since the dmtimer can use both 32k clock and system clock as the source, let's also configure the SoC specific default values. The board specific dts files can reconfigure these with assigned-clocks and assigned-clock-parents as needed. Cc: devicetree@vger.kernel.org Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Keerthy <j-keerthy@ti.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Rob Herring <robh@kernel.org> Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Esse commit está contido em:
@@ -553,3 +553,23 @@
|
||||
#reset-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
/* Preferred always-on timer for clocksource */
|
||||
&timer1_target {
|
||||
ti,no-reset-on-init;
|
||||
ti,no-idle;
|
||||
timer@0 {
|
||||
assigned-clocks = <&timer1_fck>;
|
||||
assigned-clock-parents = <&sys_clkin_ck>;
|
||||
};
|
||||
};
|
||||
|
||||
/* Preferred timer for clockevent */
|
||||
&timer2_target {
|
||||
ti,no-reset-on-init;
|
||||
ti,no-idle;
|
||||
timer@0 {
|
||||
assigned-clocks = <&timer2_fck>;
|
||||
assigned-clock-parents = <&sys_clkin_ck>;
|
||||
};
|
||||
};
|
||||
|
@@ -328,9 +328,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
target-module@31000 { /* 0x44e31000, ap 24 40.0 */
|
||||
timer1_target: target-module@31000 { /* 0x44e31000, ap 24 40.0 */
|
||||
compatible = "ti,sysc-omap2-timer", "ti,sysc";
|
||||
ti,hwmods = "timer1";
|
||||
reg = <0x31000 0x4>,
|
||||
<0x31010 0x4>,
|
||||
<0x31014 0x4>;
|
||||
@@ -450,7 +449,6 @@
|
||||
|
||||
target-module@86000 { /* 0x44e86000, ap 40 70.0 */
|
||||
compatible = "ti,sysc-omap2", "ti,sysc";
|
||||
ti,hwmods = "counter_32k";
|
||||
reg = <0x86000 0x4>,
|
||||
<0x86004 0x4>;
|
||||
reg-names = "rev", "sysc";
|
||||
@@ -868,9 +866,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
target-module@40000 { /* 0x48040000, ap 18 1e.0 */
|
||||
timer2_target: target-module@40000 { /* 0x48040000, ap 18 1e.0 */
|
||||
compatible = "ti,sysc-omap4-timer", "ti,sysc";
|
||||
ti,hwmods = "timer2";
|
||||
reg = <0x40000 0x4>,
|
||||
<0x40010 0x4>,
|
||||
<0x40014 0x4>;
|
||||
|
Referência em uma nova issue
Block a user