| From 574a0aa6ee459fc336cce7e765118cda090dcac3 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Tue, 25 Jan 2022 20:11:38 +0100 |
| Subject: ARM: dts: switch timer config to common devkit8000 devicetree |
| |
| From: Anthoine Bourgeois <anthoine.bourgeois@gmail.com> |
| |
| [ Upstream commit 64324ef337d0caa5798fa8fa3f6bbfbd3245868a ] |
| |
| This patch allow lcd43 and lcd70 flavors to benefit from timer |
| evolution. |
| |
| Fixes: e428e250fde6 ("ARM: dts: Configure system timers for omap3") |
| Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com> |
| Signed-off-by: Tony Lindgren <tony@atomide.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| .../arm/boot/dts/omap3-devkit8000-common.dtsi | 33 +++++++++++++++++++ |
| arch/arm/boot/dts/omap3-devkit8000.dts | 33 ------------------- |
| 2 files changed, 33 insertions(+), 33 deletions(-) |
| |
| diff --git a/arch/arm/boot/dts/omap3-devkit8000-common.dtsi b/arch/arm/boot/dts/omap3-devkit8000-common.dtsi |
| index 2c19d6e255bd..0df2b1dd07f6 100644 |
| --- a/arch/arm/boot/dts/omap3-devkit8000-common.dtsi |
| +++ b/arch/arm/boot/dts/omap3-devkit8000-common.dtsi |
| @@ -158,6 +158,39 @@ |
| status = "disabled"; |
| }; |
| |
| +/* 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>; |
| + }; |
| +}; |
| + |
| &twl_gpio { |
| ti,use-leds; |
| /* |
| diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts |
| index c2995a280729..162d0726b008 100644 |
| --- a/arch/arm/boot/dts/omap3-devkit8000.dts |
| +++ b/arch/arm/boot/dts/omap3-devkit8000.dts |
| @@ -14,36 +14,3 @@ |
| 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>; |
| - }; |
| -}; |
| -- |
| 2.34.1 |
| |