diff mbox series

[RFC,1/4] dt-bindings: input: touchscreen: edt-ft5x06: add poll-interval

Message ID 20211216233041.1220-2-tharvey@gateworks.com
State New
Headers show
Series input: edt-ft5x06: add support for DFROBOT touch controller to | expand

Commit Message

Tim Harvey Dec. 16, 2021, 11:30 p.m. UTC
Some devices might not provide an interrupt line for the touchscreen.
In that case the driver defaults to using a polled interface.

Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml   | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Rob Herring Dec. 17, 2021, 2:53 p.m. UTC | #1
On Thu, Dec 16, 2021 at 5:30 PM Tim Harvey <tharvey@gateworks.com> wrote:
>

Please CC the DT list.

> Some devices might not provide an interrupt line for the touchscreen.
> In that case the driver defaults to using a polled interface.
>
> Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  .../devicetree/bindings/input/touchscreen/edt-ft5x06.yaml   | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
> index 2e8da7470513..a0d4dabf03b8 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
> @@ -47,6 +47,11 @@ properties:
>    interrupts:
>      maxItems: 1
>
> +  poll-interval:
> +    description: Poll interval time in milliseconds, only relevant if no
> +                 interrupt was provided.
> +    $ref: /schemas/types.yaml#/definitions/uint32

Reference input.yaml so we aren't redefining this property.

> +
>    reset-gpios:
>      maxItems: 1
>
> @@ -99,7 +104,6 @@ additionalProperties: false
>  required:
>    - compatible
>    - reg
> -  - interrupts
>
>  examples:
>    - |
> --
> 2.17.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
index 2e8da7470513..a0d4dabf03b8 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
@@ -47,6 +47,11 @@  properties:
   interrupts:
     maxItems: 1
 
+  poll-interval:
+    description: Poll interval time in milliseconds, only relevant if no
+                 interrupt was provided.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
   reset-gpios:
     maxItems: 1
 
@@ -99,7 +104,6 @@  additionalProperties: false
 required:
   - compatible
   - reg
-  - interrupts
 
 examples:
   - |