diff mbox series

[2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

Message ID 20200917101819.32045-3-alban.bedel@aerq.com
State Changes Requested, archived
Headers show
Series hwmon: (lm75) Add regulator support | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Bedel, Alban Sept. 17, 2020, 10:18 a.m. UTC
Some boards might have a regulator that control the +VS supply, add it
to the bindings.

Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
---
 Documentation/devicetree/bindings/hwmon/lm75.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Rob Herring Sept. 23, 2020, 8:16 p.m. UTC | #1
On Thu, Sep 17, 2020 at 12:18:18PM +0200, Alban Bedel wrote:
> Some boards might have a regulator that control the +VS supply, add it
> to the bindings.
> 
> Signed-off-by: Alban Bedel <alban.bedel@aerq.com>
> ---
>  Documentation/devicetree/bindings/hwmon/lm75.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> index 78d6291fcdcc..1a4405b17924 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
> @@ -43,6 +43,10 @@ properties:
>    reg:
>      maxItems: 1
>  
> +  vs-supply:
> +    maxItems: 1

*-supply is always 1, so drop.

> +    description: phandle to the regulator that provides the +VS supply
> +
>  required:
>    - compatible
>    - reg
> @@ -52,4 +56,5 @@ examples:
>      sensor@48 {
>              compatible = "st,stlm75";
>              reg = <0x48>;
> +            vs-supply = <&vs>;
>      };
> -- 
> 2.25.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml
index 78d6291fcdcc..1a4405b17924 100644
--- a/Documentation/devicetree/bindings/hwmon/lm75.yaml
+++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml
@@ -43,6 +43,10 @@  properties:
   reg:
     maxItems: 1
 
+  vs-supply:
+    maxItems: 1
+    description: phandle to the regulator that provides the +VS supply
+
 required:
   - compatible
   - reg
@@ -52,4 +56,5 @@  examples:
     sensor@48 {
             compatible = "st,stlm75";
             reg = <0x48>;
+            vs-supply = <&vs>;
     };