diff mbox series

dt-bindings: iio: vishay,vcnl4000: add interrupts property

Message ID 20200920203845.17758-1-krzk@kernel.org
State Not Applicable
Headers show
Series dt-bindings: iio: vishay,vcnl4000: add interrupts property | expand

Checks

Context Check Description
robh/dt-meta-schema success
robh/checkpatch warning total: 0 errors, 1 warnings, 10 lines checked

Commit Message

Krzysztof Kozlowski Sept. 20, 2020, 8:38 p.m. UTC
The dtschema should list all properties, including the common ones like
interrupts.  This fixes dtbs_check warnings like:

  arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dt.yaml:
    prox@60: 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 .../devicetree/bindings/iio/light/vishay,vcnl4000.yaml        | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jonathan Cameron Sept. 21, 2020, 6:06 p.m. UTC | #1
On Sun, 20 Sep 2020 22:38:45 +0200
Krzysztof Kozlowski <krzk@kernel.org> wrote:

> The dtschema should list all properties, including the common ones like
> interrupts.  This fixes dtbs_check warnings like:
> 
>   arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dt.yaml:
>     prox@60: 'interrupt-parent', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+'
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Trivial enough that I'll just sneak this one in before I do a pull request.

thanks,

Jonathan

> ---
>  .../devicetree/bindings/iio/light/vishay,vcnl4000.yaml        | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
> index 58887a4f9c15..4d1a225e8868 100644
> --- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
> +++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
> @@ -24,6 +24,10 @@ properties:
>        - vishay,vcnl4020
>        - vishay,vcnl4040
>        - vishay,vcnl4200
> +
> +  interrupts:
> +    maxItems: 1
> +
>    reg:
>      maxItems: 1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
index 58887a4f9c15..4d1a225e8868 100644
--- a/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
+++ b/Documentation/devicetree/bindings/iio/light/vishay,vcnl4000.yaml
@@ -24,6 +24,10 @@  properties:
       - vishay,vcnl4020
       - vishay,vcnl4040
       - vishay,vcnl4200
+
+  interrupts:
+    maxItems: 1
+
   reg:
     maxItems: 1