[PATCH v2] dt-bindings: hwmon: jedec,jc42: add #thermal-sensor-cells
From: Vincent Jardin via B4 Relay
Date: Thu Oct 01 2026 - 17:58:24 EST
From: Vincent Jardin <vjardin@xxxxxxx>
Since commit 032c1623c9de ("hwmon: (jc42) add HWMON_C_TZ_REGISTER") the
driver sets HWMON_C_REGISTER_TZ, so the hwmon core calls
devm_thermal_of_zone_register() for its temperature channel and the
device can be referenced as a thermal sensor.
The chip has a single temperature channel, registered as sensor 0, so
no cell is needed.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
Changes in v2:
- fix sentence format (Krzysztof)
- record Krzysztof's Reviewed-by
- Link to v1: https://lore.kernel.org/r/20260930-for-upstream-dt-jc42-thermal-sensor-cells-v1-1-ef6365cae23e@xxxxxxx
---
Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml
index bf3332153ad8..d835664a926b 100644
--- a/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml
+++ b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml
@@ -59,6 +59,9 @@ properties:
supported on all chips.
type: boolean
+ "#thermal-sensor-cells":
+ const: 0
+
required:
- compatible
- reg
---
base-commit: 4781ca52761e666cf18b591e6bb0478396c90320
change-id: 20260930-for-upstream-dt-jc42-thermal-sensor-cells-ad1ce051661c
Best regards,
--
Vincent Jardin <vjardin@xxxxxxx>