[PATCH 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding

From: Marco Felsch
Date: Thu Feb 15 2024 - 15:48:20 EST


From: Thomas Haemmerle <thomas.haemmerle@xxxxxxxxxxxxxxxxxxxx>

Add the binding to specify the vcc supply. We can't make it required
since this would break the backward compatibility.

Signed-off-by: Thomas Haemmerle <thomas.haemmerle@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
---
.../devicetree/bindings/iio/temperature/ti,tmp117.yaml | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
index 8c6d7735e875..cf7799c9734f 100644
--- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
+++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
@@ -24,6 +24,9 @@ properties:
reg:
maxItems: 1

+ vcc-supply:
+ description: provide VCC power to the sensor.
+
required:
- compatible
- reg
@@ -39,5 +42,6 @@ examples:
tmp117@48 {
compatible = "ti,tmp117";
reg = <0x48>;
+ vcc-supply = <&pmic_reg_3v3>;
};
};
--
2.39.2