forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: dts: Fix timer regression for beagleboard revision c
Commit e428e25 ("ARM: dts: Configure system timers for omap3") caused a timer regression for beagleboard revision c where the system clockevent stops working if omap3isp module is unloaded. Turns out we still have beagleboard revisions a-b4 capacitor c70 quirks applied that limit the usable timers for no good reason. This also affects the power management as we use the system clock instead of the 32k clock source. Let's fix the issue by adding a new omap3-beagle-ab4.dts for the old timer quirks. This allows us to remove the timer quirks for later beagleboard revisions. We also need to update the related timer quirk check for the correct compatible property. Fixes: e428e25 ("ARM: dts: Configure system timers for omap3") Cc: [email protected] Cc: Daniel Lezcano <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Rob Herring <[email protected]> Reported-by: Jarkko Nikula <[email protected]> Tested-by: Jarkko Nikula <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
- Loading branch information
Showing
5 changed files
with
52 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
/dts-v1/; | ||
|
||
#include "omap3-beagle.dts" | ||
|
||
/ { | ||
model = "TI OMAP3 BeagleBoard A to B4"; | ||
compatible = "ti,omap3-beagle-ab4", "ti,omap3-beagle", "ti,omap3430", "ti,omap3"; | ||
}; | ||
|
||
/* | ||
* Workaround for capacitor C70 issue, see "Boards revision A and < B5" | ||
* section at https://elinux.org/BeagleBoard_Community | ||
*/ | ||
|
||
/* Unusable as clocksource because of unreliable oscillator */ | ||
&counter32k { | ||
status = "disabled"; | ||
}; | ||
|
||
/* Unusable as clockevent because of 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>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters