Skip to contentSkip to conversation

ARM: Basic support for Amazon ford tablet (MT8127)

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

Subsystems (3)

v4 of 5 Applied Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 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 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 v4 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 Reviewed-by on v4 1/4
#3 lore raw

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

In reply to Zakariya Hadrami
Quoted 8 lines · On 9/9/26 21:38, Zakariya Hadrami via B4 Relay wrote:

From: Zakariya Hadrami <[email protected]>

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

#4 lore raw

PATCH v4 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
Reviewed-by Matthias Brugger on v4 2/4
#6 lore raw

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

In reply to Zakariya Hadrami
Quoted 6 lines

From: Zakariya Hadrami <[email protected]>

Add entry for the MT8127 based Amazon ford tablet.

Quoted 16 lines
---
 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:
#7 lore raw

PATCH v4 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..3e23673e7a9e 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
maintainer Reviewed-by on v4 3/4
#8 lore raw

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

Quoted 15 lines · On 9/9/26 21:38, Zakariya Hadrami via B4 Relay wrote:

From: Zakariya Hadrami <[email protected]>

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 +0 -0
index bd61ec7e70c0..3e23673e7a9e 100644

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

Quoted 5 lines
arch/arm/boot/dts/mediatek/mt8127.dtsi +2 -0
@@ -99,6 +99,13 @@ soc {
  		compatible = "simple-bus";
  		ranges;
 
+		watchdog: watchdog@10007000 {
+			compatible = "mediatek,mt8127-wdt","mediatek,mt6589-wdt";

Missing space:

compatible = "mediatek,mt8127-wdt", "mediatek,mt6589-wdt";

After fixing,

P.S.: If you send a v5 between now and now (or next week too :-P) I can pick it in this cycle.

Cheers,
Angelo

Quoted 9 lines
arch/arm/boot/dts/mediatek/mt8127.dtsi +5 -0
+			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";
#9 lore raw

PATCH v4 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 Reviewed-by on v4 4/4
#10 lore raw

Re: [PATCH v4 4/4] ARM: dts: mediatek: Add basic support for Amazon ford board

Quoted 29 lines · On 9/9/26 21:38, Zakariya Hadrami via B4 Relay wrote:

From: Zakariya Hadrami <[email protected]>

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 +0 -0
new file mode 100644
index 000000000000..8edad5482de2

arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts line 7

Quoted 7 lines
arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +7 -0
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+#include "mt8127.dtsi"
+
+/ {
+	model = "MediaTek MT8127 Amazon Ford";

Please be friendlier with whoever reads this model string :-)

	model = "Amazon Fire 7 2015 (Ford)";

that's better, isn't it?

After applying the proposed change,

Cheers,
Angelo

Quoted 48 lines
arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +47 -0
+	compatible = "amazon,ford", "mediatek,mt8127";
+	chassis-type = "tablet";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		stdout-path = "serial0:921600n8";
+
+		framebuffer0: framebuffer@b7a00000 {
+			compatible = "simple-framebuffer";
+			memory-region = <&framebuffer_reserved>;
+			width = <1024>;
+			height = <600>;
+			stride = <(1024 * 2)>;
+			format = "r5g6b5";
+		};
+	};
+
+	memory@80000000 {
+		device_type = "memory";
+		reg = <0 0x80000000 0 0x40000000>;
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		framebuffer_reserved: framebuffer@b7a00000 {
+			reg = <0 0xb7a00000 0 0x1000000>;
+			no-map;
+		};
+	};
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&watchdog {
+	status = "okay";
+};
#11 lore raw

Re: [PATCH v4 4/4] ARM: dts: mediatek: Add basic support for Amazon ford board

Quoted 16 lines · AngeloGioacchino Del Regno

arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts line 7

Quoted 13 lines
arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +7 -0
new file mode 100644
index 000000000000..8edad5482de2
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+#include "mt8127.dtsi"
+
+/ {
+	model = "MediaTek MT8127 Amazon Ford";

Please be friendlier with whoever reads this model string :-)

Quoted 3 lines
	model = "Amazon Fire 7 2015 (Ford)";

that's better, isn't it?

My bad, sorry!

This and the missing space in watchdog compatible fixed in v5.
Link to v5: https://patch.msgid.link/[email protected]

Thank you very much!

Quoted 9 lines

After applying the proposed change,

Cheers,
Angelo

Quoted 2 lines
arch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +2 -0
+	compatible = "amazon,ford", "mediatek,mt8127";
+	chassis-type = "tablet";
Signature · 2 lines
Best regards,
Zakariya