public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding
@ 2024-02-19 13:11 Marco Felsch
  2024-02-19 13:11 ` [PATCH v2 2/2] iio: temperature: tmp117: add support for vcc-supply Marco Felsch
  2024-02-24 16:05 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding Jonathan Cameron
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Felsch @ 2024-02-19 13:11 UTC (permalink / raw)
  To: puranjay12, jic23, lars, robh+dt, krzysztof.kozlowski+dt,
	conor+dt
  Cc: linux-iio, devicetree, linux-kernel, kernel

From: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>

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

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
v2:
- mark vcc-supply as required

 .../devicetree/bindings/iio/temperature/ti,tmp117.yaml       | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
index 8c6d7735e875..33f2e9c5bd81 100644
--- a/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
+++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp117.yaml
@@ -24,9 +24,13 @@ properties:
   reg:
     maxItems: 1
 
+  vcc-supply:
+    description: provide VCC power to the sensor.
+
 required:
   - compatible
   - reg
+  - vcc-supply
 
 additionalProperties: false
 
@@ -39,5 +43,6 @@ examples:
         tmp117@48 {
              compatible = "ti,tmp117";
              reg = <0x48>;
+             vcc-supply = <&pmic_reg_3v3>;
         };
     };
-- 
2.39.2


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

end of thread, other threads:[~2024-02-24 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 13:11 [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding Marco Felsch
2024-02-19 13:11 ` [PATCH v2 2/2] iio: temperature: tmp117: add support for vcc-supply Marco Felsch
2024-02-24 16:05 ` [PATCH v2 1/2] dt-bindings: iio: ti,tmp117: add vcc supply binding Jonathan Cameron

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