* [PATCH 0/8] arm64: mediatek: initial support for mt6768
@ 2026-11-26 12:39 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 1/8] dt-bindings: arm: mediatek: add mt6768 Roman Vivchar via B4 Relay
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
This series adds basic support for the MediaTek mt6768 SoC and Xiaomi
Redmi Note 9 smartphone (codenamed "merlin").
The mt6768 is a 64-bit SoC featuring six Cortex-A55 and two Cortex-A75
cores, typically paired with LPDDR4X memory and found in low to mid range
phones.
This series requires custom TF-A and U-Boot forks, because the device
shipped with broken PSCI implementation and bootloader that pollutes dtb.
TF-A: https://github.com/mt6768-mainline/arm-trusted-firmware
U-Boot: https://github.com/mt6768-mainline/u-boot
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
Roman Vivchar (8):
dt-bindings: arm: mediatek: add mt6768
dt-bindings: serial: mediatek,uart: add mt6768
dt-bindings: watchdog: mediatek,mtk-wdt: add mt6768
dt-bindings: timer: mediatek,timer: add mt6768
dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: add mt6768
watchdog: mediatek: add mt6768
arm64: dts: mediatek: add initial mt6768 support
arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support
.../devicetree/bindings/arm/mediatek.yaml | 4 +
.../mediatek,mt6577-sysirq.yaml | 1 +
.../devicetree/bindings/serial/mediatek,uart.yaml | 1 +
.../devicetree/bindings/timer/mediatek,timer.yaml | 1 +
.../bindings/watchdog/mediatek,mtk-wdt.yaml | 1 +
arch/arm64/boot/dts/mediatek/Makefile | 1 +
.../boot/dts/mediatek/mt6768-xiaomi-merlin.dts | 42 +++
arch/arm64/boot/dts/mediatek/mt6768.dtsi | 418 +++++++++++++++++++++
drivers/watchdog/mtk_wdt.c | 22 ++
include/dt-bindings/reset/mediatek,mt6768-wdt.h | 19 +
10 files changed, 510 insertions(+)
---
base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
change-id: 20261126-6768-init-452b4db23703
Best regards,
--
Roman Vivchar <rva333@protonmail.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/8] dt-bindings: arm: mediatek: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 2/8] dt-bindings: serial: mediatek,uart: " Roman Vivchar via B4 Relay
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add Xiaomi Redmi Note 9 smartphone based on the MediaTek mt6768 SoC.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml
index 26f096587631..37189fb177c7 100644
--- a/Documentation/devicetree/bindings/arm/mediatek.yaml
+++ b/Documentation/devicetree/bindings/arm/mediatek.yaml
@@ -58,6 +58,10 @@ properties:
- enum:
- mediatek,mt6765-evb
- const: mediatek,mt6765
+ - items:
+ - enum:
+ - xiaomi,merlin
+ - const: mediatek,mt6768
- items:
- enum:
- mediatek,mt6779-evb
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/8] dt-bindings: serial: mediatek,uart: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 1/8] dt-bindings: arm: mediatek: add mt6768 Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 3/8] dt-bindings: watchdog: mediatek,mtk-wdt: " Roman Vivchar via B4 Relay
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add a compatible string for the mt6768 UART that is compatible with the
mt6577.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
index 5bd8a8853ae0..1ef0629c6015 100644
--- a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
+++ b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml
@@ -31,6 +31,7 @@ properties:
- mediatek,mt6589-uart
- mediatek,mt6755-uart
- mediatek,mt6765-uart
+ - mediatek,mt6768-uart
- mediatek,mt6779-uart
- mediatek,mt6795-uart
- mediatek,mt6797-uart
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/8] dt-bindings: watchdog: mediatek,mtk-wdt: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 1/8] dt-bindings: arm: mediatek: add mt6768 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 2/8] dt-bindings: serial: mediatek,uart: " Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 4/8] dt-bindings: timer: mediatek,timer: " Roman Vivchar via B4 Relay
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add a compatible string for the MT6768 watchdog and a binding header
with its reset IDs.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
.../bindings/watchdog/mediatek,mtk-wdt.yaml | 1 +
include/dt-bindings/reset/mediatek,mt6768-wdt.h | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
index 72abc9cdc007..55e687b4a6fa 100644
--- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
+++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
@@ -23,6 +23,7 @@ properties:
- mediatek,mt2712-wdt
- mediatek,mt6589-wdt
- mediatek,mt6735-wdt
+ - mediatek,mt6768-wdt
- mediatek,mt6795-wdt
- mediatek,mt6797-wdt
- mediatek,mt6833-wdt
diff --git a/include/dt-bindings/reset/mediatek,mt6768-wdt.h b/include/dt-bindings/reset/mediatek,mt6768-wdt.h
new file mode 100644
index 000000000000..d5af8f106ad4
--- /dev/null
+++ b/include/dt-bindings/reset/mediatek,mt6768-wdt.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+#ifndef _DT_BINDINGS_RESET_MEDIATEK_MT6768_WDT_H_
+#define _DT_BINDINGS_RESET_MEDIATEK_MT6768_WDT_H_
+
+#define MT6768_TOPRGU_MM_RST 0
+#define MT6768_TOPRGU_MFG_RST 1
+#define MT6768_TOPRGU_VENC_RST 2
+#define MT6768_TOPRGU_VDEC_RST 3
+#define MT6768_TOPRGU_IMG_RST 4
+#define MT6768_TOPRGU_MD_RST 5
+#define MT6768_TOPRGU_CONN_RST 6
+#define MT6768_TOPRGU_APMIXED_RST 7
+#define MT6768_TOPRGU_CONN_MCU_RST 8
+#define MT6768_TOPRGU_C2K_RST 9
+#define MT6768_TOPRGU_AUDIO_RST 10
+#define MT6768_TOPRGU_CAMSYS_RST 11
+
+#endif /* _DT_BINDINGS_RESET_MEDIATEK_MT6768_WDT_H_ */
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/8] dt-bindings: timer: mediatek,timer: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (2 preceding siblings ...)
2026-11-26 12:39 ` [PATCH 3/8] dt-bindings: watchdog: mediatek,mtk-wdt: " Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 5/8] dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: " Roman Vivchar via B4 Relay
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add a compatible string for the mt6768 systimer that is compatible with
the mt6765.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
Documentation/devicetree/bindings/timer/mediatek,timer.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/timer/mediatek,timer.yaml b/Documentation/devicetree/bindings/timer/mediatek,timer.yaml
index 337580dc77d8..6abb62145621 100644
--- a/Documentation/devicetree/bindings/timer/mediatek,timer.yaml
+++ b/Documentation/devicetree/bindings/timer/mediatek,timer.yaml
@@ -40,6 +40,7 @@ properties:
# SYST Timers
- items:
- enum:
+ - mediatek,mt6768-timer
- mediatek,mt7629-timer
- mediatek,mt8183-timer
- mediatek,mt8186-timer
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/8] dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (3 preceding siblings ...)
2026-11-26 12:39 ` [PATCH 4/8] dt-bindings: timer: mediatek,timer: " Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 6/8] watchdog: mediatek: " Roman Vivchar via B4 Relay
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add a compatible string for the mt6768 sysirq that is compatible with
the mt6577.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
.../devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml
index b94fc3cec175..2c59a07b15de 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml
@@ -28,6 +28,7 @@ properties:
- mediatek,mt6592-sysirq
- mediatek,mt6755-sysirq
- mediatek,mt6765-sysirq
+ - mediatek,mt6768-sysirq
- mediatek,mt6779-sysirq
- mediatek,mt6795-sysirq
- mediatek,mt6797-sysirq
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/8] watchdog: mediatek: add mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (4 preceding siblings ...)
2026-11-26 12:39 ` [PATCH 5/8] dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: " Roman Vivchar via B4 Relay
@ 2026-11-26 12:39 ` Roman Vivchar via B4 Relay
2026-11-26 12:40 ` [PATCH 7/8] arm64: dts: mediatek: add initial mt6768 support Roman Vivchar via B4 Relay
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Add support for mt6768 watchdog, which provides 12 software resets.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
drivers/watchdog/mtk_wdt.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
index d180727986f2..45d56e8b5ef0 100644
--- a/drivers/watchdog/mtk_wdt.c
+++ b/drivers/watchdog/mtk_wdt.c
@@ -11,6 +11,7 @@
#include <dt-bindings/reset/mt2712-resets.h>
#include <dt-bindings/reset/mediatek,mt6735-wdt.h>
+#include <dt-bindings/reset/mediatek,mt6768-wdt.h>
#include <dt-bindings/reset/mediatek,mt6795-resets.h>
#include <dt-bindings/reset/mediatek,mt6797-wdt.h>
#include <dt-bindings/reset/mediatek,mt8167-wdt.h>
@@ -107,6 +108,26 @@ static const struct mtk_wdt_data mt6735_data = {
.toprgu_sw_rst_num = MT6735_TOPRGU_RST_NUM,
};
+static const u8 mt6768_toprgu_sw_rst_tb[] = {
+ [MT6768_TOPRGU_MM_RST] = 1,
+ [MT6768_TOPRGU_MFG_RST] = 2,
+ [MT6768_TOPRGU_VENC_RST] = 3,
+ [MT6768_TOPRGU_VDEC_RST] = 4,
+ [MT6768_TOPRGU_IMG_RST] = 5,
+ [MT6768_TOPRGU_MD_RST] = 7,
+ [MT6768_TOPRGU_CONN_RST] = 9,
+ [MT6768_TOPRGU_APMIXED_RST] = 10,
+ [MT6768_TOPRGU_CONN_MCU_RST] = 12,
+ [MT6768_TOPRGU_C2K_RST] = 15,
+ [MT6768_TOPRGU_AUDIO_RST] = 17,
+ [MT6768_TOPRGU_CAMSYS_RST] = 18,
+};
+
+static const struct mtk_wdt_data mt6768_data = {
+ .toprgu_sw_rst_tb = mt6768_toprgu_sw_rst_tb,
+ .toprgu_sw_rst_num = ARRAY_SIZE(mt6768_toprgu_sw_rst_tb),
+};
+
static const struct mtk_wdt_data mt6795_data = {
.toprgu_sw_rst_num = MT6795_TOPRGU_SW_RST_NUM,
};
@@ -632,6 +653,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = {
{ .compatible = "mediatek,mt2712-wdt", .data = &mt2712_data },
{ .compatible = "mediatek,mt6589-wdt", .data = &mt6589_data },
{ .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data },
+ { .compatible = "mediatek,mt6768-wdt", .data = &mt6768_data },
{ .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data },
{ .compatible = "mediatek,mt6797-wdt", .data = &mt6797_data },
{ .compatible = "mediatek,mt6833-wdt" },
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/8] arm64: dts: mediatek: add initial mt6768 support
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (5 preceding siblings ...)
2026-11-26 12:39 ` [PATCH 6/8] watchdog: mediatek: " Roman Vivchar via B4 Relay
@ 2026-11-26 12:40 ` Roman Vivchar via B4 Relay
2026-11-26 12:40 ` [PATCH 8/8] arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support Roman Vivchar via B4 Relay
2026-11-26 12:46 ` [PATCH 0/8] arm64: mediatek: initial support for mt6768 sashiko-bot
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:40 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
MediaTek mt6768 is a popular budget SoC for smartphones, released in 2020
and still used for low-end devices. It features 2x Cortex-A75 cores,
6x Cortex-A55 cores and Mali-G52 MC2 GPU. The CPU and GPU clocks depend
on the exact SoC variant.
This SoC has multiple variants released under different marketing names.
This includes, but is not limited to: Helio P65/G70/G80/G81/G85/G88/G91/
G92. The only differences between them are CPU/GPU speedbins and LPDDR4X
memory support.
Add initial devicetree for the mt6768 with support for two UARTs,
systimer, watchdog, and interrupt controllers.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
arch/arm64/boot/dts/mediatek/mt6768.dtsi | 418 +++++++++++++++++++++++++++++++
1 file changed, 418 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt6768.dtsi b/arch/arm64/boot/dts/mediatek/mt6768.dtsi
new file mode 100644
index 000000000000..d06a98f35960
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt6768.dtsi
@@ -0,0 +1,418 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2025-2026 Roman Vivchar <rva333@protonmail.com>
+ */
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+ interrupt-parent = <&sysirq>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x000>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_0>;
+ #cooling-cells = <2>;
+
+ l2_0: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu1: cpu@100 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x100>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_1>;
+ #cooling-cells = <2>;
+
+ l2_1: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu2: cpu@200 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x200>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_2>;
+ #cooling-cells = <2>;
+
+ l2_2: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu3: cpu@300 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x300>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_3>;
+ #cooling-cells = <2>;
+
+ l2_3: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu4: cpu@400 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x400>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_4>;
+ #cooling-cells = <2>;
+
+ l2_4: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu5: cpu@500 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x500>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <495>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <85>;
+ i-cache-size = <32768>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <128>;
+ d-cache-size = <32768>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <128>;
+ next-level-cache = <&l2_5>;
+ #cooling-cells = <2>;
+
+ l2_5: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <65536>;
+ cache-line-size = <64>;
+ cache-sets = <256>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu6: cpu@600 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a75";
+ reg = <0x600>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <1024>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <275>;
+ i-cache-size = <65536>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <65536>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <256>;
+ next-level-cache = <&l2_6>;
+ #cooling-cells = <2>;
+
+ l2_6: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <262144>;
+ cache-line-size = <64>;
+ cache-sets = <512>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu7: cpu@700 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a75";
+ reg = <0x700>;
+ enable-method = "psci";
+ capacity-dmips-mhz = <1024>;
+ cpu-idle-states = <&cpu_sleep>;
+ dynamic-power-coefficient = <275>;
+ i-cache-size = <65536>;
+ i-cache-line-size = <64>;
+ i-cache-sets = <256>;
+ d-cache-size = <65536>;
+ d-cache-line-size = <64>;
+ d-cache-sets = <256>;
+ next-level-cache = <&l2_7>;
+ #cooling-cells = <2>;
+
+ l2_7: l2-cache {
+ compatible = "cache";
+ cache-level = <2>;
+ cache-size = <262144>;
+ cache-line-size = <64>;
+ cache-sets = <512>;
+ cache-unified;
+ next-level-cache = <&l3_0>;
+ };
+ };
+
+ cpu-map {
+ cluster0 {
+ core0 {
+ cpu = <&cpu0>;
+ };
+
+ core1 {
+ cpu = <&cpu1>;
+ };
+
+ core2 {
+ cpu = <&cpu2>;
+ };
+
+ core3 {
+ cpu = <&cpu3>;
+ };
+
+ core4 {
+ cpu = <&cpu4>;
+ };
+
+ core5 {
+ cpu = <&cpu5>;
+ };
+
+ core6 {
+ cpu = <&cpu6>;
+ };
+
+ core7 {
+ cpu = <&cpu7>;
+ };
+ };
+ };
+
+ idle-states {
+ entry-method = "psci";
+
+ cpu_sleep: cpu-sleep {
+ compatible = "arm,idle-state";
+ local-timer-stop;
+ entry-latency-us = <200>;
+ exit-latency-us = <400>;
+ min-residency-us = <1200>;
+ arm,psci-suspend-param = <0x00010001>;
+ };
+ };
+
+ l3_0: l3-cache {
+ compatible = "cache";
+ cache-level = <3>;
+ cache-size = <1048576>;
+ cache-line-size = <64>;
+ cache-sets = <1024>;
+ cache-unified;
+ };
+ };
+
+ dsu-pmu {
+ compatible = "arm,dsu-pmu";
+ interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+ cpus = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>,
+ <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>;
+ };
+
+ clk13m: fixed-factor-clock-13m {
+ compatible = "fixed-factor-clock";
+ #clock-cells = <0>;
+ clocks = <&clk26m>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ clock-output-names = "clk13m";
+ };
+
+ clk26m: oscillator-26m {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <26000000>;
+ clock-output-names = "clk26m";
+ };
+
+ pmu-a55 {
+ compatible = "arm,cortex-a55-pmu";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
+ };
+
+ pmu-a75 {
+ compatible = "arm,cortex-a75-pmu";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
+ };
+
+ psci {
+ compatible = "arm,psci-1.0";
+ method = "smc";
+ };
+
+ soc {
+ compatible = "simple-bus";
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ gic: interrupt-controller@c000000 {
+ compatible = "arm,gic-v3";
+ reg = <0 0xc000000 0 0x40000>,
+ <0 0xc040000 0 0x200000>;
+ #interrupt-cells = <4>;
+ interrupt-parent = <&gic>;
+ interrupt-controller;
+ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
+
+ ppi-partitions {
+ ppi_cluster0: interrupt-partition-0 {
+ affinity = <&cpu0 &cpu1 &cpu2 &cpu3 &cpu4 &cpu5>;
+ };
+
+ ppi_cluster1: interrupt-partition-1 {
+ affinity = <&cpu6 &cpu7>;
+ };
+ };
+ };
+
+ sysirq: interrupt-controller@c53a650 {
+ compatible = "mediatek,mt6768-sysirq", "mediatek,mt6577-sysirq";
+ reg = <0 0xc53a650 0 0x50>;
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ interrupt-parent = <&gic>;
+ };
+
+ watchdog: watchdog@10007000 {
+ compatible = "mediatek,mt6768-wdt";
+ reg = <0 0x10007000 0 0x100>;
+ #reset-cells = <1>;
+ };
+
+ systimer: timer@10017000 {
+ compatible = "mediatek,mt6768-timer", "mediatek,mt6765-timer";
+ reg = <0 0x10017000 0 0x1000>;
+ interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk13m>;
+ };
+
+ uart0: serial@11002000 {
+ compatible = "mediatek,mt6768-uart", "mediatek,mt6577-uart";
+ reg = <0 0x11002000 0 0x1000>;
+ interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&clk26m>, <&clk26m>;
+ clock-names = "baud", "bus";
+
+ status = "disabled";
+ };
+
+ uart1: serial@11003000 {
+ compatible = "mediatek,mt6768-uart", "mediatek,mt6577-uart";
+ reg = <0 0x11003000 0 0x1000>;
+ interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
+ clocks = <&clk26m>, <&clk26m>;
+ clock-names = "baud", "bus";
+
+ status = "disabled";
+ };
+ };
+
+ timer {
+ compatible = "arm,armv8-timer";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
+ <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
+ <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
+ <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>,
+ <GIC_PPI 12 IRQ_TYPE_LEVEL_LOW 0>;
+ };
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 8/8] arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (6 preceding siblings ...)
2026-11-26 12:40 ` [PATCH 7/8] arm64: dts: mediatek: add initial mt6768 support Roman Vivchar via B4 Relay
@ 2026-11-26 12:40 ` Roman Vivchar via B4 Relay
2026-11-26 12:46 ` [PATCH 0/8] arm64: mediatek: initial support for mt6768 sashiko-bot
8 siblings, 0 replies; 10+ messages in thread
From: Roman Vivchar via B4 Relay @ 2026-11-26 12:40 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Sean Wang, Greg Kroah-Hartman,
Jiri Slaby, Wim Van Sebroeck, Guenter Roeck, Philipp Zabel,
Daniel Lezcano, Thomas Gleixner, Radu Rendec
Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
linux-serial, linux-watchdog, Roman Vivchar
From: Roman Vivchar <rva333@protonmail.com>
Xiaomi Redmi Note 9 is a budget phone released in 2020. It features up to
6 GB of LPDDR4X memory and 128 GB eMMC, powered by the MediaTek Helio G85
SoC.
Add initial devicetree support for this device. It can currently boot to
a UART shell and use the simple-framebuffer provided by U-Boot for
display output.
Signed-off-by: Roman Vivchar <rva333@protonmail.com>
---
arch/arm64/boot/dts/mediatek/Makefile | 1 +
.../boot/dts/mediatek/mt6768-xiaomi-merlin.dts | 42 ++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile
index a86fb313b1a9..4fe50c95321f 100644
--- a/arch/arm64/boot/dts/mediatek/Makefile
+++ b/arch/arm64/boot/dts/mediatek/Makefile
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_MEDIATEK) += mt2712-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6755-evb.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt6768-xiaomi-merlin.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6779-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-sony-xperia-m5.dtb
diff --git a/arch/arm64/boot/dts/mediatek/mt6768-xiaomi-merlin.dts b/arch/arm64/boot/dts/mediatek/mt6768-xiaomi-merlin.dts
new file mode 100644
index 000000000000..f95bac31caf3
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt6768-xiaomi-merlin.dts
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2025-2026 Roman Vivchar <rva333@protonmail.com>
+ */
+
+/dts-v1/;
+#include "mt6768.dtsi"
+
+/ {
+ model = "Xiaomi Redmi Note 9";
+ compatible = "xiaomi,merlin", "mediatek,mt6768";
+ chassis-type = "handset";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:921600n8";
+ };
+
+ memory@40000000 {
+ device_type = "memory";
+ reg = <0 0x40000000 0 0>;
+ };
+
+ reserved-memory {
+ ranges;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ /* 384 KiB reserved for ARM Trusted Firmware */
+ secmon@4ce00000 {
+ reg = <0 0x4ce00000 0 0x60000>;
+ no-map;
+ };
+ };
+};
+
+&uart0 {
+ status = "okay";
+};
--
2.56.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/8] arm64: mediatek: initial support for mt6768
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
` (7 preceding siblings ...)
2026-11-26 12:40 ` [PATCH 8/8] arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support Roman Vivchar via B4 Relay
@ 2026-11-26 12:46 ` sashiko-bot
8 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-11-26 12:46 UTC (permalink / raw)
To: Roman Vivchar; +Cc: linux-serial
Sashiko has reviewed this 8-patch series and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-6768-init-v1-0-abc364a2447e@protonmail.com
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-11-26 12:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 12:39 [PATCH 0/8] arm64: mediatek: initial support for mt6768 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 1/8] dt-bindings: arm: mediatek: add mt6768 Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 2/8] dt-bindings: serial: mediatek,uart: " Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 3/8] dt-bindings: watchdog: mediatek,mtk-wdt: " Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 4/8] dt-bindings: timer: mediatek,timer: " Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 5/8] dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: " Roman Vivchar via B4 Relay
2026-11-26 12:39 ` [PATCH 6/8] watchdog: mediatek: " Roman Vivchar via B4 Relay
2026-11-26 12:40 ` [PATCH 7/8] arm64: dts: mediatek: add initial mt6768 support Roman Vivchar via B4 Relay
2026-11-26 12:40 ` [PATCH 8/8] arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support Roman Vivchar via B4 Relay
2026-11-26 12:46 ` [PATCH 0/8] arm64: mediatek: initial support for mt6768 sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox