From 5474d85ce42902fde4f01d3e412dc8c199a15e95 Mon Sep 17 00:00:00 2001 From: Esben Haabendal Date: Mon, 17 Aug 2026 19:08:57 +0200 Subject: [PATCH] dt-bindings: iio: light: ltr501: Make proximity-near-level conditional The proxmity-near-level attribute is only supported by ltr501 and ltr559 chips. Signed-off-by: Esben Haabendal Reviewed-by: Krzysztof Kozlowski Signed-off-by: Jonathan Cameron --- .../devicetree/bindings/iio/light/liteon,ltr501.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml index 73c32b33d886..20abd7da080d 100644 --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml @@ -48,6 +48,18 @@ allOf: properties: interrupts: false + - if: + properties: + compatible: + contains: + enum: + - liteon,ltr301 + - liteon,ltr303 + - liteon,ltr329 + then: + properties: + proximity-near-level: false + examples: - | #include