Lines Matching +full:button +full:- +full:enter
1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/input/adc-keys.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
13 - $ref: input.yaml#
17 const: adc-keys
19 io-channels:
22 io-channel-names:
25 keyup-threshold-microvolt:
29 poll-interval: true
33 '^button-':
38 Each button (key) is represented as a sub-node.
45 press-threshold-microvolt:
48 two values of press-threshold-microvolt may be the same. All values
49 of press-threshold-microvolt must be less than
50 keyup-threshold-microvolt.
53 - linux,code
54 - press-threshold-microvolt
57 - compatible
58 - io-channels
59 - io-channel-names
60 - keyup-threshold-microvolt
65 - |
66 #include <dt-bindings/input/input.h>
67 // +--------------------------------+------------------------+
69 // +--------------------------------+------------------------+
71 // +--------------------------------+------------------------+
73 // +--------------------------------+------------------------+
75 // +--------------------------------+------------------------+
77 // +--------------------------------+------------------------+
79 adc-keys {
80 compatible = "adc-keys";
81 io-channels = <&lradc 0>;
82 io-channel-names = "buttons";
83 keyup-threshold-microvolt = <2000000>;
85 button-up {
88 press-threshold-microvolt = <1500000>;
91 button-down {
94 press-threshold-microvolt = <1000000>;
97 button-enter {
98 label = "Enter";
100 press-threshold-microvolt = <500000>;