]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: amlogic: meson-s4: add UART_A node
authorNick Xie <nick@khadas.com>
Sat, 28 Feb 2026 06:37:47 +0000 (14:37 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 21 Apr 2026 13:55:20 +0000 (15:55 +0200)
Add the UART_A node and its related pinctrl definitions to the
Meson S4 SoC dtsi.

The pinctrl groups are split into basic tx/rx and flow control (cts/rts)
to allow board-level flexibility.

This interface is typically used for Bluetooth communication on
boards like the Khadas VIM1S.

Signed-off-by: Nick Xie <nick@khadas.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://patch.msgid.link/20260228063750.701887-2-nick@khadas.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-s4.dtsi

index dfc0a30a6e61be4ece624a6e8f57f4817a4a6055..4a3e9ad82d2809379b9ed7feb546d69d3904b37a 100644 (file)
                                        };
                                };
 
+                               uart_a_pins: uart-a-pins {
+                                       mux {
+                                               groups = "uart_a_tx",
+                                                      "uart_a_rx";
+                                               function = "uart_a";
+                                       };
+                               };
+
+                               uart_a_cts_rts_pins: uart-a-cts-rts-pins {
+                                       mux {
+                                               groups = "uart_a_cts",
+                                                      "uart_a_rts";
+                                               function = "uart_a";
+                                       };
+                               };
+
                                i2c0_pins1: i2c0-pins1 {
                                        mux {
                                                groups = "i2c0_sda",
                        };
                };
 
+               uart_a: serial@fe078000 {
+                       compatible = "amlogic,meson-s4-uart",
+                                    "amlogic,meson-ao-uart";
+                       reg = <0x0 0xfe078000 0x0 0x18>;
+                       interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
+                       clocks = <&xtal>, <&clkc_periphs CLKID_UART_A>, <&xtal>;
+                       clock-names = "xtal", "pclk", "baud";
+                       status = "disabled";
+               };
+
                sdio: mmc@fe088000 {
                        compatible = "amlogic,meson-axg-mmc";
                        reg = <0x0 0xfe088000 0x0 0x800>;