arm64: dts: meson-g12-common: Use the G12A UART compatible string
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 7 Mar 2023 22:26:51 +0000 (23:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:21:02 +0000 (17:21 +0100)
Switch meson-12-common.dtsi to use the Meson G12A specific UART
compatible string. This enables the "divide XTAL by 2" divider which
improves support for UART attached Bluetooth modules (for example
RTL8822CS) running at a baud rate of 1500000. Without dividing XTAL
(24MHz) by 2 a baud rate of 1500000 cannot be generated cleanly and the
resulting jitter breaks communication with the module.

Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230307222651.2106615-4-martin.blumenstingl@googlemail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi

index 123a56f..904bcd4 100644 (file)
                        };
 
                        uart_AO: serial@3000 {
-                               compatible = "amlogic,meson-gx-uart",
+                               compatible = "amlogic,meson-g12a-uart",
+                                            "amlogic,meson-gx-uart",
                                             "amlogic,meson-ao-uart";
                                reg = <0x0 0x3000 0x0 0x18>;
                                interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
                        };
 
                        uart_AO_B: serial@4000 {
-                               compatible = "amlogic,meson-gx-uart",
+                               compatible = "amlogic,meson-g12a-uart",
+                                            "amlogic,meson-gx-uart",
                                             "amlogic,meson-ao-uart";
                                reg = <0x0 0x4000 0x0 0x18>;
                                interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
                        };
 
                        uart_C: serial@22000 {
-                               compatible = "amlogic,meson-gx-uart";
+                               compatible = "amlogic,meson-g12a-uart",
+                                            "amlogic,meson-gx-uart";
                                reg = <0x0 0x22000 0x0 0x18>;
                                interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
                                clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
                        };
 
                        uart_B: serial@23000 {
-                               compatible = "amlogic,meson-gx-uart";
+                               compatible = "amlogic,meson-g12a-uart",
+                                            "amlogic,meson-gx-uart";
                                reg = <0x0 0x23000 0x0 0x18>;
                                interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
                                clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
                        };
 
                        uart_A: serial@24000 {
-                               compatible = "amlogic,meson-gx-uart";
+                               compatible = "amlogic,meson-g12a-uart",
+                                            "amlogic,meson-gx-uart";
                                reg = <0x0 0x24000 0x0 0x18>;
                                interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
                                clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;