]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: add die temperature reporting for supported chips
authorIvan Vecera <ivecera@redhat.com>
Fri, 27 Feb 2026 10:53:00 +0000 (11:53 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Mar 2026 11:15:30 +0000 (12:15 +0100)
commit3a97e02b3e91e4d40095ad9bb6e466d8d7c1a1bc
tree25e5ad9803c97d2093e08e015e1c58f4b0bae442
parent4845f2fff730f0cdf8f7fe6401c8b871891cf1cb
dpll: zl3073x: add die temperature reporting for supported chips

Some zl3073x chip variants (0x1Exx, 0x2Exx and 0x3FC4) provide a die
temperature status register with 0.1 C resolution.

Add a ZL3073X_FLAG_DIE_TEMP chip flag to identify these variants and
implement zl3073x_dpll_temp_get() as the dpll_device_ops.temp_get
callback. The register value is converted from 0.1 C units to
millidegrees as expected by the DPLL subsystem.

To support per-instance ops selection, copy the base dpll_device_ops
into struct zl3073x_dpll and conditionally set .temp_get during device
registration based on the chip flag.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260227105300.710272-3-ivecera@redhat.com
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/dpll/zl3073x/core.c
drivers/dpll/zl3073x/core.h
drivers/dpll/zl3073x/dpll.c
drivers/dpll/zl3073x/dpll.h
drivers/dpll/zl3073x/regs.h