From cae6788d2ecac411b86fc85840f59e9e2a6a0186 Mon Sep 17 00:00:00 2001 From: Vincent Jardin Date: Wed, 2 Sep 2026 03:54:00 +0200 Subject: [PATCH] dt-bindings: hwmon: ti,tmp401: add #thermal-sensor-cells Since commit a3b61ba2558e ("hwmon: (tmp401) register with thermal subsystem") the driver sets HWMON_C_REGISTER_TZ, so the hwmon core calls devm_thermal_of_zone_register() for every temperature channel and the device can be referenced as a thermal sensor. Signed-off-by: Vincent Jardin Reviewed-by: Krzysztof Kozlowski Link: https://patch.msgid.link/20260902-for-upstream-dt-tmp401-vcc-tsc-v3-1-49c484d2f08b@free.fr [groeck: Reformatted patch descriptiuon] Signed-off-by: Guenter Roeck --- Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml index 0e8ddf0ad789..f283b567d5b6 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml @@ -50,6 +50,9 @@ properties: minimum: 0 maximum: 15 + "#thermal-sensor-cells": + const: 1 + allOf: - if: properties: