Lines Matching +full:adc +full:- +full:channels
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
4 ---
5 $id: http://devicetree.org/schemas/input/adc-joystick.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: ADC attached joystick
11 - Artur Rojek <contact@artur-rojek.eu>
14 Bindings for joystick devices connected to ADC controllers supporting
18 - $ref: input.yaml#
22 const: adc-joystick
24 io-channels:
29 Each pair defines one ADC channel to which a joystick axis is connected.
31 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml
34 poll-interval: true
36 '#address-cells':
39 '#size-cells':
43 - compatible
44 - io-channels
45 - '#address-cells'
46 - '#size-cells'
51 "^axis@[0-9a-f]+$":
55 Represents a joystick axis bound to the given ADC channel.
56 For each entry in the io-channels list, one axis subnode with a matching
63 description: Index of an io-channels list entry bound to this axis.
68 abs-range:
69 $ref: /schemas/types.yaml#/definitions/uint32-array
71 - description: minimum value
72 - description: maximum value
75 For an ABS_X axis this will be the left-most and right-most
80 abs-fuzz:
86 abs-flat:
95 - reg
96 - linux,code
97 - abs-range
102 - |
103 #include <dt-bindings/iio/adc/ingenic,adc.h>
104 #include <dt-bindings/input/input.h>
106 joystick: adc-joystick {
107 compatible = "adc-joystick";
108 io-channels = <&adc INGENIC_ADC_TOUCH_XP>,
109 <&adc INGENIC_ADC_TOUCH_YP>;
110 #address-cells = <1>;
111 #size-cells = <0>;
116 abs-range = <3300 0>;
117 abs-fuzz = <4>;
118 abs-flat = <200>;
123 abs-range = <0 3300>;
124 abs-fuzz = <4>;
125 abs-flat = <200>;