diff mbox series

[v5,1/3] dt-bindings: adc-joystick: add poll-interval-ms

Message ID 20220628191500.69831-2-macroalpha82@gmail.com
State New
Headers show
Series adc-joystick: Add polled support | expand

Commit Message

Chris Morgan June 28, 2022, 7:14 p.m. UTC
New devicetree attribute of "poll-interval-ms".

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 triggered buffers). If this value is provided, the
adc-joystick driver is polled at the specified interval. A new
attribute was added instead of using the existing attribute of
"poll-interval" to comply with rules detailed in property-units.yaml.

Signed-off-by: Maya Matuszczyk <maccraft123mc@gmail.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 Documentation/devicetree/bindings/input/adc-joystick.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/adc-joystick.yaml b/Documentation/devicetree/bindings/input/adc-joystick.yaml
index 2ee04e03bc22..cfd8d1af5d2c 100644
--- a/Documentation/devicetree/bindings/input/adc-joystick.yaml
+++ b/Documentation/devicetree/bindings/input/adc-joystick.yaml
@@ -18,6 +18,12 @@  properties:
   compatible:
     const: adc-joystick
 
+  poll-interval-ms:
+    description:
+      Poll interval time in milliseconds. If not specified, device will use
+      iio buffer.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
   io-channels:
     minItems: 1
     maxItems: 1024