]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: mediatek: mt7981: add UART controllers
authorRafał Miłecki <rafal@milecki.pl>
Sat, 27 Jul 2024 12:14:47 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2024 10:34:37 +0000 (12:34 +0200)
MT7981 has three on-SoC UART controllers.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240727121447.1016-2-zajec5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/mediatek/mt7981b.dtsi

index 64aeeb24efac872e45e6721ccd0ad9ac1de57cd4..91a8d44d7aa9510343d687b2c94506c308cc93cf 100644 (file)
                        #pwm-cells = <2>;
                };
 
+               serial@11002000 {
+                       compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
+                       reg = <0 0x11002000 0 0x100>;
+                       interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uart", "wakeup";
+                       clocks = <&infracfg CLK_INFRA_UART0_SEL>,
+                                <&infracfg CLK_INFRA_UART0_CK>;
+                       clock-names = "baud", "bus";
+                       status = "disabled";
+               };
+
+               serial@11003000 {
+                       compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
+                       reg = <0 0x11003000 0 0x100>;
+                       interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uart", "wakeup";
+                       clocks = <&infracfg CLK_INFRA_UART1_SEL>,
+                                <&infracfg CLK_INFRA_UART1_CK>;
+                       clock-names = "baud", "bus";
+                       status = "disabled";
+               };
+
+               serial@11004000 {
+                       compatible = "mediatek,mt7981-uart", "mediatek,mt6577-uart";
+                       reg = <0 0x11004000 0 0x100>;
+                       interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "uart", "wakeup";
+                       clocks = <&infracfg CLK_INFRA_UART2_SEL>,
+                                <&infracfg CLK_INFRA_UART2_CK>;
+                       clock-names = "baud", "bus";
+                       status = "disabled";
+               };
+
                i2c@11007000 {
                        compatible = "mediatek,mt7981-i2c";
                        reg = <0 0x11007000 0 0x1000>,