Skip to contentSkip to conversation

ARM: Add support for yarisxl mt6582 board

PATCH Applied Cristian Cozzolino 3 participants 16 messages Sep 20, 2025 – Oct 18, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover ARM: Add support for yarisxl mt6582 board

This series adds support for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. It also includes some preliminary patches. More in detail:
- patches 1 and 2 add support for mt6582 to platform code (verified by looking at generic mt6582 downstream source code)
- patches 3-6 do some maintenance work to mt6582.dtsi
(I was unsure if squashing timer node patches into one)
- patches 7 and 8 add devicetree and dt-bindings support for yarisxl

---
Cristian Cozzolino (10):
ARM: mediatek: add board_dt_compat entry for the MT6582 SoC
ARM: mediatek: add MT6582 smp bring up code
ARM: dts: mediatek: mt6582: move MMIO devices under soc node
ARM: dts: mediatek: mt6582: sort nodes and properties
ARM: dts: mediatek: mt6582: remove compatible property from root node
ARM: dts: mediatek: mt6582: add mt6582 compatible to timer
ARM: dts: mediatek: mt6582: add clock-names property to uart nodes
ARM: dts: mediatek: mt6582: add enable-method property to cpus
dt-bindings: arm: mediatek: Add MT6582 yarisxl
ARM: dts: mediatek: add basic support for Alcatel yarisxl board

 .../devicetree/bindings/arm/mediatek.yaml          |   1 +
 arch/arm/boot/dts/mediatek/Makefile                |   1 +
 .../boot/dts/mediatek/mt6582-alcatel-yarisxl.dts   |  61 +++++++++
 arch/arm/boot/dts/mediatek/mt6582.dtsi             | 142 +++++++++++----------
 arch/arm/mach-mediatek/Kconfig                     |   4 +
 arch/arm/mach-mediatek/mediatek.c                  |   1 +
 arch/arm/mach-mediatek/platsmp.c                   |   1 +
 7 files changed, 142 insertions(+), 69 deletions(-)

---
base-commit: 846bd2225ec3cfa8be046655e02b9457ed41973e
change-id: 20250920-mt6582-9339d7fceb34

Best regards,

Signature · 1 line
Cristian Cozzolino <[email protected]>
#1 lore raw

PATCH 1/10 ARM: mediatek: add board_dt_compat entry for the MT6582 SoC

Add a compatible string for the MT6582 SoC.

---
 arch/arm/mach-mediatek/mediatek.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-mediatek/mediatek.c +1 -0
index 5c28124bd0078b31665fef647e496f4131b82c8d..fd3a8834fc4fd47adcc91c0d9371d4a1e9c0a7e6 100644
@@ -39,6 +39,7 @@ static void __init mediatek_timer_init(void)
 static const char * const mediatek_board_dt_compat[] = {
 	"mediatek,mt2701",
 	"mediatek,mt6572",
+	"mediatek,mt6582",
 	"mediatek,mt6589",
 	"mediatek,mt6592",
 	"mediatek,mt7623",
Signature · 1 line
2.49.0
#2 lore raw

PATCH 2/10 ARM: mediatek: add MT6582 smp bring up code

In reply to Cristian Cozzolino

Add support for booting secondary CPUs on MT6582.

---
 arch/arm/mach-mediatek/Kconfig   | 4 ++++
 arch/arm/mach-mediatek/platsmp.c | 1 +
 2 files changed, 5 insertions(+)
arch/arm/mach-mediatek/Kconfig +4 -0
index 638eabad2dd37ee56244fc036cb76af135aee416..64ec487c13abd81dd9a866d29b8f47d9ed42490e 100644
@@ -19,6 +19,10 @@ config MACH_MT6572
 	bool "MediaTek MT6572 SoCs support"
 	default ARCH_MEDIATEK
 
+config MACH_MT6582
+	bool "MediaTek MT6582 SoCs support"
+	default ARCH_MEDIATEK
+
 config MACH_MT6589
 	bool "MediaTek MT6589 SoCs support"
 	default ARCH_MEDIATEK
arch/arm/mach-mediatek/platsmp.c +1 -0
index bbd26d423bdef23629ec5ca9d9c61903748988b7..6b0943d95555afa52d134183c61ab6d5c1495ff1 100644
@@ -56,6 +56,7 @@ static const struct of_device_id mtk_tz_smp_boot_infos[] __initconst = {
 
 static const struct of_device_id mtk_smp_boot_infos[] __initconst = {
 	{ .compatible   = "mediatek,mt6572", .data = &mtk_mt6572_boot },
+	{ .compatible   = "mediatek,mt6582", .data = &mtk_mt7623_boot },
 	{ .compatible   = "mediatek,mt6589", .data = &mtk_mt6589_boot },
 	{ .compatible   = "mediatek,mt7623", .data = &mtk_mt7623_boot },
 	{ .compatible   = "mediatek,mt7629", .data = &mtk_mt7623_boot },
Signature · 1 line
2.49.0
#3 lore raw

PATCH 3/10 ARM: dts: mediatek: mt6582: move MMIO devices under soc node

In reply to Cristian Cozzolino

Memory mapped devices are part of soc. So, add such node and move those devices into it.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 129 +++++++++++++++++----------------
 1 file changed, 68 insertions(+), 61 deletions(-)
arch/arm/boot/dts/mediatek/mt6582.dtsi +68 -61
index 4263371784cd15db7af0ceb49dd069b62b623639..37d2b8786188aecb65c0a6e0d31aabc3b66e2bd7 100644
@@ -56,73 +56,80 @@ uart_clk: dummy26m {
 		#clock-cells = <0>;
 	};
 
-	timer: timer@11008000 {
-		compatible = "mediatek,mt6577-timer";
-		reg = <0x10008000 0x80>;
-		interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
-		clocks = <&system_clk>, <&rtc_clk>;
-		clock-names = "system-clk", "rtc-clk";
-	};
+	soc {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "simple-bus";
+		ranges;
 
-	sysirq: interrupt-controller@10200100 {
-		compatible = "mediatek,mt6582-sysirq",
-			     "mediatek,mt6577-sysirq";
-		interrupt-controller;
-		#interrupt-cells = <3>;
-		interrupt-parent = <&gic>;
-		reg = <0x10200100 0x1c>;
-	};
+		timer: timer@11008000 {
+			compatible = "mediatek,mt6577-timer";
+			reg = <0x10008000 0x80>;
+			interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&system_clk>, <&rtc_clk>;
+			clock-names = "system-clk", "rtc-clk";
+		};
 
-	gic: interrupt-controller@10211000 {
-		compatible = "arm,cortex-a7-gic";
-		interrupt-controller;
-		#interrupt-cells = <3>;
-		interrupt-parent = <&gic>;
-		reg = <0x10211000 0x1000>,
-		      <0x10212000 0x2000>,
-		      <0x10214000 0x2000>,
-		      <0x10216000 0x2000>;
-	};
+		sysirq: interrupt-controller@10200100 {
+			compatible = "mediatek,mt6582-sysirq",
+				     "mediatek,mt6577-sysirq";
+			interrupt-controller;
+			#interrupt-cells = <3>;
+			interrupt-parent = <&gic>;
+			reg = <0x10200100 0x1c>;
+		};
 
-	uart0: serial@11002000 {
-		compatible = "mediatek,mt6582-uart",
-			     "mediatek,mt6577-uart";
-		reg = <0x11002000 0x400>;
-		interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
-		clocks = <&uart_clk>;
-		status = "disabled";
-	};
+		gic: interrupt-controller@10211000 {
+			compatible = "arm,cortex-a7-gic";
+			interrupt-controller;
+			#interrupt-cells = <3>;
+			interrupt-parent = <&gic>;
+			reg = <0x10211000 0x1000>,
+			      <0x10212000 0x2000>,
+			      <0x10214000 0x2000>,
+			      <0x10216000 0x2000>;
+		};
 
-	uart1: serial@11003000 {
-		compatible = "mediatek,mt6582-uart",
-			     "mediatek,mt6577-uart";
-		reg = <0x11003000 0x400>;
-		interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
-		clocks = <&uart_clk>;
-		status = "disabled";
-	};
+		uart0: serial@11002000 {
+			compatible = "mediatek,mt6582-uart",
+				     "mediatek,mt6577-uart";
+			reg = <0x11002000 0x400>;
+			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&uart_clk>;
+			status = "disabled";
+		};
 
-	uart2: serial@11004000 {
-		compatible = "mediatek,mt6582-uart",
-			     "mediatek,mt6577-uart";
-		reg = <0x11004000 0x400>;
-		interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
-		clocks = <&uart_clk>;
-		status = "disabled";
-	};
+		uart1: serial@11003000 {
+			compatible = "mediatek,mt6582-uart",
+				     "mediatek,mt6577-uart";
+			reg = <0x11003000 0x400>;
+			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&uart_clk>;
+			status = "disabled";
+		};
 
-	uart3: serial@11005000 {
-		compatible = "mediatek,mt6582-uart",
-			     "mediatek,mt6577-uart";
-		reg = <0x11005000 0x400>;
-		interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
-		clocks = <&uart_clk>;
-		status = "disabled";
-	};
+		uart2: serial@11004000 {
+			compatible = "mediatek,mt6582-uart",
+				     "mediatek,mt6577-uart";
+			reg = <0x11004000 0x400>;
+			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&uart_clk>;
+			status = "disabled";
+		};
+
+		uart3: serial@11005000 {
+			compatible = "mediatek,mt6582-uart",
+				     "mediatek,mt6577-uart";
+			reg = <0x11005000 0x400>;
+			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&uart_clk>;
+			status = "disabled";
+		};
 
-	watchdog: watchdog@10007000 {
-		compatible = "mediatek,mt6582-wdt",
-			     "mediatek,mt6589-wdt";
-		reg = <0x10007000 0x100>;
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt6582-wdt",
+				     "mediatek,mt6589-wdt";
+			reg = <0x10007000 0x100>;
+		};
 	};
 };
Signature · 1 line
2.49.0
#4 lore raw

PATCH 4/10 ARM: dts: mediatek: mt6582: sort nodes and properties

In reply to Cristian Cozzolino

Sort fixed clocks nodes by clock frequency and memory mapped device nodes by reg address. Also, sort properties as shown in dt-bindings examples.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 46 +++++++++++++++-------------------
 1 file changed, 20 insertions(+), 26 deletions(-)
arch/arm/boot/dts/mediatek/mt6582.dtsi +20 -26
index 37d2b8786188aecb65c0a6e0d31aabc3b66e2bd7..8ada8c6518661509ebee647367064187f4376ab9 100644
@@ -13,8 +13,8 @@ / {
 	interrupt-parent = <&sysirq>;
 
 	cpus {
-		#address-cells = <1>;
 		#size-cells = <0>;
+		#address-cells = <1>;
 
 		cpu@0 {
 			device_type = "cpu";
@@ -38,22 +38,22 @@ cpu@3 {
 		};
 	};
 
-	system_clk: dummy13m {
+	uart_clk: dummy26m {
 		compatible = "fixed-clock";
-		clock-frequency = <13000000>;
 		#clock-cells = <0>;
+		clock-frequency = <26000000>;
 	};
 
-	rtc_clk: dummy32k {
+	system_clk: dummy13m {
 		compatible = "fixed-clock";
-		clock-frequency = <32000>;
 		#clock-cells = <0>;
+		clock-frequency = <13000000>;
 	};
 
-	uart_clk: dummy26m {
+	rtc_clk: dummy32k {
 		compatible = "fixed-clock";
-		clock-frequency = <26000000>;
 		#clock-cells = <0>;
+		clock-frequency = <32000>;
 	};
 
 	soc {
@@ -62,6 +62,11 @@ soc {
 		compatible = "simple-bus";
 		ranges;
 
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt6582-wdt", "mediatek,mt6589-wdt";
+			reg = <0x10007000 0x100>;
+		};
+
 		timer: timer@11008000 {
 			compatible = "mediatek,mt6577-timer";
 			reg = <0x10008000 0x80>;
@@ -71,18 +76,17 @@ timer: timer@11008000 {
 		};
 
 		sysirq: interrupt-controller@10200100 {
-			compatible = "mediatek,mt6582-sysirq",
-				     "mediatek,mt6577-sysirq";
+			compatible = "mediatek,mt6582-sysirq", "mediatek,mt6577-sysirq";
+			reg = <0x10200100 0x1c>;
+			interrupt-parent = <&gic>;
 			interrupt-controller;
 			#interrupt-cells = <3>;
-			interrupt-parent = <&gic>;
-			reg = <0x10200100 0x1c>;
 		};
 
 		gic: interrupt-controller@10211000 {
 			compatible = "arm,cortex-a7-gic";
-			interrupt-controller;
 			#interrupt-cells = <3>;
+			interrupt-controller;
 			interrupt-parent = <&gic>;
 			reg = <0x10211000 0x1000>,
 			      <0x10212000 0x2000>,
@@ -91,8 +95,7 @@ gic: interrupt-controller@10211000 {
 		};
 
 		uart0: serial@11002000 {
-			compatible = "mediatek,mt6582-uart",
-				     "mediatek,mt6577-uart";
+			compatible = "mediatek,mt6582-uart", "mediatek,mt6577-uart";
 			reg = <0x11002000 0x400>;
 			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
@@ -100,8 +103,7 @@ uart0: serial@11002000 {
 		};
 
 		uart1: serial@11003000 {
-			compatible = "mediatek,mt6582-uart",
-				     "mediatek,mt6577-uart";
+			compatible = "mediatek,mt6582-uart", "mediatek,mt6577-uart";
 			reg = <0x11003000 0x400>;
 			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
@@ -109,8 +111,7 @@ uart1: serial@11003000 {
 		};
 
 		uart2: serial@11004000 {
-			compatible = "mediatek,mt6582-uart",
-				     "mediatek,mt6577-uart";
+			compatible = "mediatek,mt6582-uart", "mediatek,mt6577-uart";
 			reg = <0x11004000 0x400>;
 			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
@@ -118,18 +119,11 @@ uart2: serial@11004000 {
 		};
 
 		uart3: serial@11005000 {
-			compatible = "mediatek,mt6582-uart",
-				     "mediatek,mt6577-uart";
+			compatible = "mediatek,mt6582-uart", "mediatek,mt6577-uart";
 			reg = <0x11005000 0x400>;
 			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
 			status = "disabled";
 		};
-
-		watchdog: watchdog@10007000 {
-			compatible = "mediatek,mt6582-wdt",
-				     "mediatek,mt6589-wdt";
-			reg = <0x10007000 0x100>;
-		};
 	};
 };
Signature · 1 line
2.49.0
#5 lore raw

PATCH 5/10 ARM: dts: mediatek: mt6582: remove compatible property from root node

In reply to Cristian Cozzolino

SoC's DTSI does not require compatible property. Drop that.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/mediatek/mt6582.dtsi +0 -1
index 8ada8c6518661509ebee647367064187f4376ab9..8a14dc1759d6f65fa75accddab83c1b6424d1632 100644
@@ -9,7 +9,6 @@
 / {
 	#address-cells = <1>;
 	#size-cells = <1>;
-	compatible = "mediatek,mt6582";
 	interrupt-parent = <&sysirq>;
 
 	cpus {
Signature · 1 line
2.49.0
#6 lore raw

PATCH 6/10 ARM: dts: mediatek: mt6582: add mt6582 compatible to timer

In reply to Cristian Cozzolino

Bindings already have mt6582 compatible for timer, so add that to DTSI. While at it, remove clock-names property (which is not required by timer node) and fix node address.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm/boot/dts/mediatek/mt6582.dtsi +2 -3
index 8a14dc1759d6f65fa75accddab83c1b6424d1632..54d675ecb390c52c7ca0f406155bfc59e32137ec 100644
@@ -66,12 +66,11 @@ watchdog: watchdog@10007000 {
 			reg = <0x10007000 0x100>;
 		};
 
-		timer: timer@11008000 {
-			compatible = "mediatek,mt6577-timer";
+		timer: timer@10008000 {
+			compatible = "mediatek,mt6582-timer", "mediatek,mt6577-timer";
 			reg = <0x10008000 0x80>;
 			interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&system_clk>, <&rtc_clk>;
-			clock-names = "system-clk", "rtc-clk";
 		};
 
 		sysirq: interrupt-controller@10200100 {
Signature · 1 line
2.49.0
#7 lore raw

PATCH 7/10 ARM: dts: mediatek: mt6582: add clock-names property to uart nodes

In reply to Cristian Cozzolino

Other SoC DTSI files define this property for their uart nodes. Do the same here too, to be consistent.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/mediatek/mt6582.dtsi +4 -0
index 54d675ecb390c52c7ca0f406155bfc59e32137ec..82564c740c2182448f8f88bbc2b22c4fef1fdeef 100644
@@ -97,6 +97,7 @@ uart0: serial@11002000 {
 			reg = <0x11002000 0x400>;
 			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
+			clock-names = "baud";
 			status = "disabled";
 		};
 
@@ -105,6 +106,7 @@ uart1: serial@11003000 {
 			reg = <0x11003000 0x400>;
 			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
+			clock-names = "baud";
 			status = "disabled";
 		};
 
@@ -113,6 +115,7 @@ uart2: serial@11004000 {
 			reg = <0x11004000 0x400>;
 			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
+			clock-names = "baud";
 			status = "disabled";
 		};
 
@@ -121,6 +124,7 @@ uart3: serial@11005000 {
 			reg = <0x11005000 0x400>;
 			interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
 			clocks = <&uart_clk>;
+			clock-names = "baud";
 			status = "disabled";
 		};
 	};
Signature · 1 line
2.49.0
#8 lore raw

PATCH 8/10 ARM: dts: mediatek: mt6582: add enable-method property to cpus

In reply to Cristian Cozzolino

Add missing property for SMP.

---
 arch/arm/boot/dts/mediatek/mt6582.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/mediatek/mt6582.dtsi +1 -0
index 82564c740c2182448f8f88bbc2b22c4fef1fdeef..f941ea44898a9f26d9742f31f4a667adcc77dfc8 100644
@@ -14,6 +14,7 @@ / {
 	cpus {
 		#size-cells = <0>;
 		#address-cells = <1>;
+		enable-method = "mediatek,mt6589-smp";
 
 		cpu@0 {
 			device_type = "cpu";
Signature · 1 line
2.49.0
#9 lore raw

PATCH 9/10 dt-bindings: arm: mediatek: Add MT6582 yarisxl

In reply to Cristian Cozzolino

Add an entry for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index f04277873694880d14d78acd39b6c9725394c2f2..5dce019cc998fb7498d7ce60afedb46011fff345 100644
@@ -38,6 +38,7 @@ properties:
           - const: mediatek,mt6580
       - items:
           - enum:
+              - alcatel,yarisxl
               - prestigio,pmt5008-3g
           - const: mediatek,mt6582
       - items:
Signature · 1 line
2.49.0
#11 lore raw

PATCH 10/10 ARM: dts: mediatek: add basic support for Alcatel yarisxl board

In reply to Cristian Cozzolino

This smartphone uses a MediaTek MT6582 system-on-chip with 512MB of RAM. It can currently boot into initramfs with a working UART and Simple Framebuffer using already initialized panel by the bootloader.

---
 arch/arm/boot/dts/mediatek/Makefile                |  1 +
 .../boot/dts/mediatek/mt6582-alcatel-yarisxl.dts   | 61 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)
arch/arm/boot/dts/mediatek/Makefile +1 -0
index e48de3efeb3b9ab00108cc28afa8da525d0ec14a..37c4cded0eae8cfcdc61c58fd1d986ae14c3de93 100644
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt6572-jty-d101.dtb \
 	mt6572-lenovo-a369i.dtb \
 	mt6580-evbp1.dtb \
+	mt6582-alcatel-yarisxl.dtb \
 	mt6582-prestigio-pmt5008-3g.dtb \
 	mt6589-aquaris5.dtb \
 	mt6589-fairphone-fp1.dtb \
arch/arm/boot/dts/mediatek/mt6582-alcatel-yarisxl.dts new file +61 -0

61 lines not on this page · raw message

Signature · 1 line
2.49.0
maintainer Reviewed-by on the v1 series
#12 lore raw
In reply to Cristian Cozzolino

Il 20/09/25 20:23, Cristian Cozzolino via B4 Relay ha scritto:

Quoted 9 lines

This series adds support for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. It also includes some preliminary patches. More in detail:
- patches 1 and 2 add support for mt6582 to platform code (verified by looking at generic mt6582 downstream source code)
- patches 3-6 do some maintenance work to mt6582.dtsi
(I was unsure if squashing timer node patches into one)
- patches 7 and 8 add devicetree and dt-bindings support for yarisxl

That's simply great! Nice cleanup and nice addition - the only thing I can say here is that seeing simple-framebuffer is a pity, and that I hope that your plans are to continue with systimer, clocks, spi, i2c, apdma, mediatek-drm components, etc :-)

In the meanwhile, for the whole series

Keep up the good work!

Cheers,
Angelo

Quoted 27 lines

---
Cristian Cozzolino (10):
ARM: mediatek: add board_dt_compat entry for the MT6582 SoC
ARM: mediatek: add MT6582 smp bring up code
ARM: dts: mediatek: mt6582: move MMIO devices under soc node
ARM: dts: mediatek: mt6582: sort nodes and properties
ARM: dts: mediatek: mt6582: remove compatible property from root node
ARM: dts: mediatek: mt6582: add mt6582 compatible to timer
ARM: dts: mediatek: mt6582: add clock-names property to uart nodes
ARM: dts: mediatek: mt6582: add enable-method property to cpus
dt-bindings: arm: mediatek: Add MT6582 yarisxl
ARM: dts: mediatek: add basic support for Alcatel yarisxl board

  .../devicetree/bindings/arm/mediatek.yaml          |   1 +
  arch/arm/boot/dts/mediatek/Makefile                |   1 +
  .../boot/dts/mediatek/mt6582-alcatel-yarisxl.dts   |  61 +++++++++
  arch/arm/boot/dts/mediatek/mt6582.dtsi             | 142 +++++++++++----------
  arch/arm/mach-mediatek/Kconfig                     |   4 +
  arch/arm/mach-mediatek/mediatek.c                  |   1 +
  arch/arm/mach-mediatek/platsmp.c                   |   1 +
  7 files changed, 142 insertions(+), 69 deletions(-)

---
base-commit: 846bd2225ec3cfa8be046655e02b9457ed41973e
change-id: 20250920-mt6582-9339d7fceb34

Best regards,

#13 lore raw
Quoted 18 lines · AngeloGioacchino Del Regno

Il 20/09/25 20:23, Cristian Cozzolino via B4 Relay ha scritto:

Quoted 8 lines

This series adds support for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. It also includes some preliminary patches. More in detail:
- patches 1 and 2 add support for mt6582 to platform code (verified by looking at generic mt6582 downstream source code)
- patches 3-6 do some maintenance work to mt6582.dtsi
(I was unsure if squashing timer node patches into one)
- patches 7 and 8 add devicetree and dt-bindings support for yarisxl

That's simply great! Nice cleanup and nice addition - the only thing I can say here is that seeing simple-framebuffer is a pity, and that I hope that your plans are to continue with systimer, clocks, spi, i2c, apdma, mediatek-drm components, etc :-)

In the meanwhile, for the whole series

Quoted 8 lines

Keep up the good work!

Cheers,
Angelo

Hi (sorry for being late)!
It'd be nice add more support for this old platform, though I've to say that I've got inspiration from MT6572 patch series and this series is mostly based on that work. BTW, I've tested this series together with mt6582 u-boot port (installed as 2nd stage bootloader), always derived from mt65xx u-boot work. Since original port has been tested on mt6580 and mt6572, it's not too much hard making a port for sibling SoCs like mt6582 (done) and mt6592. (I've also managed to boot successfully a 1st stage bootloader mt6582 u-boot port but I've not yet tried loading linux - and testing these patches - with that). AS mt65xx platforms share many similarities, I hope more people could take part and extend mainline linux hardware support for mt6580, mt6572 and mt6582 as you wish.

In the meantime,

Thank You very nuch and

Best Regards,

Cristian.

P.S. I've made a mistake about cover letter by making reference to a number of eight patches, while actually there are ten patches. BTW, that's not important at this point.

maintainer Applied
#14 lore raw

Re: (subset) [PATCH 00/10] ARM: Add support for yarisxl mt6582 board

In reply to Cristian Cozzolino
Quoted 10 lines · Cristian Cozzolino

This series adds support for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. It also includes some preliminary patches. More in detail:
- patches 1 and 2 add support for mt6582 to platform code (verified by looking at generic mt6582 downstream source code)
- patches 3-6 do some maintenance work to mt6582.dtsi
(I was unsure if squashing timer node patches into one)
- patches 7 and 8 add devicetree and dt-bindings support for yarisxl

[...]

Applied to v6.18-next/arm32, thanks!

[01/10] ARM: mediatek: add board_dt_compat entry for the MT6582 SoC

        commit: a9ad357fb2104cc07a64d7e642f6c35b72b16405
[02/10] ARM: mediatek: add MT6582 smp bring up code
        commit: 7f637d718752f1b821f90170bf841c4d924b382b

Cheers,
Angelo

maintainer Applied
#15 lore raw

Re: (subset) [PATCH 00/10] ARM: Add support for yarisxl mt6582 board

In reply to Cristian Cozzolino
Quoted 10 lines · Cristian Cozzolino

This series adds support for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. It also includes some preliminary patches. More in detail:
- patches 1 and 2 add support for mt6582 to platform code (verified by looking at generic mt6582 downstream source code)
- patches 3-6 do some maintenance work to mt6582.dtsi
(I was unsure if squashing timer node patches into one)
- patches 7 and 8 add devicetree and dt-bindings support for yarisxl

[...]

Applied to v6.18-next/dts32, thanks!

[03/10] ARM: dts: mediatek: mt6582: move MMIO devices under soc node

        commit: 1e955255a8eebcf93f0b399cb46c8947e648c0d6
[04/10] ARM: dts: mediatek: mt6582: sort nodes and properties
        commit: e898d7a2e2aa60c680227ef67a536f5a48d9776a
[05/10] ARM: dts: mediatek: mt6582: remove compatible property from root node
        commit: 5f3204e33a00fe7ab652c0eb57becc8ad58e7f29
[06/10] ARM: dts: mediatek: mt6582: add mt6582 compatible to timer
        commit: f6b85f1cec503aadc2b260c7648a09433897df1f
[07/10] ARM: dts: mediatek: mt6582: add clock-names property to uart nodes
        commit: a97a57c68d3d02510e826d41bf2e49c6f7e515b6
[08/10] ARM: dts: mediatek: mt6582: add enable-method property to cpus
        commit: 246475ee9ba806a4268cd2abb40cb63990b05a6d
[09/10] dt-bindings: arm: mediatek: Add MT6582 yarisxl
        commit: 10dee355bdc1a8409babc71e5aa36c7d7f995910
[10/10] ARM: dts: mediatek: add basic support for Alcatel yarisxl board
        commit: 12fd34e32d5d0b7c276eec83b575c21a5cc12485

Cheers,
Angelo