[PATCH v2 2/2] dt-bindings: hwmon: pmbus: mps,mpq8785: add #thermal-sensor-cells

From: Vincent Jardin via B4 Relay

Date: Thu Oct 01 2026 - 03:34:21 EST


From: Vincent Jardin <vjardin@xxxxxxx>

Since commit
3aa74796cfd0 ("hwmon: (pmbus) Register with thermal for PSC_TEMPERATURE")
the PMBus core calls devm_thermal_of_zone_register() for every
temperature input, so the devices of this binding can be referenced as
thermal sensors.

By code review, it should work for the MPQ and MPM device bindings.
They register a single page with PMBUS_HAVE_TEMP through
pmbus_do_probe(), it means that one device has one
temperature input, temp1.

The PMBus core registers the first temperature input as sensor 0, so no
cell is needed.

Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml | 3 +++
1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
index d7a32fb3b7af..6257a8030e53 100644
--- a/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
+++ b/Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml
@@ -34,6 +34,9 @@ properties:
maximum: 4095
default: 706

+ "#thermal-sensor-cells":
+ const: 0
+
required:
- compatible
- reg

--
2.43.0