From: Nikita Travkin <nikita@trvn.ru>
To: jic23@kernel.org
Cc: lars@metafoo.de, robh+dt@kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Nikita Travkin <nikita@trvn.ru>
Subject: [PATCH 1/2] dt-bindings: iio: light: ltr501: Add proximity-near-level
Date: Thu, 25 Nov 2021 17:56:45 +0500 [thread overview]
Message-ID: <20211125125646.54831-1-nikita@trvn.ru> (raw)
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(+)
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>;
--
2.30.2
next reply other threads:[~2021-11-25 13:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 12:56 Nikita Travkin [this message]
2021-11-25 12:56 ` [PATCH 2/2] iio: ltr501: Export near level property for proximity sensor Nikita Travkin
2021-11-27 18:49 ` Jonathan Cameron
2021-12-01 22:25 ` [PATCH 1/2] dt-bindings: iio: light: ltr501: Add proximity-near-level Rob Herring
2021-12-04 15:32 ` Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211125125646.54831-1-nikita@trvn.ru \
--to=nikita@trvn.ru \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).