Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1416731 > unrolled thread

[PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2016-06-08 01:40 +0200
Last post2016-06-10 17:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-06-08 01:40 +0200
    Re: [PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies Marek Vasut <marex@denx.de> - 2016-06-08 01:50 +0200
    Re: [PATCH] ARM: dts: at91: ma5d4: properly define crystals  frequencies Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2016-06-10 17:00 +0200

#1416731 — [PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2016-06-08 01:40 +0200
Subject[PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies
Message-ID<rHyLf-GT-9@gated-at.bofh.it>
The Denx MA5D4 dts doesn't properly define the slow_xtal and main_xtal
frequencies, the PMC then has to fallback to using the RC oscillators whose
precision is not really good.

As both crystals are populated, define their frequencies, see p17 of
http://www.denx-cs.de/sites/all/files/MA5D4.HWM_.002.pdf

Also, remove the obsolete main_clock definition.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi b/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
index e7b2109fc85a..99d57131782f 100644
--- a/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
+++ b/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
@@ -20,8 +20,11 @@
 	};
 
 	clocks {
-		main_clock: main_clock {
-			compatible = "atmel,osc", "fixed-clock";
+		slow_xtal {
+			clock-frequency = <32768>;
+		};
+
+		main_xtal {
 			clock-frequency = <12000000>;
 		};
 
-- 
2.8.1

[toc] | [next] | [standalone]


#1416760

FromMarek Vasut <marex@denx.de>
Date2016-06-08 01:50 +0200
Message-ID<rHyUV-KQ-17@gated-at.bofh.it>
In reply to#1416731
On 06/08/2016 01:31 AM, Alexandre Belloni wrote:
> The Denx MA5D4 dts doesn't properly define the slow_xtal and main_xtal
> frequencies, the PMC then has to fallback to using the RC oscillators whose
> precision is not really good.
> 
> As both crystals are populated, define their frequencies, see p17 of
> http://www.denx-cs.de/sites/all/files/MA5D4.HWM_.002.pdf
> 
> Also, remove the obsolete main_clock definition.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

That's correct, I had similar patch in my tree.

Acked-by: Marek Vasut <marex@denx.de>

Thanks!

> ---
>  arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi b/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
> index e7b2109fc85a..99d57131782f 100644
> --- a/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
> +++ b/arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi
> @@ -20,8 +20,11 @@
>  	};
>  
>  	clocks {
> -		main_clock: main_clock {
> -			compatible = "atmel,osc", "fixed-clock";
> +		slow_xtal {
> +			clock-frequency = <32768>;
> +		};
> +
> +		main_xtal {
>  			clock-frequency = <12000000>;
>  		};
>  
> 


-- 
Best regards,
Marek Vasut

[toc] | [prev] | [next] | [standalone]


#1419496 — Re: [PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2016-06-10 17:00 +0200
SubjectRe: [PATCH] ARM: dts: at91: ma5d4: properly define crystals frequencies
Message-ID<rIw4F-5RL-1@gated-at.bofh.it>
In reply to#1416731
On 08/06/2016 at 01:31:19 +0200, Alexandre Belloni wrote :
> The Denx MA5D4 dts doesn't properly define the slow_xtal and main_xtal
> frequencies, the PMC then has to fallback to using the RC oscillators whose
> precision is not really good.
> 
> As both crystals are populated, define their frequencies, see p17 of
> http://www.denx-cs.de/sites/all/files/MA5D4.HWM_.002.pdf
> 
> Also, remove the obsolete main_clock definition.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
>  arch/arm/boot/dts/at91-sama5d4_ma5d4.dtsi | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
Applied.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web