arm64: dts: apple: t8103: Add UART2
authorHector Martin <marcan@marcan.st>
Sun, 19 Sep 2021 17:28:20 +0000 (02:28 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 7 Dec 2021 04:41:32 +0000 (13:41 +0900)
This UART is connected to the debug port of the WLAN module. It is
mostly useless, but makes for a good test case for runtime-pm without
having to unbind the console from the main system UART.

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Hector Martin <marcan@marcan.st>
arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
arch/arm64/boot/dts/apple/t8103.dtsi

index 876278f..e11d5de 100644 (file)
@@ -12,6 +12,7 @@
 / {
        aliases {
                serial0 = &serial0;
+               serial2 = &serial2;
        };
 
        chosen {
        status = "okay";
 };
 
+&serial2 {
+       status = "okay";
+};
+
 &i2c0 {
        hpm0: usb-pd@38 {
                compatible = "apple,cd321x";
index 1055a38..15ee8c8 100644 (file)
                        status = "disabled";
                };
 
+               serial2: serial@235208000 {
+                       compatible = "apple,s5l-uart";
+                       reg = <0x2 0x35208000 0x0 0x1000>;
+                       reg-io-width = <4>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 607 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk24>, <&clk24>;
+                       clock-names = "uart", "clk_uart_baud0";
+                       power-domains = <&ps_uart2>;
+                       status = "disabled";
+               };
+
                aic: interrupt-controller@23b100000 {
                        compatible = "apple,t8103-aic", "apple,aic";
                        #interrupt-cells = <3>;