arm64: dts: ti: k3-am64: Remove UART baud rate selection
authorAndrew Davis <afd@ti.com>
Tue, 26 Mar 2024 18:54:37 +0000 (13:54 -0500)
committerNishanth Menon <nm@ti.com>
Wed, 10 Apr 2024 00:29:15 +0000 (19:29 -0500)
As described in the binding document for the "current-speed" property:

"This should only be present in case a driver has no chance to know the
baud rate of the slave device."

This is not the case for the UART used in K3 devices, the current
baud-rate can be calculated from the registers. Having this property
has the effect of actually skipping the baud-rate setup in some drivers
as it assumes it will already be set to this rate, which may not always
be the case.

It seems this property's purpose was mistaken as selecting the desired
baud-rate, which it does not. It would have been wrong to select that
here anyway as DT is not the place for configuration, especially when
there are already more standard ways to set serial baud-rates.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240326185441.29656-2-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 53fe1d065ddbbe2fb616d50d5f75685b0b66578f..e20e4ffd0f1faee877aa1f76b4df0f31a24f1797 100644 (file)
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
-       current-speed = <115200>;
 };
 
 /* main_uart1 is reserved for firmware usage */
index 8237b8c815b84a86874afaf8bd881889936fac5d..dc774f9c75417158dfd417e1d286ee77bce5751b 100644 (file)
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
-       current-speed = <115200>;
 };
 
 &main_uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart1_pins_default>;
        uart-has-rtscts;
-       current-speed = <115200>;
 };
 
 &sdhci1 {
index 67cd41bf806eab21e2d6d1d452686ecf60de573a..5b028b3a3192f2890720b12fbba81f481206573c 100644 (file)
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
-       current-speed = <115200>;
 };
 
 &main_uart1 {