Skip to contentSkip to conversation

ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron

PATCH In review Matthias Kaehlcke 3 participants 3 messages Apr 10, 2019 – Apr 11, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: rockchip: Remove unnecessary setting of UART0 SCLK rate on veyron

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.

---
 arch/arm/boot/dts/rk3288-veyron.dtsi | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/rk3288-veyron.dtsi +0 -4
index 0bc2409f6903..97e980383e25 100644
@@ -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>;
Signature · 1 line
2.21.0.392.gf8f6787159e-goog
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 8 lines · 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).

Quoted 6 lines

Remove the unnecessary clock rate configuration from the DT.

---
 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.

maintainer
#2 lore raw
In reply to Matthias Kaehlcke

Am Mittwoch, 10. April 2019, 20:30:10 CEST schrieb Matthias Kaehlcke:

Quoted 10 lines

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.

applied for 5.2 with Doug's RB.

Thanks
Heiko