devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: iio: light: opt3001: add compatible for opt3004
@ 2024-12-27 13:11 Hardevsinh Palaniya
  2024-12-28 10:14 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Hardevsinh Palaniya @ 2024-12-27 13:11 UTC (permalink / raw)
  To: jic23, krzk+dt, andriy.shevchenko
  Cc: Hardevsinh Palaniya, Lars-Peter Clausen, Rob Herring,
	Conor Dooley, Emil Gedenryd, Andreas Dannenberg, linux-iio,
	devicetree, linux-kernel

Add Support for OPT3004 Digital ambient light sensor (ALS) with
increased angular IR rejection.

The OPT3004 sensor shares the same functionality and scale range as
the OPT3001. The compatible string is added with fallback support to
ensure compatibility.

Datasheet: https://www.ti.com/lit/gpn/opt3004
Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
---

v2 -> v3:

- Reverse the order of compatible string

v1 -> v2:                                                                       
                                                                                
- Use fallback mechanism for the OPT3004.                                       
- Drop 2/2 patch from the patch series[1] as per feedback.                      
                                                                                
Link[1]: https://lore.kernel.org/linux-iio/20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io/T/#t

---
 .../devicetree/bindings/iio/light/ti,opt3001.yaml      | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml b/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml
index 67ca8d08256a..015860bfaf12 100644
--- a/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml
+++ b/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml
@@ -15,9 +15,13 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - ti,opt3001
-      - ti,opt3002
+    oneOf:
+      - enum:
+          - ti,opt3001
+          - ti,opt3002
+      - items:
+          - const: ti,opt3004
+          - const: ti,opt3001
 
   reg:
     maxItems: 1
-- 
2.34.1


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

end of thread, other threads:[~2025-01-04 12:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-27 13:11 [PATCH v3] dt-bindings: iio: light: opt3001: add compatible for opt3004 Hardevsinh Palaniya
2024-12-28 10:14 ` Krzysztof Kozlowski
2024-12-28 10:54   ` Hardevsinh Palaniya
2024-12-28 13:19     ` Jonathan Cameron
2024-12-30  7:34       ` Hardevsinh Palaniya
2025-01-02 21:34         ` Rob Herring
2025-01-04 12:45           ` Jonathan Cameron
2024-12-29  9:45     ` Krzysztof Kozlowski

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).