Skip to contentSkip to conversation

Add mt8189 dts evaluation board and Makefile

PATCH Applied Jack Hsu 7 participants 32 messages Oct 30, 2025 – Nov 6, 2025

Subsystems (10)

v6 of 7 Applied Latest is v7 →

lore
Share & tools
lore

Jack Hsu

author
#0 lore raw

v6 cover Add mt8189 dts evaluation board and Makefile

In this patch series,
we add Mediatek MT8189 evaluation board dts, dtsi and Makefile, and also related dt-binding documents.

based on tag: next-20251029

Note:
This patch series depends on following dt-binding headers and yamls 1.dt-binding headers
1. mt8189-pinfunc.h

       https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  2. mt8189_gce.h 
       https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ 

2.dt-binding yamls
1. smi-common.yaml, smi-larb.yaml

        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  2. mediatek,gce-mailbox.yaml
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  3. mediatek,ufs.yaml
        https://patchwork.kernel.org/project/linux-scsi/patch/[email protected]/
  4. mediatek,iommu.yaml  
        https://lore.kernel.org/linux-mediatek/[email protected]/
  5. gce-mailbox.yaml
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  6. disp_isp yamls
        https://lore.kernel.org/linux-mediatek/[email protected]/
  7. jpeg yaml
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/  
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/   
  8. vcodec yaml
        https://lore.kernel.org/linux-mediatek/[email protected]/      
        https://lore.kernel.org/linux-mediatek/[email protected]/ 
  9. mtk-sd.yaml
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/   
  10. mtk,scp.yaml
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  11. pwrap/spmi yaml  
        https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  12. mt8189-nau8825.yaml
        https://lore.kernel.org/linux-mediatek/[email protected]/
  13. mt8189-afe-pcm.yaml           
        https://lore.kernel.org/linux-mediatek/[email protected]/
  14. mediatek,ufs.yaml
        https://patchwork.kernel.org/project/linux-scsi/patch/[email protected]/

---
Changs in v6:
- add/fix dt-bindings for mt8189 dts node
- add pmic mt63xx dtsi for mt8189 evb board
- add complete device node of mt8189 evb board
- Fix previous version review comments
- Link to v5: https://patchwork.kernel.org/project/linux-mediatek/cover/[email protected]/

Changs in v5:
- remove unused cpu-dile-state definition.
- change memory size in "reg" property which if filled in by bootloader.

Changs in v4:
- Correct cpu-idle-states.
- Change the "reg" property name of the "memory" node in the device tree source (DTS) to lowercase.

Changs in v3:
- Move ulposc and ulposc3 before cpu nodes.
- Refactor cpu-map to a single cluster0.
- Change cpu nodes name from medium core to big core.
- Move psci before timer nodes.

Changs in v2:
- Fix warning issues for make CHECK_DTBS=y.
- Add mediatek,uart.yaml document.

---

Jack Hsu (11):
dt-bindings: arm: Add compatible for MediaTek MT8189
dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc
dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse
dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm
dt-bindings: serial: Support MediaTek MT8189 evb board uart
dt-bindings: timer: Support MediaTek MT8189 evb board timer
dt-bindings: usb: Support MediaTek MT8189 evb board xhci
dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt
arm64: dts: mediatek: Add MT6319 PMIC Support
arm64: dts: mediatek: add properties for MT6359
arm64: dts: mediatek: Add mt8189 evaluation board dts

 .../devicetree/bindings/arm/mediatek.yaml     |    4 +
 .../iio/adc/mediatek,mt2701-auxadc.yaml       |    1 +
 .../bindings/nvmem/mediatek,efuse.yaml        |    1 +
 .../bindings/pwm/mediatek,pwm-disp.yaml       |    1 +
 .../bindings/serial/mediatek,uart.yaml        |    1 +
 .../bindings/timer/mediatek,timer.yaml        |    1 +
 .../bindings/usb/mediatek,mtk-xhci.yaml       |    7 +-
 .../bindings/watchdog/mediatek,mtk-wdt.yaml   |    1 +
 arch/arm64/boot/dts/mediatek/Makefile         |    1 +
 arch/arm64/boot/dts/mediatek/mt6319.dtsi      |   66 +
 arch/arm64/boot/dts/mediatek/mt6359.dtsi      |   20 +
 arch/arm64/boot/dts/mediatek/mt8189-evb.dts   | 1082 ++++++
 arch/arm64/boot/dts/mediatek/mt8189.dtsi      | 3014 +++++++++++++++++
 include/dt-bindings/iio/mt635x-auxadc.h       |   50 +
 14 files changed, 4249 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt6319.dtsi
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8189-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8189.dtsi
 create mode 100644 include/dt-bindings/iio/mt635x-auxadc.h
Signature · 1 line
2.45.2
author
#1 lore raw

PATCH v6 1/11 dt-bindings: arm: Add compatible for MediaTek MT8189

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

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
index 7401c7cfd3ca..5fb30da8762e 100644
@@ -383,6 +383,10 @@ properties:
           - enum:
               - mediatek,mt8188-evb
           - const: mediatek,mt8188
+      - items:
+          - enum:
+              - mediatek,mt8189-evb
+          - const: mediatek,mt8189
       - description: Google Hayato
         items:
           - const: google,hayato-rev1
Signature · 1 line
2.45.2
author
#3 lore raw

PATCH v6 2/11 dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc

In reply to Jack Hsu

add compatible string for mt8189 evb board dts node of auxadc

---
 .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml      | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml +1 -0
index 14363389f30a..d9e825e5054f 100644
@@ -42,6 +42,7 @@ properties:
               - mediatek,mt8183-auxadc
               - mediatek,mt8186-auxadc
               - mediatek,mt8188-auxadc
+              - mediatek,mt8189-auxadc
               - mediatek,mt8195-auxadc
               - mediatek,mt8516-auxadc
           - const: mediatek,mt8173-auxadc
Signature · 1 line
2.45.2
author
#6 lore raw

PATCH v6 3/11 dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse

In reply to Jack Hsu

add compatible string for mt8189 evb board dts node of efuse

---
 Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml +1 -0
index 4dc0d42df3e6..9d52caaf3e5c 100644
@@ -48,6 +48,7 @@ properties:
               - mediatek,mt7988-efuse
               - mediatek,mt8173-efuse
               - mediatek,mt8183-efuse
+              - mediatek,mt8189-efuse
               - mediatek,mt8192-efuse
               - mediatek,mt8195-efuse
               - mediatek,mt8516-efuse
Signature · 1 line
2.45.2
author
#8 lore raw

PATCH v6 4/11 dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm

In reply to Jack Hsu

add compatible string for mt8189 evb board dts node of disp-pwm

---
 Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +1 -0
index 68ef30414325..22712769518b 100644
@@ -30,6 +30,7 @@ properties:
               - mediatek,mt6893-disp-pwm
               - mediatek,mt8186-disp-pwm
               - mediatek,mt8188-disp-pwm
+              - mediatek,mt8189-disp-pwm
               - mediatek,mt8192-disp-pwm
               - mediatek,mt8195-disp-pwm
               - mediatek,mt8365-disp-pwm
Signature · 1 line
2.45.2
Acked-by on v6 4/11
#10 lore raw

Re: [PATCH v6 04/11] dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm

In reply to Jack Hsu
Quoted 2 lines · Jack Hsu

add compatible string for mt8189 evb board dts node of disp-pwm

This commit message isn't accurate, and that makes me wonder if the others are. This has nothing to do with the "evb board", this compatible is for the mt8189, on whatever board it happens to be on. Please drop all mention of the evb board from commit messages.
With it gone,

pw-bot: changes-requested

Quoted 20 lines
---
 Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +1 -0
index 68ef30414325..22712769518b 100644
@@ -30,6 +30,7 @@ properties:
               - mediatek,mt6893-disp-pwm
               - mediatek,mt8186-disp-pwm
               - mediatek,mt8188-disp-pwm
+              - mediatek,mt8189-disp-pwm
               - mediatek,mt8192-disp-pwm
               - mediatek,mt8195-disp-pwm
               - mediatek,mt8365-disp-pwm
Signature · 1 line
2.45.2
author
#11 lore raw

PATCH v6 5/11 dt-bindings: serial: Support MediaTek MT8189 evb board uart

In reply to Jack Hsu

add compatible string for mt8189 evb board dts node of uart

---
 Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/serial/mediatek,uart.yaml +1 -0
index 5bd8a8853ae0..3f0f4aea0a4c 100644
@@ -47,6 +47,7 @@ properties:
               - mediatek,mt8183-uart
               - mediatek,mt8186-uart
               - mediatek,mt8188-uart
+              - mediatek,mt8189-uart
               - mediatek,mt8192-uart
               - mediatek,mt8195-uart
               - mediatek,mt8365-uart
Signature · 1 line
2.45.2
author
#12 lore raw

PATCH v6 6/11 dt-bindings: timer: Support MediaTek MT8189 evb board timer

In reply to Jack Hsu

add compatible string for mt8189 evb board dts node of timer

---
 Documentation/devicetree/bindings/timer/mediatek,timer.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/mediatek,timer.yaml +1 -0
index 337580dc77d8..8e705fe58dc5 100644
@@ -44,6 +44,7 @@ properties:
               - mediatek,mt8183-timer
               - mediatek,mt8186-timer
               - mediatek,mt8188-timer
+              - mediatek,mt8189-timer
               - mediatek,mt8192-timer
               - mediatek,mt8195-timer
               - mediatek,mt8196-timer
Signature · 1 line
2.45.2
author
#14 lore raw

PATCH v6 7/11 dt-bindings: usb: Support MediaTek MT8189 evb board xhci

In reply to Jack Hsu

modify dt-binding for support mt8189 evb board dts node of xhci

---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +6 -1
index 004d3ebec091..05cb6a219e5c 100644
@@ -34,6 +34,7 @@ properties:
           - mediatek,mt8183-xhci
           - mediatek,mt8186-xhci
           - mediatek,mt8188-xhci
+          - mediatek,mt8189-xhci
           - mediatek,mt8192-xhci
           - mediatek,mt8195-xhci
           - mediatek,mt8365-xhci
@@ -119,6 +120,9 @@ properties:
   resets:
     maxItems: 1
 
+  reset-names:
+    maxItems: 1
+
   usb3-lpm-capable: true
 
   usb2-lpm-disable: true
@@ -168,7 +172,8 @@ properties:
             104 - used by mt8195, IP1, specific 1.04;
             105 - used by mt8195, IP2, specific 1.05;
             106 - used by mt8195, IP3, specific 1.06;
-          enum: [1, 2, 101, 102, 103, 104, 105, 106]
+            110 - used by mt8189, IP4, specific 1.10;
+          enum: [1, 2, 101, 102, 103, 104, 105, 106, 110]
 
   mediatek,u3p-dis-msk:
     $ref: /schemas/types.yaml#/definitions/uint32
Signature · 1 line
2.45.2
#15 lore raw

Re: [PATCH v6 07/11] dt-bindings: usb: Support MediaTek MT8189 evb board xhci

Quoted 20 lines · Jack Hsu

modify dt-binding for support mt8189 evb board dts node of xhci

---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +1 -0
index 004d3ebec091..05cb6a219e5c 100644
@@ -34,6 +34,7 @@ properties:
           - mediatek,mt8183-xhci
           - mediatek,mt8186-xhci
           - mediatek,mt8188-xhci
+          - mediatek,mt8189-xhci
           - mediatek,mt8192-xhci
           - mediatek,mt8195-xhci
           - mediatek,mt8365-xhci

Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml properties: · line 124

Quoted 5 lines
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +2 -0
@@ -119,6 +120,9 @@ properties:
   resets:
     maxItems: 1
 
+  reset-names:
+    maxItems: 1

Is this reset required on mt8189? Does it appear on other mediatek xhci controllers?

Quoted 17 lines
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +3 -1
+
   usb3-lpm-capable: true
 
   usb2-lpm-disable: true
@@ -168,7 +172,8 @@ properties:
             104 - used by mt8195, IP1, specific 1.04;
             105 - used by mt8195, IP2, specific 1.05;
             106 - used by mt8195, IP3, specific 1.06;
-          enum: [1, 2, 101, 102, 103, 104, 105, 106]
+            110 - used by mt8189, IP4, specific 1.10;
+          enum: [1, 2, 101, 102, 103, 104, 105, 106, 110]
 
   mediatek,u3p-dis-msk:
     $ref: /schemas/types.yaml#/definitions/uint32
Signature · 1 line
2.45.2
#16 lore raw

Re: [PATCH v6 07/11] dt-bindings: usb: Support MediaTek MT8189 evb board xhci

Quoted 24 lines · Conor Dooley
Quoted 23 lines · Jack Hsu

modify dt-binding for support mt8189 evb board dts node of xhci

---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +1 -0
index 004d3ebec091..05cb6a219e5c 100644
@@ -34,6 +34,7 @@ properties:
           - mediatek,mt8183-xhci
           - mediatek,mt8186-xhci
           - mediatek,mt8188-xhci
+          - mediatek,mt8189-xhci
           - mediatek,mt8192-xhci
           - mediatek,mt8195-xhci
           - mediatek,mt8365-xhci
@@ -119,6 +120,9 @@ properties:
   resets:
     maxItems: 1
 
Quoted 5 lines

Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml properties: · line 124

Quoted 2 lines
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +2 -0
+  reset-names:
+    maxItems: 1

Is this reset required on mt8189? Does it appear on other mediatek xhci controllers?

reset was there, it is the name added for some unknown reason.

Best regards,
Krzysztof

#17 lore raw

Re: [PATCH v6 07/11] dt-bindings: usb: Support MediaTek MT8189 evb board xhci

Quoted 25 lines · Krzysztof Kozlowski
Quoted 24 lines · Conor Dooley
Quoted 23 lines · Jack Hsu

modify dt-binding for support mt8189 evb board dts node of xhci

---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +1 -0
index 004d3ebec091..05cb6a219e5c 100644
@@ -34,6 +34,7 @@ properties:
           - mediatek,mt8183-xhci
           - mediatek,mt8186-xhci
           - mediatek,mt8188-xhci
+          - mediatek,mt8189-xhci
           - mediatek,mt8192-xhci
           - mediatek,mt8195-xhci
           - mediatek,mt8365-xhci
@@ -119,6 +120,9 @@ properties:
   resets:
     maxItems: 1
 
Quoted 7 lines
Quoted 5 lines

Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml properties: · line 124

Quoted 2 lines
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +2 -0
+  reset-names:
+    maxItems: 1

Is this reset required on mt8189? Does it appear on other mediatek xhci controllers?

reset was there, it is the name added for some unknown reason.

Ah, so not helpful at all since no name is defined and therefore making the property unusable :)

#18 lore raw

Re: [PATCH v6 07/11] dt-bindings: usb: Support MediaTek MT8189 evb board xhci

In reply to Jack Hsu
Quoted 20 lines · Jack Hsu

modify dt-binding for support mt8189 evb board dts node of xhci

---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +1 -0
index 004d3ebec091..05cb6a219e5c 100644
@@ -34,6 +34,7 @@ properties:
           - mediatek,mt8183-xhci
           - mediatek,mt8186-xhci
           - mediatek,mt8188-xhci
+          - mediatek,mt8189-xhci
           - mediatek,mt8192-xhci
           - mediatek,mt8195-xhci
           - mediatek,mt8365-xhci

Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml properties: · line 124

Quoted 5 lines
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +2 -0
@@ -119,6 +120,9 @@ properties:
   resets:
     maxItems: 1
 
+  reset-names:
+    maxItems: 1

No, drop. Not needed, not related, not explained in the commit msg,

Best regards,
Krzysztof

author
#19 lore raw

PATCH v6 8/11 dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt

In reply to Jack Hsu

modify dt-binding for support mt8189 evb board dts node of wdt

---
 Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +1 -0
index ba0bfd73ab62..a05f8155b738 100644
@@ -41,6 +41,7 @@ properties:
               - mediatek,mt7623-wdt
               - mediatek,mt7629-wdt
               - mediatek,mt8173-wdt
+              - mediatek,mt8188-wdt
               - mediatek,mt8365-wdt
               - mediatek,mt8516-wdt
           - const: mediatek,mt6589-wdt
Signature · 1 line
2.45.2
author
#22 lore raw

PATCH v6 9/11 arm64: dts: mediatek: Add MT6319 PMIC Support

In reply to Jack Hsu

Add support for MediaTek MT6319 PMIC IC

---
 arch/arm64/boot/dts/mediatek/mt6319.dtsi | 66 ++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt6319.dtsi
arch/arm64/boot/dts/mediatek/mt6319.dtsi new file +66 -0
new file mode 100644
index 000000000000..8b2386547508
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (c) 2025 MediaTek Inc.
+ */
+#include <dt-bindings/spmi/spmi.h>
+
+&spmi {
+	mt6319_7: mt6319@7 {
+		compatible = "mediatek,mt6315-regulator";
+		buck1-modeset-mask = <0x3>;
+		reg = <0x7 SPMI_USID>;
+
+		regulators {
+			mt6319_7_vbuck1: vbuck1 {
+				regulator-name = "vbuck1";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_7_vbuck2: vbuck2 {
+				regulator-name = "vbuck2";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_7_vbuck3: vbuck3 {
+				regulator-name = "vbuck3";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_7_vbuck4: vbuck4 {
+				regulator-name = "vbuck4";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+		};
+	};
+
+	mt6319_8: mt6319@8 {
+		compatible = "mediatek,mt6315-regulator";
+		buck1-modeset-mask = <0xb>;
+		reg = <0x8 SPMI_USID>;
+
+		regulators {
+			mt6319_8_vbuck1: vbuck1 {
+				regulator-name = "vbuck1";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_8_vbuck2: vbuck2 {
+				regulator-name = "vbuck2";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_8_vbuck3: vbuck3 {
+				regulator-name = "vbuck3";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+			mt6319_8_vbuck4: vbuck4 {
+				regulator-name = "vbuck4";
+				regulator-allowed-modes = <0 1 2>;
+				regulator-always-on;
+			};
+		};
+	};
+};
+
Signature · 1 line
2.45.2
#23 lore raw

Re: [PATCH v6 09/11] arm64: dts: mediatek: Add MT6319 PMIC Support

Quoted 14 lines · Jack Hsu

Add support for MediaTek MT6319 PMIC IC

---
 arch/arm64/boot/dts/mediatek/mt6319.dtsi | 66 ++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt6319.dtsi
arch/arm64/boot/dts/mediatek/mt6319.dtsi new file +0 -0
new file mode 100644
index 000000000000..8b2386547508

arch/arm64/boot/dts/mediatek/mt6319.dtsi line 8

Quoted 8 lines
arch/arm64/boot/dts/mediatek/mt6319.dtsi new file +8 -0
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (c) 2025 MediaTek Inc.
+ */
+#include <dt-bindings/spmi/spmi.h>
+
+&spmi {
+	mt6319_7: mt6319@7 {

Shouldn't this be something like "pmic@" or "regulator@"? mt6319 is not a type of device. The binding example uses pmic.

author
#24 lore raw

PATCH v6 10/11 arm64: dts: mediatek: add properties for MT6359

In reply to Jack Hsu

Add properties of rtc fg (Fuel Gauge), external crystal and auxadc definition for mt6359 pmic.

---
 arch/arm64/boot/dts/mediatek/mt6359.dtsi | 20 ++++++++++
 include/dt-bindings/iio/mt635x-auxadc.h  | 50 ++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 include/dt-bindings/iio/mt635x-auxadc.h
arch/arm64/boot/dts/mediatek/mt6359.dtsi +20 -0
index 467d8a4c2aa7..cc7053bdd292 100644
@@ -3,6 +3,8 @@
  * Copyright (C) 2022 MediaTek Inc.
  */
 
+#include <dt-bindings/iio/mt635x-auxadc.h>
+
 &pwrap {
 	pmic: pmic {
 		compatible = "mediatek,mt6359";
@@ -302,6 +304,24 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
 
 		mt6359rtc: rtc {
 			compatible = "mediatek,mt6358-rtc";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			status = "disabled";
+
+			fginit: fginit {
+				reg = <0 0x1>;
+				bits = <0 8>;
+			};
+
+			fgsoc: fgsoc {
+				reg = <1 0x1>;
+				bits = <0 8>;
+			};
+
+			ext32k: ext32k {
+				reg = <2 0x1>;
+				bits = <6 1>;
+			};
 		};
 	};
 };
include/dt-bindings/iio/mt635x-auxadc.h new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.45.2
#25 lore raw

Re: [PATCH v6 10/11] arm64: dts: mediatek: add properties for MT6359

Quoted 25 lines · Jack Hsu

Add properties of rtc fg (Fuel Gauge), external crystal and auxadc definition for mt6359 pmic.

---
 arch/arm64/boot/dts/mediatek/mt6359.dtsi | 20 ++++++++++
 include/dt-bindings/iio/mt635x-auxadc.h  | 50 ++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 include/dt-bindings/iio/mt635x-auxadc.h
arch/arm64/boot/dts/mediatek/mt6359.dtsi +2 -0
index 467d8a4c2aa7..cc7053bdd292 100644
@@ -3,6 +3,8 @@
  * Copyright (C) 2022 MediaTek Inc.
  */
 
+#include <dt-bindings/iio/mt635x-auxadc.h>
+
 &pwrap {
 	pmic: pmic {
 		compatible = "mediatek,mt6359";
@@ -302,6 +304,24 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
 

arch/arm64/boot/dts/mediatek/mt6359.dtsi mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub { · line 314

Quoted 10 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi +8 -0
 		mt6359rtc: rtc {
 			compatible = "mediatek,mt6358-rtc";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			status = "disabled";
+
+			fginit: fginit {
+				reg = <0 0x1>;
+				bits = <0 8>;
+			};

Uhhhh, what on earth is going on here? This is an RTC, what does fuelgauge stuff have to do with it? Did you test this at all? What does it even do? Very confused.

Quoted 44 lines
arch/arm64/boot/dts/mediatek/mt6359.dtsi +10 -0
+
+			fgsoc: fgsoc {
+				reg = <1 0x1>;
+				bits = <0 8>;
+			};
+
+			ext32k: ext32k {
+				reg = <2 0x1>;
+				bits = <6 1>;
+			};
 		};
 	};
 };
include/dt-bindings/iio/mt635x-auxadc.h new file +25 -0
new file mode 100644
index 000000000000..69ba13a7b9ec
@@ -0,0 +1,50 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
+/*
+ * Copyright (c) 2020 MediaTek Inc.
+ */
+
+#ifndef _DT_BINDINGS_MT635X_AUXADC_H
+#define _DT_BINDINGS_MT635X_AUXADC_H
+
+/* PMIC MT635x AUXADC channels */
+#define AUXADC_BATADC				0x00
+#define AUXADC_ISENSE				0x01
+#define AUXADC_VCDT	    			0x02
+#define AUXADC_BAT_TEMP				0x03
+#define AUXADC_BATID				0x04
+#define AUXADC_CHIP_TEMP			0x05
+#define AUXADC_VCORE_TEMP			0x06
+#define AUXADC_VPROC_TEMP			0x07
+#define AUXADC_VGPU_TEMP			0x08
+#define AUXADC_ACCDET				0x09
+#define AUXADC_VDCXO				0x0a
+#define AUXADC_TSX_TEMP				0x0b
+#define AUXADC_HPOFS_CAL			0x0c
+#define AUXADC_DCXO_TEMP			0x0d
+#define AUXADC_VBIF		    		0x0e
+#define AUXADC_IMP			    	0x0f

include/dt-bindings/iio/mt635x-auxadc.h line 35

Quoted 10 lines
include/dt-bindings/iio/mt635x-auxadc.h new file +10 -0
+#define AUXADC_IMIX_R				0x10
+#define AUXADC_VTREF				0x11
+#define AUXADC_VSYSSNS				0x12
+#define AUXADC_VIN1				    0x13
+#define AUXADC_VIN2			    	0x14
+#define AUXADC_VIN3			    	0x15
+#define AUXADC_VIN4			    	0x16
+#define AUXADC_VIN5			    	0x17
+#define AUXADC_VIN6			    	0x18
+#define AUXADC_VIN7		            0x19

What has this fine got to do with the node you're adding above? I don't understand why this is in this patch.
There's random whitespace problems in it, and half the defines look bizarre. This seems like it should be in the same patch as some binding changes for an iio device? The mt635x auxadc binding doesn't even permit anything that would use any of the properties beyond this point.

NAK.

Quoted 18 lines
include/dt-bindings/iio/mt635x-auxadc.h new file +15 -0
+
+#define AUXADC_CHAN_MIN				AUXADC_BATADC
+#define AUXADC_CHAN_MAX				AUXADC_VIN7
+
+#define ADC_PURES_100K				(0)
+#define ADC_PURES_30K				(1)
+#define ADC_PURES_400K				(2)
+#define ADC_PURES_OPEN				(3)
+
+#define ADC_PURES_100K_MASK			(ADC_PURES_100K << 8)
+#define ADC_PURES_30K_MASK			(ADC_PURES_30K << 8)
+#define ADC_PURES_400K_MASK			(ADC_PURES_400K << 8)
+#define ADC_PURES_OPEN_MASK			(ADC_PURES_OPEN << 8)
+
+#endif /* _DT_BINDINGS_MT635X_AUXADC_H */
Signature · 1 line
2.45.2
author
#26 lore raw

PATCH v6 11/11 arm64: dts: mediatek: Add mt8189 evaluation board dts

In reply to Jack Hsu

Add MediaTek mt8189 evaluation board dts, dtsi, Mafefile.

---
Changs in v6:
- add complete dts nodes of mt8189 evb board
- Fix previous version review comments
- Link to v5: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

---
 arch/arm64/boot/dts/mediatek/Makefile       |    1 +
 arch/arm64/boot/dts/mediatek/mt8189-evb.dts | 1082 +++++++
 arch/arm64/boot/dts/mediatek/mt8189.dtsi    | 3014 +++++++++++++++++++
 3 files changed, 4097 insertions(+)
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8189-evb.dts
 create mode 100644 arch/arm64/boot/dts/mediatek/mt8189.dtsi
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index 774fb0d6252d..8da99732b3b1 100644
@@ -88,6 +88,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku4.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku5.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku6.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8188-geralt-ciri-sku7.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8189-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/mt8189-evb.dts new file +1082 -0

1,082 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt8189.dtsi new file +3014 -0

1,911 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.45.2

Part of the diff is not shown here. View the raw message.

#27 lore raw
In reply to Jack Hsu
Quoted 4 lines · Jack Hsu

In this patch series,
we add Mediatek MT8189 evaluation board dts, dtsi and Makefile, and also related dt-binding documents.
Jack Hsu (11):

Quoted 8 lines

dt-bindings: arm: Add compatible for MediaTek MT8189
dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc
dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse
dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm
dt-bindings: serial: Support MediaTek MT8189 evb board uart
dt-bindings: timer: Support MediaTek MT8189 evb board timer
dt-bindings: usb: Support MediaTek MT8189 evb board xhci
dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt

Please drop mention of the evb from all of these commit messages. The compatible has nothing to do with the evb board, it's going to be common across all boards using an mt8189.

Quoted 2 lines

arm64: dts: mediatek: Add MT6319 PMIC Support
arm64: dts: mediatek: add properties for MT6359

Wait a minute, what are these two patches even doing in this series in the first place, when it is otherwise about the mt8189?

Quoted 1 line

arm64: dts: mediatek: Add mt8189 evaluation board dts

#28 lore raw
Quoted 19 lines · Conor Dooley
Quoted 4 lines · Jack Hsu

In this patch series,
we add Mediatek MT8189 evaluation board dts, dtsi and Makefile, and also related dt-binding documents.
Jack Hsu (11):

Quoted 8 lines

  dt-bindings: arm: Add compatible for MediaTek MT8189
  dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc
  dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse
  dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm
  dt-bindings: serial: Support MediaTek MT8189 evb board uart
  dt-bindings: timer: Support MediaTek MT8189 evb board timer
  dt-bindings: usb: Support MediaTek MT8189 evb board xhci
  dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt

Please drop mention of the evb from all of these commit messages. The compatible has nothing to do with the evb board, it's going to be common
across all boards using an mt8189.

Quoted 6 lines
Quoted 2 lines

  arm64: dts: mediatek: Add MT6319 PMIC Support
  arm64: dts: mediatek: add properties for MT6359

Wait a minute, what are these two patches even doing in this series in
the first place, when it is otherwise about the mt8189?

mt8189 evb board include mt63xx.dtsi,
and the dtsi files maybe for other boards in the future, ie. mt8189/81xx custom/OEM/ODM boards.
Should i separate those two patches as a new patch series ?

#29 lore raw
Quoted 23 lines · Jh Hsu (許希孜)
Quoted 22 lines · Conor Dooley
Quoted 4 lines · Jack Hsu

In this patch series,
we add Mediatek MT8189 evaluation board dts, dtsi and Makefile, and also related dt-binding documents.
Jack Hsu (11):

Quoted 8 lines

  dt-bindings: arm: Add compatible for MediaTek MT8189
  dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc
  dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse
  dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm
  dt-bindings: serial: Support MediaTek MT8189 evb board uart
  dt-bindings: timer: Support MediaTek MT8189 evb board timer
  dt-bindings: usb: Support MediaTek MT8189 evb board xhci
  dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt

Please drop mention of the evb from all of these commit messages. The compatible has nothing to do with the evb board, it's going to be common
across all boards using an mt8189.

Quoted 2 lines

  arm64: dts: mediatek: Add MT6319 PMIC Support
  arm64: dts: mediatek: add properties for MT6359

Quoted 8 lines
Quoted 3 lines

Wait a minute, what are these two patches even doing in this series in
the first place, when it is otherwise about the mt8189?

mt8189 evb board include mt63xx.dtsi,
and the dtsi files maybe for other boards in the future, ie. mt8189/81xx custom/OEM/ODM boards.
Should i separate those two patches as a new patch series ?

They seemed unrelated to your series and poor quality to the point that they looked like an accidental inclusions, given there's no mention of them in the cover letter. Since they do appear to be related, sure keep them. That said, the "add properties for MT6359" patch is in need of major rework, so you'll have to rework it.

#30 lore raw
Quoted 19 lines · Conor Dooley
Quoted 14 lines
Quoted 6 lines

Please drop mention of the evb from all of these commit messages. The
compatible has nothing to do with the evb board, it's going to be common
across all boards using an mt8189.

Quoted 7 lines
Quoted 2 lines

  arm64: dts: mediatek: Add MT6319 PMIC Support
  arm64: dts: mediatek: add properties for MT6359

Wait a minute, what are these two patches even doing in this series
in
the first place, when it is otherwise about the mt8189?

Quoted 4 lines

mt8189 evb board include mt63xx.dtsi,
and the dtsi files maybe for other boards in the future, ie. mt8189/81xx custom/OEM/ODM boards.
Should i separate those two patches as a new patch series ?

Quoted 8 lines

They seemed unrelated to your series and poor quality to the point that
they looked like an accidental inclusions, given there's no mention of
them in the cover letter. Since they do appear to be related, sure keep
them. That said, the "add properties for MT6359" patch is in need of major rework, so you'll have to rework it.

Got it, will add mt63xx information and rework mt63xx dtsi in next version

maintainer Applied
#31 lore raw

Re: (subset) [PATCH v6 00/11] Add mt8189 dts evaluation board and Makefile

In reply to Jack Hsu
Quoted 10 lines · Jack Hsu

In this patch series,
we add Mediatek MT8189 evaluation board dts, dtsi and Makefile, and also related dt-binding documents.

based on tag: next-20251029

Note:
This patch series depends on following dt-binding headers and yamls 1.dt-binding headers
1. mt8189-pinfunc.h

Quoted 5 lines
       https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/
  2. mt8189_gce.h
       https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

[...]

Applied, thanks!

[03/11] dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse

        commit: 2150cd7ffd14a39fb56c2b3cbfcc6dbf629b7643

Best regards,

Signature · 1 line
Srinivas Kandagatla <[email protected]>