arm64: dts: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
Subsystems (4)
v2 cover arm64: dts: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
This series adds basic support for MediaTek's MT6833 (Dimensity 700) and for the Xiaomi Redmi Note 13 5G (gold), which is built on it: the eight cores with their caches and PMUs, PSCI, the architected timer, the GIC, the watchdog and the first UART, and on the phone the framebuffer its bootloader leaves lit and a ramoops region.
With it the phone boots to an initramfs on the framebuffer console, with all eight cores online, both PMUs registered and the watchdog running; UART0, which has no connector on gold, passes an internal loopback test. The pin, clock and power domain controllers, the PMIC wrapper, UFS and USB are to follow in later series.
Stock LK cannot boot a mainline DT directly, as its DT overlay step expects vendor nodes. As on other MediaTek phones, this DT relies on the bootloader (tested with kaeru, an open-source LK payload) to fill in /memory and copy the firmware carveouts into /reserved-memory from the FDT prepared by LK.
The watchdog gets a compatible of its own in v2, which the driver matches in patch 3; the watchdog node in patch 5 needs that patch to probe.
---
Changes in v2:
- Make mediatek,mt6833-wdt a compatible of its own instead of falling back to mediatek,mt6589-wdt, whose TOPRGU resets MT6833 doesn't share, and match it in mtk_wdt.c without reset data (Roman)
- dts: leave the memory size to the bootloader, and keep only ramoops and the framebuffer in reserved-memory (Roman)
- Collect Roman's Reviewed-by and Krzysztof's Acked-by tags on the arm and serial bindings
- Drop Krzysztof's Acked-by from the watchdog binding, which changed
- Link to v1: https://patch.msgid.link/[email protected]
---
Rui Cao (5):
dt-bindings: arm: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
watchdog: mediatek: Add MT6833
dt-bindings: serial: mediatek,uart: Add MT6833
arm64: dts: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
.../devicetree/bindings/arm/mediatek.yaml | 4 + .../devicetree/bindings/serial/mediatek,uart.yaml | 1 + .../bindings/watchdog/mediatek,mtk-wdt.yaml | 1 + arch/arm64/boot/dts/mediatek/Makefile | 1 + .../arm64/boot/dts/mediatek/mt6833-xiaomi-gold.dts | 57 ++++ arch/arm64/boot/dts/mediatek/mt6833.dtsi | 341 +++++++++++++++++++++ drivers/watchdog/mtk_wdt.c | 1 + 7 files changed, 406 insertions(+)
---
base-commit: d48723711bae9b8cdc56719c448ba42fef28cbee
change-id: 20261107-mt6833-base-5a974a951add
Best regards,
Signature · 1 line
Rui Cao <[email protected]>
PATCH v2 1/5 dt-bindings: arm: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
Add MediaTek's MT6833 (Dimensity 700) and the Xiaomi Redmi Note 13 5G, codenamed gold, which is built on it.
--- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +4 -0
@@ -72,6 +72,10 @@ properties: - archermind,mt6797-x20-dev - mediatek,mt6797-evb - const: mediatek,mt6797 + - items: + - enum: + - xiaomi,gold + - const: mediatek,mt6833 - items: - enum: - bananapi,bpi-r64
Signature · 1 line
Git-157)
[email protected]
AI reviewRe: [PATCH v2 1/5] dt-bindings: arm: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
Sashiko has reviewed this patch and found no issues.
Quoted 8 lines
From: Rui Cao <[email protected]>
Add MediaTek's MT6833 (Dimensity 700) and the Xiaomi Redmi Note 13 5G, codenamed gold, which is built on it.
Reviewed-by Roman Vivchar <[email protected]>Signed-off-by Rui Cao <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH v2 2/5 dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
In reply to Rui CaoAdd MediaTek's MT6833 (Dimensity 700) as a compatible of its own.
It can't fall back to mediatek,mt6589-wdt, which also describes MT6589's twelve TOPRGU reset lines: MediaTek's kernel for MT6833 resets the connectivity CPU through bit 12 of WDT_SWSYSRST, past them, and has no full reset table for the SoC to take one from.
--- Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +1 -0
@@ -24,6 +24,7 @@ properties: - mediatek,mt6589-wdt - mediatek,mt6735-wdt - mediatek,mt6795-wdt + - mediatek,mt6833-wdt - mediatek,mt7986-wdt - mediatek,mt7988-wdt - mediatek,mt8167-wdt
Signature · 1 line
Git-157)
[email protected]
AI reviewRe: [PATCH v2 2/5] dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
Sashiko has reviewed this patch and found no issues.
Quoted 10 lines
From: Rui Cao <[email protected]>
Add MediaTek's MT6833 (Dimensity 700) as a compatible of its own.
It can't fall back to mediatek,mt6589-wdt, which also describes MT6589's twelve TOPRGU reset lines: MediaTek's kernel for MT6833 resets the connectivity CPU through bit 12 of
WDT_SWSYSRST, past them, and has no full reset table for the SoC to take one from.Signed-off-by Rui Cao <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v2 2/5] dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
In reply to Rui CaoQuoted 10 lines · On 11/17/26 10:11, Rui Cao via B4 Relay wrote:
From: Rui Cao <[email protected]>
Add MediaTek's MT6833 (Dimensity 700) as a compatible of its own.
It can't fall back to mediatek,mt6589-wdt, which also describes MT6589's twelve TOPRGU reset lines: MediaTek's kernel for MT6833 resets the connectivity CPU through bit 12 of
WDT_SWSYSRST, past them, and has no full reset table for the SoC to take one from.Signed-off-by Rui Cao <[email protected]>
Re: [PATCH v2 2/5] dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
In reply to Rui CaoQuoted 11 lines · Rui Cao
Add MediaTek's MT6833 (Dimensity 700) as a compatible of its own.
It can't fall back to mediatek,mt6589-wdt, which also describes MT6589's twelve TOPRGU reset lines: MediaTek's kernel for MT6833 resets the connectivity CPU through bit 12 of
WDT_SWSYSRST, past them, and has no full reset table for the SoC to take one from.Signed-off-by Rui Cao <[email protected]>--- Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 1 + 1 file changed, 1 insertion(+)
Best regards,
Krzysztof
Re: [PATCH v2 2/5] dt-bindings: watchdog: mediatek,mtk-wdt: Add MT6833
In reply to Rui CaoQuoted 4 lines · Rui Cao
From: Rui Cao <[email protected]>
Add MediaTek's MT6833 (Dimensity 700) as a compatible of its own.
Quoted 8 lines
It can't fall back to mediatek,mt6589-wdt, which also describes MT6589's twelve TOPRGU reset lines: MediaTek's kernel for MT6833 resets the connectivity CPU through bit 12 of
WDT_SWSYSRST, past them, and has no full reset table for the SoC to take one from.Signed-off-by Rui Cao <[email protected]>Reviewed-by AngeloGioacchino Del Regtno <[email protected]>
Applied.
Thanks,
Guenter
PATCH v2 3/5 watchdog: mediatek: Add MT6833
In reply to Rui CaoMatch MT6833's watchdog. It works as MT6589's, but its TOPRGU reset layout isn't known well enough to describe, so it gets no match data and the driver registers no reset controller for it.
--- drivers/watchdog/mtk_wdt.c | 1 + 1 file changed, 1 insertion(+)
drivers/watchdog/mtk_wdt.c +1 -0
@@ -595,6 +595,7 @@ static const struct of_device_id mtk_wdt_dt_ids[] = { { .compatible = "mediatek,mt6589-wdt", .data = &mt6589_data }, { .compatible = "mediatek,mt6735-wdt", .data = &mt6735_data }, { .compatible = "mediatek,mt6795-wdt", .data = &mt6795_data }, + { .compatible = "mediatek,mt6833-wdt" }, { .compatible = "mediatek,mt7986-wdt", .data = &mt7986_data }, { .compatible = "mediatek,mt7988-wdt", .data = &mt7988_data }, { .compatible = "mediatek,mt8167-wdt", .data = &mt8167_data },
Signature · 1 line
Git-157)
[email protected]
AI reviewRe: [PATCH v2 3/5] watchdog: mediatek: Add MT6833
Sashiko has reviewed this patch and found no issues.
Quoted 7 lines
From: Rui Cao <[email protected]>
Match MT6833's watchdog. It works as MT6589's, but its TOPRGU reset layout isn't known well enough to describe, so it gets no match data and the driver registers no reset controller for it.
Signed-off-by Rui Cao <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH v2 3/5] watchdog: mediatek: Add MT6833
In reply to Rui CaoQuoted 7 lines · On 11/17/26 10:11, Rui Cao via B4 Relay wrote:
From: Rui Cao <[email protected]>
Match MT6833's watchdog. It works as MT6589's, but its TOPRGU reset layout isn't known well enough to describe, so it gets no match data and the driver registers no reset controller for it.
Signed-off-by Rui Cao <[email protected]>
Hopefully we can get the TOPRGU reset controller layout somehow somewhere, because it's a pity not to have it... though, I think that the only reset that would be actually needed is the CONN one (for the modem) and nothing else.
So
Re: [PATCH v2 3/5] watchdog: mediatek: Add MT6833
In reply to Rui CaoQuoted 8 lines · Rui Cao
From: Rui Cao <[email protected]>
Match MT6833's watchdog. It works as MT6589's, but its TOPRGU reset layout isn't known well enough to describe, so it gets no match data and the driver registers no reset controller for it.
Signed-off-by Rui Cao <[email protected]>Reviewed-by AngeloGioacchino Del Regno <[email protected]>
Applied.
Thanks,
Guenter
PATCH v2 4/5 dt-bindings: serial: mediatek,uart: Add MT6833
In reply to Rui CaoAdd MediaTek's MT6833 (Dimensity 700). Its UARTs are MT6577-compatible:
MediaTek's MT6833 device tree gives them "mediatek,mt6577-uart" alone.
--- Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/serial/mediatek,uart.yaml +1 -0
@@ -34,6 +34,7 @@ properties: - mediatek,mt6779-uart - mediatek,mt6795-uart - mediatek,mt6797-uart + - mediatek,mt6833-uart - mediatek,mt6893-uart - mediatek,mt7622-uart - mediatek,mt7623-uart
Signature · 1 line
Git-157)
[email protected]
AI reviewRe: [PATCH v2 4/5] dt-bindings: serial: mediatek,uart: Add MT6833
Sashiko has reviewed this patch and found no issues.
Quoted 8 lines
From: Rui Cao <[email protected]>
Add MediaTek's MT6833 (Dimensity 700). Its UARTs are MT6577-compatible:
MediaTek's MT6833 device tree gives them "mediatek,mt6577-uart" alone.Reviewed-by Roman Vivchar <[email protected]>Signed-off-by Rui Cao <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
PATCH v2 5/5 arm64: dts: mediatek: Add MT6833 and the Xiaomi Redmi Note 13 5G
In reply to Rui CaoAdd a device tree for MediaTek's MT6833 (Dimensity 700): its eight cores, six Cortex-A55 and two Cortex-A76 in one DynamIQ cluster, with their caches and PMUs, PSCI, the architected timer, the GICv3, the watchdog and the first UART.
Add the Xiaomi Redmi Note 13 5G (gold) on it, with the framebuffer the bootloader leaves the panel scanning out and a ramoops region. The memory size and the regions reserved for the firmware the bootloader starts depend on the RAM variant, so they are left to the bootloader:
the memory node has no size, and reserved-memory holds only the regions the kernel uses itself.
The cache sizes are the ones the cores report in CCSIDR_EL1. The bootloader programs CNTFRQ_EL0 (13 MHz), so the timer has no clock-frequency.
--- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../arm64/boot/dts/mediatek/mt6833-xiaomi-gold.dts | 57 ++++ arch/arm64/boot/dts/mediatek/mt6833.dtsi | 341 +++++++++++++++++++++ 3 files changed, 399 insertions(+)
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -6,6 +6,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-sony-xperia-m5.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt6833-xiaomi-gold.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-cudy-wr3000-v1.dtb
arch/arm64/boot/dts/mediatek/mt6833-xiaomi-gold.dts new file +57 -0
57 lines not on this page · raw message
arch/arm64/boot/dts/mediatek/mt6833.dtsi new file +341 -0
341 lines not on this page · raw message
Signature · 1 line
Git-157)
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 14 lines
From: Rui Cao <[email protected]>
Add a device tree for MediaTek's MT6833 (Dimensity 700): its eight cores, six Cortex-A55 and two Cortex-A76 in one DynamIQ cluster, with their caches and PMUs, PSCI, the architected timer, the GICv3, the watchdog and the first UART.
Add the Xiaomi Redmi Note 13 5G (gold) on it, with the framebuffer the bootloader leaves the panel scanning out and a ramoops region. The memory size and the regions reserved for the firmware the bootloader starts depend on the RAM variant, so they are left to the bootloader:
the memory node has no size, and reserved-memory holds only the regions the kernel uses itself.
Quoted 5 lines
The cache sizes are the ones the cores report in
CCSIDR_EL1. The bootloader programsCNTFRQ_EL0(13 MHz), so the timer has no clock-frequency.Signed-off-by Rui Cao <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5