Skip to contentSkip to conversation

arm64: mediatek: initial support for mt6768

PATCH New Roman Vivchar 2 participants 10 messages Nov 26

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

cover arm64: mediatek: initial support for mt6768

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

---
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,

Signature · 1 line
Roman Vivchar <[email protected]>
#1 lore raw

PATCH 1/8 dt-bindings: arm: mediatek: add mt6768

Add Xiaomi Redmi Note 9 smartphone based on the MediaTek mt6768 SoC.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
index 26f096587631..37189fb177c7 100644
@@ -58,6 +58,10 @@ properties:
           - enum:
               - mediatek,mt6765-evb
           - const: mediatek,mt6765
+      - items:
+          - enum:
+              - xiaomi,merlin
+          - const: mediatek,mt6768
       - items:
           - enum:
               - mediatek,mt6779-evb
Signature · 1 line
2.56.1
#2 lore raw

PATCH 2/8 dt-bindings: serial: mediatek,uart: add mt6768

In reply to Roman Vivchar

Add a compatible string for the mt6768 UART that is compatible with the mt6577.

---
 Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/serial/mediatek,uart.yaml +1 -0
index 5bd8a8853ae0..1ef0629c6015 100644
@@ -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
Signature · 1 line
2.56.1
#3 lore raw

PATCH 3/8 dt-bindings: watchdog: mediatek,mtk-wdt: add mt6768

In reply to Roman Vivchar

Add a compatible string for the MT6768 watchdog and a binding header with its reset IDs.

---
 .../bindings/watchdog/mediatek,mtk-wdt.yaml           |  1 +
 include/dt-bindings/reset/mediatek,mt6768-wdt.h       | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +1 -0
index 72abc9cdc007..55e687b4a6fa 100644
@@ -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
include/dt-bindings/reset/mediatek,mt6768-wdt.h new file +19 -0
new file mode 100644
index 000000000000..d5af8f106ad4
@@ -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_ */
Signature · 1 line
2.56.1
#4 lore raw

PATCH 4/8 dt-bindings: timer: mediatek,timer: add mt6768

In reply to Roman Vivchar

Add a compatible string for the mt6768 systimer that is compatible with the mt6765.

---
 Documentation/devicetree/bindings/timer/mediatek,timer.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/mediatek,timer.yaml +1 -0
index 337580dc77d8..6abb62145621 100644
@@ -40,6 +40,7 @@ properties:
       # SYST Timers
       - items:
           - enum:
+              - mediatek,mt6768-timer
               - mediatek,mt7629-timer
               - mediatek,mt8183-timer
               - mediatek,mt8186-timer
Signature · 1 line
2.56.1
#5 lore raw

PATCH 5/8 dt-bindings: interrupt-controller: mediatek,mt6577-sysirq: add mt6768

In reply to Roman Vivchar

Add a compatible string for the mt6768 sysirq that is compatible with the mt6577.

---
 .../devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/mediatek,mt6577-sysirq.yaml +1 -0
index b94fc3cec175..2c59a07b15de 100644
@@ -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
Signature · 1 line
2.56.1
#6 lore raw

PATCH 6/8 watchdog: mediatek: add mt6768

In reply to Roman Vivchar

Add support for mt6768 watchdog, which provides 12 software resets.

---
 drivers/watchdog/mtk_wdt.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
drivers/watchdog/mtk_wdt.c +22 -0
index d180727986f2..45d56e8b5ef0 100644
@@ -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" },
Signature · 1 line
2.56.1
#7 lore raw

PATCH 7/8 arm64: dts: mediatek: add initial mt6768 support

In reply to Roman Vivchar

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.

---
 arch/arm64/boot/dts/mediatek/mt6768.dtsi | 418 +++++++++++++++++++++++++++++++
 1 file changed, 418 insertions(+)
arch/arm64/boot/dts/mediatek/mt6768.dtsi new file +418 -0
new file mode 100644
index 000000000000..d06a98f35960
@@ -0,0 +1,418 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2025-2026 Roman Vivchar <[email protected]>
+ */
+
+#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>;
+	};
+};
Signature · 1 line
2.56.1
#8 lore raw

PATCH 8/8 arm64: dts: mediatek: mt6768: add Xiaomi Redmi Note 9 support

In reply to Roman Vivchar

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.

---
 arch/arm64/boot/dts/mediatek/Makefile              |  1 +
 .../boot/dts/mediatek/mt6768-xiaomi-merlin.dts     | 42 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)
arch/arm64/boot/dts/mediatek/Makefile +1 -0
index a86fb313b1a9..4fe50c95321f 100644
@@ -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
arch/arm64/boot/dts/mediatek/mt6768-xiaomi-merlin.dts new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
2.56.1