public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/9] MT6365 PMIC support cleanup
@ 2026-04-29  9:44 Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359 Louis-Alexis Eyraud
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Several Mediatek and Radxa boards, based on MT8370, MT8390 or MT8395
SoC, integrate the MT6365 PMIC, that is a MT6359P variant:
 - Mediatek Genio 1200-EVK
 - Mediatek Genio 700-EVK
 - Mediatek Genio 510-EVK
 - Radxa NIO-12L
It is compatible with the MT6359 PMIC.

But both MT6365 PMIC support and compatibility were never expressed in
the dt-bindings and there is no MT6365 include file as well.
So, since these board support was introduced, their devicetrees use the
mt6359 include file to enable this PMIC support. 

The goal of this series is to clean this support by adding the missing
compatible strings for this MFD main and subdevices in the dt-bindings,
and add a include for MT6365 definitions to replace the MT6359 include
in these board devicetrees and for future ones (like Genio 520/720
EVKs).

The series is based on linux-next tree (tag: next-20260428) and has
been tested on Mediatek Genio 510, 700 and 1200-EVK boards.

---
Louis-Alexis Eyraud (9):
      dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359
      dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support
      dt-bindings: input: mediatek,pmic-keys: Add MT6365 support
      dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC
      arm64: dts: mediatek: mt6359: use proper compatible for rtc
      arm64: dts: mediatek: add MT6365 PMIC include
      arm64: dts: mediatek: mt8390-genio-common: use MT6365 PMIC definitions
      arm64: dts: mediatek: mt8395-genio-common: use MT6365 PMIC definitions
      arm64: dts: mediatek: mt8395-radxa-nio-12l: use MT6365 PMIC definitions

 .../bindings/iio/adc/mediatek,mt6359-auxadc.yaml   | 17 +++++++++-----
 .../bindings/input/mediatek,pmic-keys.yaml         | 21 ++++++++++-------
 .../devicetree/bindings/mfd/mediatek,mt6397.yaml   | 14 ++++++++++++
 arch/arm64/boot/dts/mediatek/mt6359.dtsi           |  4 ++--
 arch/arm64/boot/dts/mediatek/mt6365.dtsi           | 26 ++++++++++++++++++++++
 .../boot/dts/mediatek/mt8390-genio-common.dtsi     |  8 +++----
 .../boot/dts/mediatek/mt8395-genio-common.dtsi     |  8 +++----
 .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts     |  6 ++---
 8 files changed, 77 insertions(+), 27 deletions(-)
---
base-commit: 0f3ef35b0747832b58b97171bad99011d084c6b1
change-id: 20260428-mediatek-genio-mt6365-cleanup-6cdd84c3f098

Best regards,
-- 
Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-05-06 15:31   ` Rob Herring (Arm)
  2026-04-29  9:44 ` [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support Louis-Alexis Eyraud
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

The rtc block of MT6359 PMIC is compatible with the one found in MT6358
but this compatibility was never expressed in the dt-bindings, so add
the missing compatible string for the rtc subnode.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
index 05c121b0cb3d..dc2b38cf285d 100644
--- a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
+++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
@@ -70,6 +70,7 @@ properties:
               - mediatek,mt6397-rtc
           - items:
               - enum:
+                  - mediatek,mt6359-rtc
                   - mediatek,mt6366-rtc
               - const: mediatek,mt6358-rtc
 

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359 Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-05-06 15:32   ` Rob Herring (Arm)
  2026-04-29  9:44 ` [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support Louis-Alexis Eyraud
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

MT6365 PMIC is compatible with MT6359, so add the compatible strings
for the main and sub devices (regulator, rtc, audio codec).

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
index dc2b38cf285d..122aba7a54f8 100644
--- a/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
+++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
@@ -44,6 +44,10 @@ properties:
           - enum:
               - mediatek,mt6366
           - const: mediatek,mt6358
+      - items:
+          - enum:
+              - mediatek,mt6365
+          - const: mediatek,mt6359
 
   interrupts:
     maxItems: 1
@@ -71,6 +75,7 @@ properties:
           - items:
               - enum:
                   - mediatek,mt6359-rtc
+                  - mediatek,mt6365-rtc
                   - mediatek,mt6366-rtc
               - const: mediatek,mt6358-rtc
 
@@ -99,6 +104,10 @@ properties:
               - enum:
                   - mediatek,mt6366-regulator
               - const: mediatek,mt6358-regulator
+          - items:
+              - enum:
+                  - mediatek,mt6365-regulator
+              - const: mediatek,mt6359-regulator
 
     required:
       - compatible
@@ -125,6 +134,10 @@ properties:
               - enum:
                   - mediatek,mt6366-sound
               - const: mediatek,mt6358-sound
+          - items:
+              - enum:
+                  - mediatek,mt6365-codec
+              - const: mediatek,mt6359-codec
 
     required:
       - compatible

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359 Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-05-06 15:32   ` Rob Herring (Arm)
  2026-04-29  9:44 ` [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC Louis-Alexis Eyraud
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Add compatible string for the pmic keys block found on the MT6365 PMIC,
that is compatible with the one found in MT6359.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 .../bindings/input/mediatek,pmic-keys.yaml          | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml b/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml
index b95435bd6a9b..140a862ecfbe 100644
--- a/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml
+++ b/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml
@@ -23,14 +23,19 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - mediatek,mt6323-keys
-      - mediatek,mt6328-keys
-      - mediatek,mt6331-keys
-      - mediatek,mt6357-keys
-      - mediatek,mt6358-keys
-      - mediatek,mt6359-keys
-      - mediatek,mt6397-keys
+    oneOf:
+      - enum:
+          - mediatek,mt6323-keys
+          - mediatek,mt6328-keys
+          - mediatek,mt6331-keys
+          - mediatek,mt6357-keys
+          - mediatek,mt6358-keys
+          - mediatek,mt6359-keys
+          - mediatek,mt6397-keys
+      - items:
+          - enum:
+              - mediatek,mt6365-keys
+          - const: mediatek,mt6359-keys
 
   power-off-time-sec: true
 

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (2 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-05-06 15:32   ` Rob Herring (Arm)
  2026-04-29  9:44 ` [PATCH 5/9] arm64: dts: mediatek: mt6359: use proper compatible for rtc Louis-Alexis Eyraud
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Add compatible string for the AuxADC block found on the MT6365 PMIC,
that is compatible with the one found in MT6359.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 .../bindings/iio/adc/mediatek,mt6359-auxadc.yaml        | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml
index 5d4ab701f51a..9936aa605c7b 100644
--- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6359-auxadc.yaml
@@ -18,12 +18,17 @@ description:
 
 properties:
   compatible:
-    enum:
-      - mediatek,mt6357-auxadc
-      - mediatek,mt6358-auxadc
-      - mediatek,mt6359-auxadc
-      - mediatek,mt6363-auxadc
-      - mediatek,mt6373-auxadc
+    oneOf:
+      - enum:
+          - mediatek,mt6357-auxadc
+          - mediatek,mt6358-auxadc
+          - mediatek,mt6359-auxadc
+          - mediatek,mt6363-auxadc
+          - mediatek,mt6373-auxadc
+      - items:
+          - enum:
+              - mediatek,mt6365-auxadc
+          - const: mediatek,mt6359-auxadc
 
   "#io-channel-cells":
     const: 1

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 5/9] arm64: dts: mediatek: mt6359: use proper compatible for rtc
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (3 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 6/9] arm64: dts: mediatek: add MT6365 PMIC include Louis-Alexis Eyraud
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

The MT6359 PMIC include file uses directly "mediatek,mt6358-rtc"
compatible string for the rtc subnode, but not its own compatible
string.
Now that the "mediatek,mt6359-rtc" compatible is properly declared in
the dt-bindings, use it with "mediatek,mt6358-rtc" as fallback.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt6359.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt6359.dtsi b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
index 45ad69ee49ed..c279b3372eda 100644
--- a/arch/arm64/boot/dts/mediatek/mt6359.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
@@ -19,7 +19,7 @@ mt6359codec: audio-codec {
 			compatible = "mediatek,mt6359-codec";
 		};
 
-		regulators {
+		mt6359regulators: regulators {
 			compatible = "mediatek,mt6359-regulator";
 
 			mt6359_vs1_buck_reg: buck_vs1 {
@@ -301,7 +301,7 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
 		};
 
 		mt6359rtc: rtc {
-			compatible = "mediatek,mt6358-rtc";
+			compatible = "mediatek,mt6359-rtc", "mediatek,mt6358-rtc";
 		};
 	};
 };

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 6/9] arm64: dts: mediatek: add MT6365 PMIC include
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (4 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 5/9] arm64: dts: mediatek: mt6359: use proper compatible for rtc Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 7/9] arm64: dts: mediatek: mt8390-genio-common: use MT6365 PMIC definitions Louis-Alexis Eyraud
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

The MT6365 PMIC, compatible with MT6359 PMIC, never had its own include
file so the boards that integrates this PMIC used mt6359.dtsi in their
devicetree to enable its support.

So, add the mt6365 include file for the MT6365 definitions and labels.
In order not to duplicate all of them, make it include mt6359.dtsi and
override the compatible strings for the MFD main and sub devices with
the MT6365 ones.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt6365.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt6365.dtsi b/arch/arm64/boot/dts/mediatek/mt6365.dtsi
new file mode 100644
index 000000000000..ed4e349f63c9
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt6365.dtsi
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2026 MediaTek Inc.
+ */
+
+#include "mt6359.dtsi"
+
+&pmic {
+	compatible = "mediatek,mt6365", "mediatek,mt6359";
+};
+
+&pmic_adc {
+	compatible = "mediatek,mt6365-auxadc", "mediatek,mt6359-auxadc";
+};
+
+mt6365codec: &mt6359codec {
+	compatible = "mediatek,mt6365-codec", "mediatek,mt6359-codec";
+};
+
+mt6365regulators: &mt6359regulators {
+	compatible = "mediatek,mt6365-regulator", "mediatek,mt6359-regulator";
+};
+
+mt6365rtc: &mt6359rtc{
+	compatible = "mediatek,mt6365-rtc", "mediatek,mt6358-rtc";
+};

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 7/9] arm64: dts: mediatek: mt8390-genio-common: use MT6365 PMIC definitions
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (5 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 6/9] arm64: dts: mediatek: add MT6365 PMIC include Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 8/9] arm64: dts: mediatek: mt8395-genio-common: " Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 9/9] arm64: dts: mediatek: mt8395-radxa-nio-12l: " Louis-Alexis Eyraud
  8 siblings, 0 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Mediatek Genio 510 and 700 EVK boards integrate a MT6365 PMIC,
compatible with MT6359, but the board common definition include file
used the mt6359.dtsi to enable its support since the board support was
introduced.

Now that mt6365.dtsi has been created, include it instead of mt6359.dtsi
and use MT6365 labels and pmic key compatible too.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
index 2062506f6cc5..5303add717bf 100644
--- a/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi
@@ -10,7 +10,7 @@
  *                    AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>   
  */
 
-#include "mt6359.dtsi"
+#include "mt6365.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
@@ -695,7 +695,7 @@ &mt6359_vufs_ldo_reg {
 	regulator-always-on;
 };
 
-&mt6359codec {
+&mt6365codec {
 	mediatek,mic-type-0 = <1>; /* ACC */
 	mediatek,mic-type-1 = <3>; /* DCC */
 };
@@ -1281,8 +1281,8 @@ &pmic {
 	interrupt-parent = <&pio>;
 	interrupts = <222 IRQ_TYPE_LEVEL_HIGH>;
 
-	mt6359keys: keys {
-		compatible = "mediatek,mt6359-keys";
+	mt6365keys: keys {
+		compatible = "mediatek,mt6365-keys", "mediatek,mt6359-keys";
 		mediatek,long-press-mode = <1>;
 		power-off-time-sec = <0>;
 

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 8/9] arm64: dts: mediatek: mt8395-genio-common: use MT6365 PMIC definitions
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (6 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 7/9] arm64: dts: mediatek: mt8390-genio-common: use MT6365 PMIC definitions Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  2026-04-29  9:44 ` [PATCH 9/9] arm64: dts: mediatek: mt8395-radxa-nio-12l: " Louis-Alexis Eyraud
  8 siblings, 0 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Mediatek Genio 1200 EVK board integrates a MT6365 PMIC, compatible
with MT6359, but the board common definition include file (for the eMMC
and UFS configurations) used the mt6359.dtsi to enable its support
since the board support was introduced.

Now that mt6365.dtsi has been created, include it instead of mt6359.dtsi
and use MT6365 labels and pmic key compatible too.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
index 62c336e21500..6df614c471fc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
@@ -7,7 +7,7 @@
 /dts-v1/;
 
 #include "mt8195.dtsi"
-#include "mt6359.dtsi"
+#include "mt6365.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
@@ -728,7 +728,7 @@ &mt6359_vsram_others_ldo_reg {
 	regulator-max-microvolt = <750000>;
 };
 
-&mt6359codec {
+&mt6365codec {
 	mediatek,mic-type-0 = <1>; /* ACC */
 	mediatek,mic-type-1 = <3>; /* DCC */
 	mediatek,mic-type-2 = <1>; /* ACC */
@@ -1151,8 +1151,8 @@ pins {
 &pmic {
 	interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>;
 
-	mt6359keys: keys {
-		compatible = "mediatek,mt6359-keys";
+	mt6365keys: keys {
+		compatible = "mediatek,mt6365-keys", "mediatek,mt6359-keys";
 		mediatek,long-press-mode = <1>;
 		power-off-time-sec = <0>;
 

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH 9/9] arm64: dts: mediatek: mt8395-radxa-nio-12l: use MT6365 PMIC definitions
  2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
                   ` (7 preceding siblings ...)
  2026-04-29  9:44 ` [PATCH 8/9] arm64: dts: mediatek: mt8395-genio-common: " Louis-Alexis Eyraud
@ 2026-04-29  9:44 ` Louis-Alexis Eyraud
  8 siblings, 0 replies; 14+ messages in thread
From: Louis-Alexis Eyraud @ 2026-04-29  9:44 UTC (permalink / raw)
  To: Sen Chu, Sean Wang, Macpaul Lin, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Dmitry Torokhov, Chen Zhong,
	Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: kernel, linux-pm, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, linux-input, linux-iio, Louis-Alexis Eyraud

Radxa NIO-12L EVK board integrates a MT6365 PMIC, compatible with
MT6359, but its devicetree used mt6359.dtsi to enable its support since
the board support was introduced.

Now that mt6365.dtsi has been created, include it instead of mt6359.dtsi
and use MT6365 labels and pmic key compatible too.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
index bf91305e8e4a..8bd3b3250b87 100644
--- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
@@ -6,7 +6,7 @@
  */
 
 #include "mt8195.dtsi"
-#include "mt6359.dtsi"
+#include "mt6365.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
@@ -1034,8 +1034,8 @@ &pciephy {
 &pmic {
 	interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>;
 
-	mt6359keys: keys {
-		compatible = "mediatek,mt6359-keys";
+	mt6365keys: keys {
+		compatible = "mediatek,mt6365-keys", "mediatek,mt6359-keys";
 		mediatek,long-press-mode = <1>;
 		power-off-time-sec = <0>;
 

-- 
2.54.0



^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359
  2026-04-29  9:44 ` [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359 Louis-Alexis Eyraud
@ 2026-05-06 15:31   ` Rob Herring (Arm)
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring (Arm) @ 2026-05-06 15:31 UTC (permalink / raw)
  To: Louis-Alexis Eyraud
  Cc: Sen Chu, Macpaul Lin, Sean Wang, Lee Jones, linux-mediatek,
	Jonathan Cameron, devicetree, kernel, Nuno Sá, linux-input,
	Conor Dooley, David Lechner, AngeloGioacchino Del Regno,
	linux-arm-kernel, Chen Zhong, linux-pm, Matthias Brugger,
	Dmitry Torokhov, linux-iio, Krzysztof Kozlowski, Andy Shevchenko,
	linux-kernel


On Wed, 29 Apr 2026 11:44:14 +0200, Louis-Alexis Eyraud wrote:
> The rtc block of MT6359 PMIC is compatible with the one found in MT6358
> but this compatibility was never expressed in the dt-bindings, so add
> the missing compatible string for the rtc subnode.
> 
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
> ---
>  Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support
  2026-04-29  9:44 ` [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support Louis-Alexis Eyraud
@ 2026-05-06 15:32   ` Rob Herring (Arm)
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring (Arm) @ 2026-05-06 15:32 UTC (permalink / raw)
  To: Louis-Alexis Eyraud
  Cc: AngeloGioacchino Del Regno, Dmitry Torokhov, Krzysztof Kozlowski,
	kernel, Andy Shevchenko, Conor Dooley, linux-kernel,
	Matthias Brugger, Nuno Sá, David Lechner, Macpaul Lin,
	linux-iio, linux-pm, Jonathan Cameron, Sean Wang, Sen Chu,
	linux-mediatek, linux-arm-kernel, Lee Jones, linux-input,
	Chen Zhong, devicetree


On Wed, 29 Apr 2026 11:44:15 +0200, Louis-Alexis Eyraud wrote:
> MT6365 PMIC is compatible with MT6359, so add the compatible strings
> for the main and sub devices (regulator, rtc, audio codec).
> 
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
> ---
>  Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support
  2026-04-29  9:44 ` [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support Louis-Alexis Eyraud
@ 2026-05-06 15:32   ` Rob Herring (Arm)
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring (Arm) @ 2026-05-06 15:32 UTC (permalink / raw)
  To: Louis-Alexis Eyraud
  Cc: linux-iio, Macpaul Lin, Sean Wang, Jonathan Cameron, kernel,
	Lee Jones, Dmitry Torokhov, Conor Dooley, linux-kernel,
	linux-input, devicetree, Krzysztof Kozlowski, linux-pm,
	Nuno Sá, David Lechner, Matthias Brugger,
	AngeloGioacchino Del Regno, linux-arm-kernel, Sen Chu,
	linux-mediatek, Andy Shevchenko, Chen Zhong


On Wed, 29 Apr 2026 11:44:16 +0200, Louis-Alexis Eyraud wrote:
> Add compatible string for the pmic keys block found on the MT6365 PMIC,
> that is compatible with the one found in MT6359.
> 
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
> ---
>  .../bindings/input/mediatek,pmic-keys.yaml          | 21 +++++++++++++--------
>  1 file changed, 13 insertions(+), 8 deletions(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC
  2026-04-29  9:44 ` [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC Louis-Alexis Eyraud
@ 2026-05-06 15:32   ` Rob Herring (Arm)
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Herring (Arm) @ 2026-05-06 15:32 UTC (permalink / raw)
  To: Louis-Alexis Eyraud
  Cc: AngeloGioacchino Del Regno, Dmitry Torokhov, Nuno Sá, kernel,
	linux-kernel, devicetree, Chen Zhong, Krzysztof Kozlowski,
	linux-arm-kernel, Sen Chu, David Lechner, Jonathan Cameron,
	Matthias Brugger, linux-iio, linux-input, Lee Jones,
	linux-mediatek, Sean Wang, Andy Shevchenko, linux-pm,
	Conor Dooley, Macpaul Lin


On Wed, 29 Apr 2026 11:44:17 +0200, Louis-Alexis Eyraud wrote:
> Add compatible string for the AuxADC block found on the MT6365 PMIC,
> that is compatible with the one found in MT6359.
> 
> Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
> ---
>  .../bindings/iio/adc/mediatek,mt6359-auxadc.yaml        | 17 +++++++++++------
>  1 file changed, 11 insertions(+), 6 deletions(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-05-06 15:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29  9:44 [PATCH 0/9] MT6365 PMIC support cleanup Louis-Alexis Eyraud
2026-04-29  9:44 ` [PATCH 1/9] dt-bindings: mfd: mediatek: mt6397: Add rtc for MT6359 Louis-Alexis Eyraud
2026-05-06 15:31   ` Rob Herring (Arm)
2026-04-29  9:44 ` [PATCH 2/9] dt-bindings: mfd: mediatek: mt6397: Add MT6365 PMIC support Louis-Alexis Eyraud
2026-05-06 15:32   ` Rob Herring (Arm)
2026-04-29  9:44 ` [PATCH 3/9] dt-bindings: input: mediatek,pmic-keys: Add MT6365 support Louis-Alexis Eyraud
2026-05-06 15:32   ` Rob Herring (Arm)
2026-04-29  9:44 ` [PATCH 4/9] dt-bindings: iio: adc: mt6359: Add MT6365 PMIC AuxADC Louis-Alexis Eyraud
2026-05-06 15:32   ` Rob Herring (Arm)
2026-04-29  9:44 ` [PATCH 5/9] arm64: dts: mediatek: mt6359: use proper compatible for rtc Louis-Alexis Eyraud
2026-04-29  9:44 ` [PATCH 6/9] arm64: dts: mediatek: add MT6365 PMIC include Louis-Alexis Eyraud
2026-04-29  9:44 ` [PATCH 7/9] arm64: dts: mediatek: mt8390-genio-common: use MT6365 PMIC definitions Louis-Alexis Eyraud
2026-04-29  9:44 ` [PATCH 8/9] arm64: dts: mediatek: mt8395-genio-common: " Louis-Alexis Eyraud
2026-04-29  9:44 ` [PATCH 9/9] arm64: dts: mediatek: mt8395-radxa-nio-12l: " Louis-Alexis Eyraud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox