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. Let's also update the dts file to use #include while at it. Cc: devicetree@vger.kernel.org Cc: Adam Ford <aford173@gmail.com> Cc: Andreas Kemnade <andreas@kemnade.info> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: "H. Nikolaus Schaller" <hns@goldelico.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>
50 lines
984 B
Plaintext
50 lines
984 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Author: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
|
|
*/
|
|
/dts-v1/;
|
|
|
|
#include "omap3-devkit8000-common.dtsi"
|
|
/ {
|
|
model = "TimLL OMAP3 Devkit8000";
|
|
compatible = "timll,omap3-devkit8000", "ti,omap3430", "ti,omap3";
|
|
|
|
aliases {
|
|
display1 = &dvi0;
|
|
display2 = &tv0;
|
|
};
|
|
};
|
|
|
|
/* Unusable as clocksource because of unreliable oscillator */
|
|
&counter32k {
|
|
status = "disabled";
|
|
};
|
|
|
|
/* Unusable as clockevent because if unreliable oscillator, allow to idle */
|
|
&timer1_target {
|
|
/delete-property/ti,no-reset-on-init;
|
|
/delete-property/ti,no-idle;
|
|
timer@0 {
|
|
/delete-property/ti,timer-alwon;
|
|
};
|
|
};
|
|
|
|
/* Preferred always-on timer for clocksource */
|
|
&timer12_target {
|
|
ti,no-reset-on-init;
|
|
ti,no-idle;
|
|
timer@0 {
|
|
/* Always clocked by secure_32k_fck */
|
|
};
|
|
};
|
|
|
|
/* Preferred timer for clockevent */
|
|
&timer2_target {
|
|
ti,no-reset-on-init;
|
|
ti,no-idle;
|
|
timer@0 {
|
|
assigned-clocks = <&gpt2_fck>;
|
|
assigned-clock-parents = <&sys_ck>;
|
|
};
|
|
};
|