diff mbox series

[1/2] dt-bindings: iio: light: ltr501: Add proximity-near-level

Message ID 20211125125646.54831-1-nikita@trvn.ru (mailing list archive)
State Accepted
Headers show
Series [1/2] dt-bindings: iio: light: ltr501: Add proximity-near-level | expand

Commit Message

Nikita Travkin Nov. 25, 2021, 12:56 p.m. UTC
This value inidcates the proximity level that should be considered
"close".

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
 .../devicetree/bindings/iio/light/liteon,ltr501.yaml       | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rob Herring (Arm) Dec. 1, 2021, 10:25 p.m. UTC | #1
On Thu, 25 Nov 2021 17:56:45 +0500, Nikita Travkin wrote:
> This value inidcates the proximity level that should be considered
> "close".
> 
> Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> ---
>  .../devicetree/bindings/iio/light/liteon,ltr501.yaml       | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>
Jonathan Cameron Dec. 4, 2021, 3:32 p.m. UTC | #2
On Wed, 1 Dec 2021 16:25:45 -0600
Rob Herring <robh@kernel.org> wrote:

> On Thu, 25 Nov 2021 17:56:45 +0500, Nikita Travkin wrote:
> > This value inidcates the proximity level that should be considered
> > "close".
> > 
> > Signed-off-by: Nikita Travkin <nikita@trvn.ru>
> > ---
> >  .../devicetree/bindings/iio/light/liteon,ltr501.yaml       | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >   
> 
> Reviewed-by: Rob Herring <robh@kernel.org>

Series applied to the togreg branch of iio.git.
I'll push it out as testing first to let 0-day see if it can find any
problems before I go breaking next ;)

Jonathan
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
index db0407bc9209..c8074f180a79 100644
--- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
+++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml
@@ -9,6 +9,9 @@  title: LiteON LTR501 I2C Proximity and Light sensor
 maintainers:
   - Nikita Travkin <nikita@trvn.ru>
 
+allOf:
+  - $ref: ../common.yaml#
+
 properties:
   compatible:
     enum:
@@ -25,6 +28,8 @@  properties:
   interrupts:
     maxItems: 1
 
+  proximity-near-level: true
+
 additionalProperties: false
 
 required:
@@ -42,6 +47,8 @@  examples:
         light-sensor@23 {
             compatible = "liteon,ltr559";
             reg = <0x23>;
+            proximity-near-level = <75>;
+
             vdd-supply = <&pm8916_l17>;
             vddio-supply = <&pm8916_l6>;