Lines Matching +full:gpio +full:- +full:keys
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf
17 - $ref: matrix-keymap.yaml#
18 - $ref: input.yaml#
23 - adi,adp5587
24 - adi,adp5588
29 vcc-supply:
32 reset-gpios:
41 gpio-controller:
43 This property applies if either keypad,num-rows lower than 8 or
44 keypad,num-columns lower than 10.
46 '#gpio-cells':
49 interrupt-controller:
51 This property applies if either keypad,num-rows lower than 8 or
52 keypad,num-columns lower than 10. This property is optional if
53 keypad,num-rows or keypad,num-columns are not specified as the
54 device is then configured to be used purely for gpio during which
57 '#interrupt-cells':
60 adi,unlock-keys:
62 Specifies a maximum of 2 keys that can be used to unlock the keypad.
64 after these keys are pressed. If only one key is set, a double click is
66 or equal than keypad,num-rows * keypad,num-columns.
67 $ref: /schemas/types.yaml#/definitions/uint32-array
72 keypad,num-rows:
73 - linux,keymap
74 - keypad,num-columns
75 keypad,num-columns:
76 - linux,keymap
77 - keypad,num-rows
79 - keypad,num-rows
80 - keypad,num-columns
81 - interrupts
82 interrupt-controller:
83 - interrupts
86 - compatible
87 - reg
92 - |
93 #include <dt-bindings/interrupt-controller/irq.h>
94 #include <dt-bindings/input/input.h>
95 #include <dt-bindings/gpio/gpio.h>
97 #address-cells = <1>;
98 #size-cells = <0>;
100 keys@34 {
104 vcc-supply = <&vcc>;
106 interrupt-parent = <&gpio>;
107 reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
109 keypad,num-rows = <1>;
110 keypad,num-columns = <9>;
125 - |
126 #include <dt-bindings/gpio/gpio.h>
128 #address-cells = <1>;
129 #size-cells = <0>;
130 gpio@34 {
134 #gpio-cells = <2>;
135 gpio-controller;