* [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988
@ 2024-06-05 8:54 Rafał Miłecki
2024-06-05 8:54 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Rafał Miłecki
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Rafał Miłecki @ 2024-06-05 8:54 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Greg Kroah-Hartman,
Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-serial, devicetree, linux-arm-kernel, linux-mediatek,
Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
Add compatible string for serial on MT7988 SoC.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
index 303d02ca4e1b..ff61ffdcad1d 100644
--- a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
+++ b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
@@ -37,6 +37,7 @@ properties:
- mediatek,mt7623-uart
- mediatek,mt7629-uart
- mediatek,mt7986-uart
+ - mediatek,mt7988-uart
- mediatek,mt8127-uart
- mediatek,mt8135-uart
- mediatek,mt8173-uart
--
2.35.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers
2024-06-05 8:54 [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 Rafał Miłecki
@ 2024-06-05 8:54 ` Rafał Miłecki
2024-06-05 11:28 ` AngeloGioacchino Del Regno
2024-06-05 11:28 ` [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 AngeloGioacchino Del Regno
2024-06-05 17:01 ` Conor Dooley
2 siblings, 1 reply; 5+ messages in thread
From: Rafał Miłecki @ 2024-06-05 8:54 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Matthias Brugger, Greg Kroah-Hartman,
Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-serial, devicetree, linux-arm-kernel, linux-mediatek,
Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
MT7988 has three on-SoC UART controllers that support M16C450 and
M16550A modes.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 35 ++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
index aa728331e876..7690a83911af 100644
--- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi
@@ -86,7 +86,7 @@ infracfg: clock-controller@10001000 {
#clock-cells = <1>;
};
- clock-controller@1001b000 {
+ topckgen: clock-controller@1001b000 {
compatible = "mediatek,mt7988-topckgen", "syscon";
reg = <0 0x1001b000 0 0x1000>;
#clock-cells = <1>;
@@ -124,6 +124,39 @@ pwm@10048000 {
status = "disabled";
};
+ serial@11000000 {
+ compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart";
+ reg = <0 0x11000000 0 0x100>;
+ interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uart", "wakeup";
+ clocks = <&topckgen CLK_TOP_UART_SEL>,
+ <&infracfg CLK_INFRA_52M_UART0_CK>;
+ clock-names = "baud", "bus";
+ status = "disabled";
+ };
+
+ serial@11000100 {
+ compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart";
+ reg = <0 0x11000100 0 0x100>;
+ interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uart", "wakeup";
+ clocks = <&topckgen CLK_TOP_UART_SEL>,
+ <&infracfg CLK_INFRA_52M_UART1_CK>;
+ clock-names = "baud", "bus";
+ status = "disabled";
+ };
+
+ serial@11000200 {
+ compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart";
+ reg = <0 0x11000200 0 0x100>;
+ interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uart", "wakeup";
+ clocks = <&topckgen CLK_TOP_UART_SEL>,
+ <&infracfg CLK_INFRA_52M_UART2_CK>;
+ clock-names = "baud", "bus";
+ status = "disabled";
+ };
+
i2c@11003000 {
compatible = "mediatek,mt7981-i2c";
reg = <0 0x11003000 0 0x1000>,
--
2.35.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988
2024-06-05 8:54 [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 Rafał Miłecki
2024-06-05 8:54 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Rafał Miłecki
@ 2024-06-05 11:28 ` AngeloGioacchino Del Regno
2024-06-05 17:01 ` Conor Dooley
2 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-06-05 11:28 UTC (permalink / raw)
To: Rafał Miłecki, Matthias Brugger, Greg Kroah-Hartman,
Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-serial, devicetree, linux-arm-kernel, linux-mediatek,
Rafał Miłecki
Il 05/06/24 10:54, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> Add compatible string for serial on MT7988 SoC.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers
2024-06-05 8:54 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Rafał Miłecki
@ 2024-06-05 11:28 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-06-05 11:28 UTC (permalink / raw)
To: Rafał Miłecki, Matthias Brugger, Greg Kroah-Hartman,
Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-serial, devicetree, linux-arm-kernel, linux-mediatek,
Rafał Miłecki
Il 05/06/24 10:54, Rafał Miłecki ha scritto:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> MT7988 has three on-SoC UART controllers that support M16C450 and
> M16550A modes.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988
2024-06-05 8:54 [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 Rafał Miłecki
2024-06-05 8:54 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Rafał Miłecki
2024-06-05 11:28 ` [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 AngeloGioacchino Del Regno
@ 2024-06-05 17:01 ` Conor Dooley
2 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2024-06-05 17:01 UTC (permalink / raw)
To: Rafał Miłecki
Cc: AngeloGioacchino Del Regno, Matthias Brugger, Greg Kroah-Hartman,
Jiri Slaby, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-serial, devicetree, linux-arm-kernel, linux-mediatek,
Rafał Miłecki
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
On Wed, Jun 05, 2024 at 10:54:32AM +0200, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> Add compatible string for serial on MT7988 SoC.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-05 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05 8:54 [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 Rafał Miłecki
2024-06-05 8:54 ` [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Rafał Miłecki
2024-06-05 11:28 ` AngeloGioacchino Del Regno
2024-06-05 11:28 ` [PATCH 1/2] dt-bindings: serial: mediatek,uart: add MT7988 AngeloGioacchino Del Regno
2024-06-05 17:01 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).