Skip to contentSkip to conversation

Add basic node support for MediaTek MT8188 SoC

PATCH Superseded Jason-ch Chen 4 participants 9 messages Jul 11, 2023 – Jul 17, 2023

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add basic node support for MediaTek MT8188 SoC

From: jason-ch chen <[email protected]>

MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.

This patchset was tested on MT8188 evaluation board to shell.

Based on tag: next-20230710, linux-next/master

Changes in v2:
- Add MT8188 PMIC Wrapper compatible to binding document
- Fix reviewer's comments

jason-ch chen (4):
dt-bindings: arm: Add compatible for MediaTek MT8188
dt-bindings: arm: mediatek: Add mt8188 pericfg compatible
dt-bindings: soc: mediatek: pwrap: Add compatible for MT8188
arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile

 .../devicetree/bindings/arm/mediatek.yaml     |   4 +
 .../arm/mediatek/mediatek,pericfg.yaml        |   1 +
 .../bindings/soc/mediatek/mediatek,pwrap.yaml |   5 +
 arch/arm64/boot/dts/mediatek/Makefile         |   1 +
 arch/arm64/boot/dts/mediatek/mt8188-evb.dts   | 401 ++++++++
 arch/arm64/boot/dts/mediatek/mt8188.dtsi      | 951 ++++++++++++++++++
 6 files changed, 1363 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.dtsi
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/4 dt-bindings: arm: Add compatible for MediaTek MT8188

From: jason-ch chen <[email protected]>

This commit adds dt-binding documentation for the MediaTek MT8188 reference board.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
index ae12b1cab9fb..4f4910d7a1e9 100644
@@ -163,6 +163,10 @@ properties:
           - enum:
               - mediatek,mt8186-evb
           - const: mediatek,mt8186
+      - items:
+          - enum:
+              - mediatek,mt8188-evb
+          - const: mediatek,mt8188
       - items:
           - enum:
               - mediatek,mt8192-evb
Signature · 1 line
2.18.0
#2 lore raw

PATCH v2 2/4 dt-bindings: arm: mediatek: Add mt8188 pericfg compatible

In reply to Jason-ch Chen

From: jason-ch chen <[email protected]>

Add mt8188 pericfg compatible to binding document.

---
 .../devicetree/bindings/arm/mediatek/mediatek,pericfg.yaml       | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.yaml +1 -0
index 26158d0d72f3..33c94c491828 100644
@@ -28,6 +28,7 @@ properties:
               - mediatek,mt8173-pericfg
               - mediatek,mt8183-pericfg
               - mediatek,mt8186-pericfg
+              - mediatek,mt8188-pericfg
               - mediatek,mt8195-pericfg
               - mediatek,mt8516-pericfg
           - const: syscon
Signature · 1 line
2.18.0
#3 lore raw

PATCH v2 3/4 dt-bindings: soc: mediatek: pwrap: Add compatible for MT8188

In reply to Jason-ch Chen

From: jason-ch chen <[email protected]>

Add MT8188 PMIC Wrapper compatible to binding document.

---
 .../devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml     | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +5 -0
index a06ac2177444..c2f22e7dbcfb 100644
@@ -50,6 +50,11 @@ properties:
               - mediatek,mt8186-pwrap
               - mediatek,mt8195-pwrap
           - const: syscon
+      - items:
+          - enum:
+              - mediatek,mt8188-pwrap
+          - const: mediatek,mt8195-pwrap
+          - const: syscon
 
   reg:
     minItems: 1
Signature · 1 line
2.18.0
#4 lore raw

Re: [PATCH v2 3/4] dt-bindings: soc: mediatek: pwrap: Add compatible for MT8188

Quoted 14 lines · Jason-ch Chen

From: jason-ch chen <[email protected]>

Add MT8188 PMIC Wrapper compatible to binding document.

---
 .../devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml     | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +0 -0
index a06ac2177444..c2f22e7dbcfb 100644

Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml properties: · line 55

Quoted 6 lines
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +3 -0
@@ -50,6 +50,11 @@ properties:
               - mediatek,mt8186-pwrap
               - mediatek,mt8195-pwrap
           - const: syscon
+      - items:
+          - enum:
+              - mediatek,mt8188-pwrap

Why do you add duplicated entries? Test your DTS before sending patches.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH v2 3/4] dt-bindings: soc: mediatek: pwrap: Add compatible for MT8188

Hi Krzysztof,

Quoted 22 lines · Krzysztof Kozlowski

External email : Please do not click links or open attachments until you have verified the sender or the content.

Quoted 7 lines · Jason-ch Chen

From: jason-ch chen <[email protected]>

Add MT8188 PMIC Wrapper compatible to binding document.

---
 .../devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml     | 5

+++++

Quoted 3 lines
 1 file changed, 5 insertions(+)

diff --git

a/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml

Quoted 2 lines

index a06ac2177444..c2f22e7dbcfb 100644
---

a/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml

Quoted 1 line

+++

b/Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml

Quoted 10 lines

Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml properties: · line 55

Quoted 7 lines
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +3 -0
@@ -50,6 +50,11 @@ properties:
               - mediatek,mt8186-pwrap
               - mediatek,mt8195-pwrap
           - const: syscon
+      - items:
+          - enum:
+              - mediatek,mt8188-pwrap

Why do you add duplicated entries? Test your DTS before sending patches.

In the next patch, I will remove the duplicated part. Thank you.

Quoted 5 lines

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Acked-by on v2 3/4
#6 lore raw

Re: [PATCH v2 3/4] dt-bindings: soc: mediatek: pwrap: Add compatible for MT8188

In reply to Jason-ch Chen
Quoted 5 lines · Jason-ch Chen

From: jason-ch chen <[email protected]>

Add MT8188 PMIC Wrapper compatible to binding document.

Cheers,
Conor.

Quoted 23 lines
---
 .../devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml     | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml +5 -0
index a06ac2177444..c2f22e7dbcfb 100644
@@ -50,6 +50,11 @@ properties:
               - mediatek,mt8186-pwrap
               - mediatek,mt8195-pwrap
           - const: syscon
+      - items:
+          - enum:
+              - mediatek,mt8188-pwrap
+          - const: mediatek,mt8195-pwrap
+          - const: syscon
 
   reg:
     minItems: 1
Signature · 1 line
2.18.0
#7 lore raw

PATCH v2 4/4 arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile

In reply to Jason-ch Chen

From: jason-ch chen <[email protected]>

MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.

We add basic chip support for MediaTek MT8188 on evaluation board.

---
 arch/arm64/boot/dts/mediatek/Makefile       |   1 +
 arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 401 +++++++++
 arch/arm64/boot/dts/mediatek/mt8188.dtsi    | 951 ++++++++++++++++++++
 3 files changed, 1353 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c99c3372a4b5..9bd2324259a3 100644
@@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +401 -0

401 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8188.dtsi new file +951 -0

951 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer Reviewed-by on v2 4/4
#8 lore raw

Re: [PATCH v2 4/4] arm64: dts: Add MediaTek MT8188 dts and evaluation board and Makefile

Il 11/07/23 04:39, Jason-ch Chen ha scritto:

Quoted 43 lines

From: jason-ch chen <[email protected]>

MT8188 is a SoC based on 64bit ARMv8 architecture. It contains 6 CA55 and 2 CA78 cores. MT8188 share many HW IP with MT65xx series.

We add basic chip support for MediaTek MT8188 on evaluation board.

---
  arch/arm64/boot/dts/mediatek/Makefile       |   1 +
  arch/arm64/boot/dts/mediatek/mt8188-evb.dts | 401 +++++++++
  arch/arm64/boot/dts/mediatek/mt8188.dtsi    | 951 ++++++++++++++++++++
  3 files changed, 1353 insertions(+)

create mode 100644 arch/arm64/boot/dts/mediatek/mt8188-evb.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8188.dtsi

arch/arm64/boot/dts/mediatek/Makefile +1 -0
index c99c3372a4b5..9bd2324259a3 100644
@@ -44,6 +44,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-evb.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +9 -0
new file mode 100644
index 000000000000..6c1e829f7df6
@@ -0,0 +1,401 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 MediaTek Inc.
+ */
+/dts-v1/;
+#include "mt8188.dtsi"
+#include "mt6359.dtsi"
+
+/ {

..snip..

arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 374

Quoted 3 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +3 -0
+
+&u3phy0 {
+	status="okay";

You missed the spaces around '=' here.

	status = "okay";

arch/arm64/boot/dts/mediatek/mt8188-evb.dts line 384

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt8188-evb.dts new file +10 -0
+};
+
+&u3phy1 {
+	status="okay";
+};
+
+&u3phy2 {
+	status="okay";
+};
+

After fixing that,