mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
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: [email protected] Cc: Adam Ford <[email protected]> Cc: Andreas Kemnade <[email protected]> Cc: Grygorii Strashko <[email protected]> Cc: "H. Nikolaus Schaller" <[email protected]> Cc: Keerthy <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Rob Herring <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
50 lines
984 B
Devicetree
50 lines
984 B
Devicetree
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Author: Anthoine Bourgeois <[email protected]>
|
|
*/
|
|
/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>;
|
|
};
|
|
};
|