Devicetree
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: hwmon: ti,tmp401: add vcc-supply and #thermal-sensor-cells
@ 2026-08-24 15:46 Vincent Jardin via B4 Relay
  2026-08-24 15:57 ` sashiko-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Jardin via B4 Relay @ 2026-08-24 15:46 UTC (permalink / raw)
  To: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-hwmon, devicetree, linux-kernel, Vincent Jardin

From: Vincent Jardin <vjardin@free.fr>

Both properties are used by the driver that backs this binding, and
neither is described, so a board that supplies either fails dtbs_check:

  tmp411@4c (ti,tmp411): '#thermal-sensor-cells', 'vcc-supply' do not
  match any of the regexes: '^pinctrl-[0-9]+$'

vcc-supply is fetched in lm90_probe():

  drivers/hwmon/lm90.c:2777
        err = devm_regulator_get_enable(dev, "vcc");

so a board with the sensor behind a switched rail has no other way to
describe it, and omitting it means the chip is probed with its supply
possibly off.

Signed-off-by: Vincent Jardin <vjardin@free.fr>
---
 Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml
index 0e8ddf0ad7890..69f77aec01a33 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml
@@ -50,6 +50,11 @@ properties:
     minimum: 0
     maximum: 15
 
+  vcc-supply: true
+
+  "#thermal-sensor-cells":
+    const: 1
+
 allOf:
   - if:
       properties:

---
base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b
change-id: 20260824-for-upstream-dt-tmp401-vcc-tsc-a16bec8352e4

Best regards,
-- 
Vincent Jardin <vjardin@free.fr>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-24 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 15:46 [PATCH] dt-bindings: hwmon: ti,tmp401: add vcc-supply and #thermal-sensor-cells Vincent Jardin via B4 Relay
2026-08-24 15:57 ` sashiko-bot
2026-08-24 22:09   ` Vincent Jardin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox