Skip to contentSkip to conversation

ARM: Basic support for Amazon ford tablet (MT8127)

PATCH Applied Zakariya Hadrami 4 participants 9 messages Sep 10 – Sep 11

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

v5 cover ARM: Basic support for Amazon ford tablet (MT8127)

This series of patches adds basic support for MT8127 SoC based Amazon ford tablet.

---
Changes in v5:
- Fix model value in dts.
- Fix missing space in watchdog's compatible in dtsi.
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- Add chassis-type property to dts.
- Add missing #address-cells, #size-cells and ranges properties to dts
(sashiko report).
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- Rebase onto v7.3-rc1.
- Drop [PATCH v2 3/5] as it was superseded by upstream changes.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Move amazon ford compatible string to existing enum.
- Fix watchdog node not sorted in unit address ascending order (sashiko report).
- Move bindings documentation patches before patches implementing the bindings.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Zakariya Hadrami (4):
dt-bindings: watchdog: mediatek: Add MT8127
dt-bindings: arm: mediatek: Add MT8127 Amazon ford
ARM: dts: mediatek: mt8127: Add watchdog support
ARM: dts: mediatek: Add basic support for Amazon ford board

 .../devicetree/bindings/arm/mediatek.yaml          |  1 +
 .../bindings/watchdog/mediatek,mtk-wdt.yaml        |  1 +
 arch/arm/boot/dts/mediatek/Makefile                |  1 +
 arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts  | 54 ++++++++++++++++++++++
 arch/arm/boot/dts/mediatek/mt8127.dtsi             |  7 +++
 5 files changed, 64 insertions(+)

---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20260616-mt8127-amazon-ford-basic-1509d7052f7e

Best regards,

Signature · 1 line
Zakariya Hadrami <[email protected]>
#1 lore raw

PATCH v5 1/4 dt-bindings: watchdog: mediatek: Add MT8127

Add entry for MT8127 SoC's watchdog which is compatible with MT6589's one.

---
 Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +1 -0
index 953629cb9558..e6e4546da0aa 100644
@@ -40,6 +40,7 @@ properties:
               - mediatek,mt7622-wdt
               - mediatek,mt7623-wdt
               - mediatek,mt7629-wdt
+              - mediatek,mt8127-wdt
               - mediatek,mt8173-wdt
               - mediatek,mt8188-wdt
               - mediatek,mt8189-wdt
Signature · 1 line
2.54.0
maintainer Applied
#2 lore raw

Re: [PATCH v5 1/4] dt-bindings: watchdog: mediatek: Add MT8127

Quoted 9 lines · Zakariya Hadrami

From: Zakariya Hadrami <[email protected]>

Add entry for MT8127 SoC's watchdog which is compatible with MT6589's one.

Applied.

Thanks,
Guenter

#3 lore raw

PATCH v5 2/4 dt-bindings: arm: mediatek: Add MT8127 Amazon ford

In reply to Zakariya Hadrami

Add entry for the MT8127 based Amazon ford tablet.

---
 Documentation/devicetree/bindings/arm/mediatek.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
index cd4040ad3437..180e6e4948e7 100644
@@ -122,6 +122,7 @@ properties:
           - const: mediatek,mt7988a
       - items:
           - enum:
+              - amazon,ford
               - mediatek,mt8127-moose
           - const: mediatek,mt8127
       - items:
Signature · 1 line
2.54.0
#4 lore raw

PATCH v5 3/4 ARM: dts: mediatek: mt8127: Add watchdog support

In reply to Zakariya Hadrami

Add watchdog node and disable it by default as it was not present initially.

---
 arch/arm/boot/dts/mediatek/mt8127.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/mediatek/mt8127.dtsi +7 -0
index bd61ec7e70c0..9bdf55d2da47 100644
@@ -99,6 +99,13 @@ soc {
 		compatible = "simple-bus";
 		ranges;
 
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt8127-wdt", "mediatek,mt6589-wdt";
+			reg = <0 0x10007000 0 0x100>;
+			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
+			status = "disabled";
+		};
+
 		timer: timer@10008000 {
 			compatible = "mediatek,mt8127-timer",
 					"mediatek,mt6577-timer";
Signature · 1 line
2.54.0
#5 lore raw

Re: [PATCH v5 3/4] ARM: dts: mediatek: mt8127: Add watchdog support

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The watchdog node is disabled by default in the SoC .dtsi, which is a device tree anti-pattern for…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The watchdog node is disabled by default in the SoC .dtsi, which is a device tree anti-pattern for internal IPs without board-specific dependencies. --

commit 00ce16ebfa121cfaa7d2f6798bebf7e7aabf4c90
Author: Zakariya Hadrami <[email protected]>

ARM: dts: mediatek: mt8127: Add watchdog support

This commit adds the watchdog node for MT8127 and explicitly disables it by default in the SoC dtsi.

arch/arm/boot/dts/mediatek/mt8127.dtsi soc { · line 106

Quoted 13 lines
arch/arm/boot/dts/mediatek/mt8127.dtsi +5 -0
index bd61ec7e70c0c..9bdf55d2da479 100644
@@ -99,6 +99,13 @@ soc {
 		compatible = "simple-bus";
 		ranges;
 
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt8127-wdt", "mediatek,mt6589-wdt";
+			reg = <0 0x10007000 0 0x100>;
+			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
+			status = "disabled";

[Severity: Low]
Is it necessary to disable this watchdog by default?

The watchdog timer is a core internal IP of the SoC that does not require board-specific configuration. Standard device tree practice is to omit status = "disabled" for internal IPs in the SoC .dtsi file.

The commit message states "disable it by default as it was not present initially". Will this require every board file inheriting this .dtsi to redundantly set status = "okay"?

Quoted 1 line
arch/arm/boot/dts/mediatek/mt8127.dtsi +1 -0
+		};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#6 lore raw

Re: [PATCH v5 3/4] ARM: dts: mediatek: mt8127: Add watchdog support

Quoted 29 lines · On Thu, Sep 10, 2026 at 01:36:04PM +0000, [email protected] wrote:

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The watchdog node is disabled by default in the SoC .dtsi, which is a device tree anti-pattern for internal IPs without board-specific dependencies. --

commit 00ce16ebfa121cfaa7d2f6798bebf7e7aabf4c90
Author: Zakariya Hadrami <[email protected]>

ARM: dts: mediatek: mt8127: Add watchdog support

This commit adds the watchdog node for MT8127 and explicitly disables it by default in the SoC dtsi.

arch/arm/boot/dts/mediatek/mt8127.dtsi soc { · line 106

Quoted 13 lines
arch/arm/boot/dts/mediatek/mt8127.dtsi +5 -0
index bd61ec7e70c0c..9bdf55d2da479 100644
@@ -99,6 +99,13 @@ soc {
 		compatible = "simple-bus";
 		ranges;
 
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt8127-wdt", "mediatek,mt6589-wdt";
+			reg = <0 0x10007000 0 0x100>;
+			interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
+			status = "disabled";

[Severity: Low]
Is it necessary to disable this watchdog by default?

Quoted 8 lines

The watchdog timer is a core internal IP of the SoC that does not require board-specific configuration. Standard device tree practice is to omit status = "disabled" for internal IPs in the SoC .dtsi file.

The commit message states "disable it by default as it was not present initially". Will this require every board file inheriting this .dtsi to redundantly set status = "okay"?

Moose board originally inherits mt8127.dtsi without watchdog node and I do not have a moose board to test nor infos on the expected behavior. So I will keep this as is and advise on further comments.

Thanks!

Signature · 2 lines
Best regards,
Zakariya
#7 lore raw

PATCH v5 4/4 ARM: dts: mediatek: Add basic support for Amazon ford board

In reply to Zakariya Hadrami

This tablet uses a MediaTek MT8127 system-on-chip with 1GB 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 +
 arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts | 54 +++++++++++++++++++++++
 2 files changed, 55 insertions(+)
arch/arm/boot/dts/mediatek/Makefile +1 -0
index 37c4cded0eae..a610bc75c7d9 100644
@@ -14,5 +14,6 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt7623n-rfb-emmc.dtb \
 	mt7623n-bananapi-bpi-r2.dtb \
 	mt7629-rfb.dtb \
+	mt8127-amazon-ford.dtb \
 	mt8127-moose.dtb \
 	mt8135-evbp1.dtb
arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
2.54.0
maintainer Applied
#8 lore raw

Re: (subset) [PATCH v5 0/4] ARM: Basic support for Amazon ford tablet (MT8127)

In reply to Zakariya Hadrami
Quoted 2 lines · Zakariya Hadrami

This series of patches adds basic support for MT8127 SoC based Amazon ford tablet.

Applied to v7.3-next/dts32, thanks!

[2/4] dt-bindings: arm: mediatek: Add MT8127 Amazon ford

      commit: f97be0d722ebef4de65a39813778f6ba62c2ac1e
[3/4] ARM: dts: mediatek: mt8127: Add watchdog support
      commit: 5e23e7d730c6e984e4f03c3b25e2188de9f4ba99
[4/4] ARM: dts: mediatek: Add basic support for Amazon ford board
      commit: 2e195497fc9fc0dd89cf95dab80a2d0486dab65b

Cheers,
Angelo