Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: adc-joystick: add poll-interval

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>

authored by

Chris Morgan and committed by
Dmitry Torokhov
c42a5ff5 2e6f34fa

+5
+5
Documentation/devicetree/bindings/input/adc-joystick.yaml
··· 14 14 Bindings for joystick devices connected to ADC controllers supporting 15 15 the Industrial I/O subsystem. 16 16 17 + allOf: 18 + - $ref: input.yaml# 19 + 17 20 properties: 18 21 compatible: 19 22 const: adc-joystick ··· 30 27 See 31 28 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml 32 29 for details. 30 + 31 + poll-interval: true 33 32 34 33 '#address-cells': 35 34 const: 1