Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/2] thermal: airoha: Expose EN7581 CPU temperature
@ 2026-10-31 14:19 Vitaliy Sochnev
  2026-10-31 14:19 ` [PATCH 1/2] dt-bindings: thermal: airoha: Allow sensor indices for EN7581 Vitaliy Sochnev
  2026-10-31 14:19 ` [PATCH 2/2] thermal/drivers/airoha: Read the EN7581 CPU ADC Vitaliy Sochnev
  0 siblings, 2 replies; 3+ messages in thread
From: Vitaliy Sochnev @ 2026-10-31 14:19 UTC (permalink / raw)
  To: daniel.lezcano
  Cc: rafael, rui.zhang, lukasz.luba, robh, krzk+dt, conor+dt,
	ansuelsmth, linux-pm, devicetree, linux-kernel, Vitaliy Sochnev

EN7581 has a second thermal ADC for the CPU die at SCU offsets 0x2fc/0x308.
Expose it as sensor index 1 while keeping the main ADC at index 0 and
retaining zero-cell device tree compatibility. The hardware temperature
monitor and its trips continue to use only the main ADC.

Tested on Nokia XG-040G-MD (EN7581, OpenWrt 6.18.55): both zones read
successfully before and after reboot; temperatures tracked CPU load and
cooling, and matched direct ADC readings within 0.3 C. Twenty driver
unbind/bind cycles with an IRQ pending preserved both zones and handled
the interrupt each time. The driver builds for arm64 with W=1 and the
binding passes dt_binding_check.

Vitaliy Sochnev (2):
  dt-bindings: thermal: airoha: Allow sensor indices for EN7581
  thermal/drivers/airoha: Read the EN7581 CPU ADC

 .../thermal/airoha,en7581-thermal.yaml        |   6 +-
 drivers/thermal/airoha_thermal.c              | 157 ++++++++++++++++--
 2 files changed, 152 insertions(+), 11 deletions(-)


base-commit: 2dc1f296b5754dd2441fc8b6613a362a47f6b98f
-- 
2.55.0

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

end of thread, other threads:[~2026-10-31 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-31 14:19 [PATCH 0/2] thermal: airoha: Expose EN7581 CPU temperature Vitaliy Sochnev
2026-10-31 14:19 ` [PATCH 1/2] dt-bindings: thermal: airoha: Allow sensor indices for EN7581 Vitaliy Sochnev
2026-10-31 14:19 ` [PATCH 2/2] thermal/drivers/airoha: Read the EN7581 CPU ADC Vitaliy Sochnev

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