diff mbox series

[v2,04/10] dt-bindings: iio: light: veml6030: add vdd-supply property

Message ID 20240923-veml6035-v2-4-58c72a0df31c@gmail.com (mailing list archive)
State Changes Requested
Headers show
Series iio: light: veml6030: fix issues and add support for veml6035 | expand

Commit Message

Javier Carrasco Sept. 22, 2024, 10:17 p.m. UTC
Add vdd-supply to account for the sensor's power source.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml | 3 +++
 1 file changed, 3 insertions(+)

Comments

Krzysztof Kozlowski Sept. 24, 2024, 10:06 a.m. UTC | #1
On Mon, Sep 23, 2024 at 12:17:52AM +0200, Javier Carrasco wrote:
> Add vdd-supply to account for the sensor's power source.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
>  Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof
Javier Carrasco Sept. 27, 2024, 6:02 p.m. UTC | #2
On 24/09/2024 12:06, Krzysztof Kozlowski wrote:
> On Mon, Sep 23, 2024 at 12:17:52AM +0200, Javier Carrasco wrote:
>> Add vdd-supply to account for the sensor's power source.
>>
>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>> ---
>>  Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml | 3 +++
>>  1 file changed, 3 insertions(+)
> 
> Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
> 
> Best regards,
> Krzysztof
> 

I just realized that the indentation of vdd-supply is not right in the
version I sent, and dt_binding_check rightfully complains about that. I
will fix it for v3.

Best regards,
Javier Carrasco
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml b/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
index 7f4995557570..2583b61c8357 100644
--- a/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
+++ b/Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
@@ -41,6 +41,8 @@  properties:
       interrupt client node bindings.
     maxItems: 1
 
+    vdd-supply: true
+
 required:
   - compatible
   - reg
@@ -59,6 +61,7 @@  examples:
                 compatible = "vishay,veml6030";
                 reg = <0x10>;
                 interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
+                vdd-supply = <&vdd>;
         };
     };
 ...