[PATCH 0/2] mmc: meson-gx: make the core clock phase configurable
From: christian . koever-draxl
Date: Sun Oct 25 2026 - 15:25:54 EST
From: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
The core clock phase is fixed at 180 degrees. The SD slot of an S905W2
TV box fails with CRC errors at 50 MHz with that phase and works at 270
degrees, the value the vendor kernel programs. Add an optional DT
property for it and keep 180 degrees as the default.
Tool use (Documentation/process/generated-content.rst):
This work was done with the help of an AI coding assistant, Claude
(Anthropic), used through Claude Code over many sessions. It did a large
part of the hands-on work: it read the vendor kernel and the firmware
interfaces, probed registers on the board, drafted the code and the
changelogs, and ran the builds, checkpatch, dt_binding_check and the
tests on the hardware. I directed the work, reviewed every change and
the final patches, and take responsibility for them. There is no single
prompt to quote; the sessions were of the form "find out why X fails on
this board, fix it, test it on the box".
Tested on an Amediatech X98Q TV box (Amlogic S905W2, S4 family, 2 GiB),
vendor U-Boot and BL31/OP-TEE, Linux 7.3 plus this work.
Christian Stefan Kövér-Draxl (2):
dt-bindings: mmc: amlogic,meson-gx-mmc: add amlogic,core-phase-degrees
mmc: meson-gx: allow the core clock phase to be set from DT
.../bindings/mmc/amlogic,meson-gx-mmc.yaml | 9 +++++++++
drivers/mmc/host/meson-gx-mmc.c | 17 +++++++++++++++--
2 files changed, 24 insertions(+), 2 deletions(-)
base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
--
2.56.0