Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: mediatek: Add the Amazon Fire HD 10 (2017)
@ 2026-11-13 16:42 Ryan Brue
  2026-11-13 16:42 ` [PATCH v2 1/3] dt-bindings: arm: mediatek: Add MT8173 Amazon suez Ryan Brue
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ryan Brue @ 2026-11-13 16:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
	AngeloGioacchino Del Regno, Sean Wang, Kees Cook, Tony Luck,
	Guilherme G. Piccoli
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	Ryan Brue, Krzysztof Kozlowski

This adds the Amazon Fire HD 10 (2017), codename suez, an MT8173 tablet
with an MT6397 PMIC.

Patch 1 adds the board's compatible, patch 2 the SoC's keypad controller
to mt8173.dtsi, and patch 3 the board, with:

- The eMMC and microSD slot
- The micro-B port as a USB peripheral
- The panel, the backlight, and the touchscreen
- The accelerometer
- The light sensor
- The charger
- The lid switch
- The power and volume keys
- CPU frequency scaling and the skin thermistors
- The battery thermistor, on the PMIC AUXADC

The keypad and MT6397 AUXADC bindings are applied for 7.5: the keypad
binding [1] is in input (patches 2 and 3), and the AUXADC binding [2] is
in IIO (patch 3).

The board needs a PSCI 1.0 firmware. The stock BL31 implements PSCI 0.2,
and its CPU_ON never powers on a secondary core, so with this device tree
the stock firmware ends in a watchdog reset loop. On this board it runs
TF-A's mt8173 port as BL31, started from the stock preloader by a small
loader that hands it its parameters, with U-Boot as BL33.

On an upstream kernel the panel also needs the DSI command mode fix [3],
which is reviewed. If the bootloader leaves the display scanning out, as
the stock one does, the board also needs the MediaTek power domain fix
[4]. Without it a probe deferral of the power controller turns the
display's domain off and on again under the live scanout, and the board
hangs.

Tested on the board, booting this device tree on a v7.4-rc2 based kernel
with the pending drivers: everything listed above probes. The device tree
validates against its bindings, checked on top of [1] and [2]; the one
warning, on mmsys's assigned-clocks, comes from mt8173.dtsi, so every
MT8173 board has it.

The fuel gauge, the sound card, the MT6630 Wi-Fi and Bluetooth, and USB
host mode will follow once those drivers and bindings are submitted and
land.

This series was developed with the help of an LLM.

[1] https://lore.kernel.org/all/20260915-rbrue-suez-upstreaming-mt8173-keypad-v1-1-96c325efacbe@gmail.com/
[2] https://lore.kernel.org/all/20261025-rbrue-suez-upstreaming-mt6397-auxadc-v5-0-5c3c7a5a1851@gmail.com/
[3] https://lore.kernel.org/all/20261004-rbrue-suez-upstreaming-mtk-dsi-cmd-mode-v1-1-53a4f46ca489@gmail.com/
[4] https://lore.kernel.org/all/20261110-rbrue-suez-upstreaming-mtk-pmdomain-defer-v2-1-3ad9ad0cc67c@gmail.com/
[5] https://lore.kernel.org/all/20261111-rfc-v2-generated-v3-1-e49697d20806@gmail.com/

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
---
Changes in v2:
- Add the board in one patch. The volume keys and the PMIC AUXADC are no
  longer separate patches, and the keypad node comes before the board
  (Krzysztof)
- Don't disable the VPU, the video codecs, and the MDP. They work on this
  board with upstream TF-A and the MDP fix [5]
- Collect Krzysztof's Acked-by on the binding
- Link to v1: https://lore.kernel.org/r/20261111-rbrue-suez-upstreaming-amazon-suez-dts-v1-0-77b47cdea702@gmail.com

---
Ryan Brue (3):
      dt-bindings: arm: mediatek: Add MT8173 Amazon suez
      arm64: dts: mediatek: mt8173: Add the keypad controller
      arm64: dts: mediatek: Add MT8173 Amazon suez

 .../devicetree/bindings/arm/mediatek.yaml          |   1 +
 arch/arm64/boot/dts/mediatek/Makefile              |   1 +
 .../arm64/boot/dts/mediatek/mt8173-amazon-suez.dts | 679 +++++++++++++++++++++
 arch/arm64/boot/dts/mediatek/mt8173.dtsi           |  10 +
 4 files changed, 691 insertions(+)
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 20261024-rbrue-suez-upstreaming-amazon-suez-dts-1c67b717d373
prerequisite-change-id: 20260914-rbrue-suez-upstreaming-mt6397-auxadc-5e1228025c50:v5
prerequisite-patch-id: d709637c35c840fbd22b30dd39452d3116a8e8e4
prerequisite-patch-id: 04f2ca8ae588298f0ad75af44266cd028d00bbe4

Best regards,
-- 
Ryan Brue <ryanbrue.dev@gmail.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-13 17:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 16:42 [PATCH v2 0/3] arm64: dts: mediatek: Add the Amazon Fire HD 10 (2017) Ryan Brue
2026-11-13 16:42 ` [PATCH v2 1/3] dt-bindings: arm: mediatek: Add MT8173 Amazon suez Ryan Brue
2026-11-13 16:42 ` [PATCH v2 2/3] arm64: dts: mediatek: mt8173: Add the keypad controller Ryan Brue
2026-11-13 17:00   ` sashiko-bot
2026-11-13 16:42 ` [PATCH v2 3/3] arm64: dts: mediatek: Add MT8173 Amazon suez Ryan Brue
2026-11-13 17:16   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox