* [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron
@ 2019-04-10 18:30 Matthias Kaehlcke
2019-04-10 23:53 ` Doug Anderson
2019-04-11 11:36 ` Heiko Stuebner
0 siblings, 2 replies; 3+ messages in thread
From: Matthias Kaehlcke @ 2019-04-10 18:30 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Mark Rutland
Cc: devicetree, Douglas Anderson, linux-kernel, linux-rockchip,
Matthias Kaehlcke, linux-arm-kernel
Some veyron devices have a Bluetooth controller connected on UART0.
The UART needs to operate at a high speed, however setting the clock
rate at initialization has no practical effect. During initialization
user space adjusts the UART baudrate multiple times, which ends up
changing the SCLK rate. After a successful initiatalization the clk
is running at the desired speed (48MHz).
Remove the unnecessary clock rate configuration from the DT.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
arch/arm/boot/dts/rk3288-veyron.dtsi | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi
index 0bc2409f6903..97e980383e25 100644
--- a/arch/arm/boot/dts/rk3288-veyron.dtsi
+++ b/arch/arm/boot/dts/rk3288-veyron.dtsi
@@ -378,10 +378,6 @@
&uart0 {
status = "okay";
- /* We need to go faster than 24MHz, so adjust clock parents / rates */
- assigned-clocks = <&cru SCLK_UART0>;
- assigned-clock-rates = <48000000>;
-
/* Pins don't include flow control by default; add that in */
pinctrl-names = "default";
pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
--
2.21.0.392.gf8f6787159e-goog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron
2019-04-10 18:30 [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron Matthias Kaehlcke
@ 2019-04-10 23:53 ` Doug Anderson
2019-04-11 11:36 ` Heiko Stuebner
1 sibling, 0 replies; 3+ messages in thread
From: Doug Anderson @ 2019-04-10 23:53 UTC (permalink / raw)
To: Matthias Kaehlcke
Cc: Mark Rutland, devicetree, Heiko Stuebner, LKML, Douglas Anderson,
open list:ARM/Rockchip SoC..., Rob Herring, Linux ARM
Hi,
On Wed, Apr 10, 2019 at 11:30 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Some veyron devices have a Bluetooth controller connected on UART0.
> The UART needs to operate at a high speed, however setting the clock
> rate at initialization has no practical effect. During initialization
> user space adjusts the UART baudrate multiple times, which ends up
> changing the SCLK rate. After a successful initiatalization the clk
> is running at the desired speed (48MHz).
>
> Remove the unnecessary clock rate configuration from the DT.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> arch/arm/boot/dts/rk3288-veyron.dtsi | 4 ----
> 1 file changed, 4 deletions(-)
Nice. Looks like this hasn't been needed for a while. Back in 3.14
when I first added this it was important because "8250_dw.c" didn't
have a clk_set_rate() in it, but seems like it's been there forever
now.
Reviewed-by: Douglas Anderson <dianders@chromium.org>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron
2019-04-10 18:30 [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron Matthias Kaehlcke
2019-04-10 23:53 ` Doug Anderson
@ 2019-04-11 11:36 ` Heiko Stuebner
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2019-04-11 11:36 UTC (permalink / raw)
To: Matthias Kaehlcke
Cc: Mark Rutland, devicetree, linux-kernel, Douglas Anderson,
linux-rockchip, Rob Herring, linux-arm-kernel
Am Mittwoch, 10. April 2019, 20:30:10 CEST schrieb Matthias Kaehlcke:
> Some veyron devices have a Bluetooth controller connected on UART0.
> The UART needs to operate at a high speed, however setting the clock
> rate at initialization has no practical effect. During initialization
> user space adjusts the UART baudrate multiple times, which ends up
> changing the SCLK rate. After a successful initiatalization the clk
> is running at the desired speed (48MHz).
>
> Remove the unnecessary clock rate configuration from the DT.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
applied for 5.2 with Doug's RB.
Thanks
Heiko
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-11 11:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-10 18:30 [PATCH] ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron Matthias Kaehlcke
2019-04-10 23:53 ` Doug Anderson
2019-04-11 11:36 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).