mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] thermal/drivers/amlogic: add S4 support
@ 2026-11-06 10:19 christian.koever-draxl
  2026-11-06 10:19 ` [PATCH v2 1/3] dt-bindings: thermal: amlogic: add S4 christian.koever-draxl
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: christian.koever-draxl @ 2026-11-06 10:19 UTC (permalink / raw)
  To: glaroque, rafael, daniel.lezcano, rui.zhang, lukasz.luba, robh,
	krzk+dt, conor+dt
  Cc: linux-pm, linux-amlogic, devicetree, linux-kernel,
	Christian Stefan Kövér-Draxl

From: Christian Stefan Kövér-Draxl <ckoever@outlook.de>

The S4 temperature sensors are the G12A design with the calibration read
through the secure monitor, as on T7, so they reuse the T7 data on top of
Ronald Claveau's secure monitor calibration support. Without calibration
the CPU sensor reported about -144 degrees Celsius.

Patch 3 makes the expected first probe deferral (the secure monitor
probes later) quiet.

Changes in v2:
- Compatible renamed from amlogic,s4-cpu-thermal to amlogic,s4-thermal:
  as on T7 the sensor index is the secure monitor phandle argument, so
  one compatible covers the CPU and the DDR sensor.
- The binding takes the bus clock (ts_pll / ts_ddr) besides the
  functional clock, named, like T7; the driver reuses the T7 data.
- Patch 3: Reviewed-by from Neil.
- Link to v1: https://lore.kernel.org/r/20261025192244.209256-1-christian.koever-draxl@student.uibk.ac.at

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 (3):
  dt-bindings: thermal: amlogic: add S4
  thermal/drivers/amlogic: add S4 support
  thermal/drivers/amlogic: do not log the secure monitor deferral as an
    error

 .../devicetree/bindings/thermal/amlogic,thermal.yaml  |  5 ++++-
 drivers/thermal/amlogic_thermal.c                     | 11 +++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)


base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
-- 
2.56.0


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 10:19 [PATCH v2 0/3] thermal/drivers/amlogic: add S4 support christian.koever-draxl
2026-11-06 10:19 ` [PATCH v2 1/3] dt-bindings: thermal: amlogic: add S4 christian.koever-draxl
2026-11-06 17:20   ` Conor Dooley
2026-11-06 10:19 ` [PATCH v2 2/3] thermal/drivers/amlogic: add S4 support christian.koever-draxl
2026-11-06 10:19 ` [PATCH v2 3/3] thermal/drivers/amlogic: do not log the secure monitor deferral as an error christian.koever-draxl

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

all inboxes | Powered by JetHome®