]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: adc-joystick: add poll-interval
authorChris Morgan <macromorgan@hotmail.com>
Tue, 16 Aug 2022 21:16:36 +0000 (14:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 17 Aug 2022 19:32:51 +0000 (12:32 -0700)
Add poll-interval support for the adc-joystick documentation. This is
an optional value and if not provided the adc-joystick works as it
does today (with buffers). If this value is provided, the adc-joystick
driver is polled at the specified interval. The existing attribute of
"poll-interval" was used instead of complying with property-units.yaml
after discussion of the issue on the mailing list.

Signed-off-by: Maya Matuszczyk <maccraft123mc@gmail.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Artur Rojek <contact@artur-rojek.eu>
Link: https://lore.kernel.org/r/20220816210440.14260-2-macroalpha82@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/adc-joystick.yaml

index 64d961458ac7cfc4b67e0c99a6bac794007a719e..da0f8dfca8bfd951ea2ee8ebf0e491ac2e5ba701 100644 (file)
@@ -14,6 +14,9 @@ description: >
   Bindings for joystick devices connected to ADC controllers supporting
   the Industrial I/O subsystem.
 
+allOf:
+  - $ref: input.yaml#
+
 properties:
   compatible:
     const: adc-joystick
@@ -28,6 +31,8 @@ properties:
       https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml
       for details.
 
+  poll-interval: true
+
   '#address-cells':
     const: 1