All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] at91sam9g20.dtsi: set correct USB clock divisors
@ 2016-10-26 17:43 Andrey Yurovsky
  2016-11-03 19:11 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Yurovsky @ 2016-10-26 17:43 UTC (permalink / raw)
  To: linux-arm-kernel

The AT91SAM9G20 has different clock divisors from the otherwise similar
AT91SAM9260. Set them in at91sam9g20.dtsi so that all AT91SAM9G20 users set up
the USB host controller clocks correctly.

Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
---
 arch/arm/boot/dts/at91sam9g20.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi
index f593016..6c4488c 100644
--- a/arch/arm/boot/dts/at91sam9g20.dtsi
+++ b/arch/arm/boot/dts/at91sam9g20.dtsi
@@ -62,6 +62,10 @@
 					atmel,clk-output-range = <0 133000000>;
 					atmel,clk-divisors = <1 2 4 6>;
 				};
+
+				usb: usbck {
+					atmel,clk-divisors = <4 2 0 0>;
+				};
 			};
 		};
 	};
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] at91sam9g20.dtsi: set correct USB clock divisors
  2016-10-26 17:43 [PATCH] at91sam9g20.dtsi: set correct USB clock divisors Andrey Yurovsky
@ 2016-11-03 19:11 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2016-11-03 19:11 UTC (permalink / raw)
  To: linux-arm-kernel

On 26/10/2016 at 10:43:31 -0700, Andrey Yurovsky wrote :
> The AT91SAM9G20 has different clock divisors from the otherwise similar
> AT91SAM9260. Set them in at91sam9g20.dtsi so that all AT91SAM9G20 users set up
> the USB host controller clocks correctly.
> 
> Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
> ---
>  arch/arm/boot/dts/at91sam9g20.dtsi | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/at91sam9g20.dtsi b/arch/arm/boot/dts/at91sam9g20.dtsi
> index f593016..6c4488c 100644
> --- a/arch/arm/boot/dts/at91sam9g20.dtsi
> +++ b/arch/arm/boot/dts/at91sam9g20.dtsi
> @@ -62,6 +62,10 @@
>  					atmel,clk-output-range = <0 133000000>;
>  					atmel,clk-divisors = <1 2 4 6>;
>  				};
> +
> +				usb: usbck {
> +					atmel,clk-divisors = <4 2 0 0>;
> +				};

Actually, I had a look at the datasheet and it still says the divisors
are 1, 2 and 4. There are existing board using USB and those divisors.
Can someone at Atmel confirm?

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-03 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-26 17:43 [PATCH] at91sam9g20.dtsi: set correct USB clock divisors Andrey Yurovsky
2016-11-03 19:11 ` Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.