[PATCH v2 0/2] hwmon: pmbus: 0-based thermal sensor index, mps,mpq8785 #thermal-sensor-cells

From: Vincent Jardin via B4 Relay

Date: Thu Oct 01 2026 - 03:28:48 EST


The PMBus core registers its temperature inputs with the thermal core
from index 1, while the thermal core expects a 0-based index.

Patch 1 fixes it, as Guenter commente on v1 [1].

Patch 2 is the v1 binding change, now with #thermal-sensor-cells = <0>.

[1] https://lore.kernel.org/r/37298c5b-aa6b-473a-8e22-d29ddec12c04@xxxxxxxxxxxx

To: Guenter Roeck <linux@xxxxxxxxxxxx>
To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
To: Charles Hsu <ythsu0511@xxxxxxxxx>
To: Eduardo Valentin <eduval@xxxxxxxxxx>
Cc: linux-hwmon@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>

Changes in v2:
- New patch 1: register the PMBus thermal sensors with a 0-based index (Sashiko, Guenter)
- Patch 2: #thermal-sensor-cells const: 0 instead of 1
- Link to v1: https://lore.kernel.org/r/20260930-for-upstream-dt-mpq8785-thermal-sensor-cells-v1-1-6573c765eef8@xxxxxxx

---
Vincent Jardin (2):
hwmon: (pmbus/core) Register the thermal sensors with a 0-based index
dt-bindings: hwmon: pmbus: mps,mpq8785: add #thermal-sensor-cells

Documentation/devicetree/bindings/hwmon/pmbus/mps,mpq8785.yaml | 3 +++
drivers/hwmon/pmbus/pmbus_core.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
base-commit: 4781ca52761e666cf18b591e6bb0478396c90320
change-id: 20260930-for-upstream-dt-mpq8785-thermal-sensor-cells-c77fa6da5406

Best regards,
--
Vincent Jardin <vjardin@xxxxxxx>