ARM: Basic support for Amazon ford tablet (MT8127)
Subsystems (3)
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]>
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
@@ -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
Re: [PATCH v4 1/4] dt-bindings: watchdog: mediatek: Add MT8127
Quoted 7 lines · Zakariya Hadrami
From: Zakariya Hadrami <[email protected]>
Add entry for MT8127 SoC's watchdog which is compatible with MT6589's one.
Signed-off-by Zakariya Hadrami <[email protected]>
Applied.
Thanks,
Guenter
Re: [PATCH v4 1/4] dt-bindings: watchdog: mediatek: Add MT8127
In reply to Zakariya HadramiQuoted 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.
Acked-by Guenter Roeck <[email protected]>Signed-off-by Zakariya Hadrami <[email protected]>
PATCH v4 2/4 dt-bindings: arm: mediatek: Add MT8127 Amazon ford
In reply to Zakariya HadramiAdd 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
@@ -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
Re: [PATCH v4 2/4] dt-bindings: arm: mediatek: Add MT8127 Amazon ford
Quoted 6 lines · On 9/9/26 21:38, Zakariya Hadrami via B4 Relay wrote:
From: Zakariya Hadrami <[email protected]>
Add entry for the MT8127 based Amazon ford tablet.
Signed-off-by Zakariya Hadrami <[email protected]>
Re: [v4,2/4] dt-bindings: arm: mediatek: Add MT8127 Amazon ford
In reply to Zakariya HadramiQuoted 6 lines
From: Zakariya Hadrami <[email protected]>
Add entry for the MT8127 based Amazon ford tablet.
Signed-off-by Zakariya Hadrami <[email protected]>
Quoted 16 lines
--- Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/mediatek.yaml +1
-0@@ -122,6 +122,7 @@ properties: - const: mediatek,mt7988a - items: - enum: + - amazon,ford - mediatek,mt8127-moose - const: mediatek,mt8127 - items:
PATCH v4 3/4 ARM: dts: mediatek: mt8127: Add watchdog support
In reply to Zakariya HadramiAdd 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
@@ -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
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.
Signed-off-by Zakariya Hadrami <[email protected]>--- arch/arm/boot/dts/mediatek/mt8127.dtsi | 7 +++++++ 1 file changed, 7 insertions(+)arch/arm/boot/dts/mediatek/mt8127.dtsi +0
-0
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";
PATCH v4 4/4 ARM: dts: mediatek: Add basic support for Amazon ford board
In reply to Zakariya HadramiThis 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
@@ -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
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.
Signed-off-by Zakariya Hadrami <[email protected]>--- 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@@ -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.dtbarch/arm/boot/dts/mediatek/mt8127-amazon-ford.dts new file +0
-0
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"; +};
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@@ -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,
Reviewed-by AngeloGioacchino Del Regno <[email protected]>Cheers,
AngeloQuoted 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