1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/adi,adp5588.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices ADP5588 Keypad Controller
10 - Nuno Sá <nuno.sa@analog.com>
13 Analog Devices Mobile I/O Expander and QWERTY Keypad Controller
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf
17 - $ref: matrix-keymap.yaml#
30 description: Supply Voltage Input
34 If specified, it will be asserted during driver probe. As the line is
35 active low, it should be marked GPIO_ACTIVE_LOW.
43 This property applies if either keypad,num-rows lower than 8 or
44 keypad,num-columns lower than 10.
51 This property applies if either keypad,num-rows lower than 8 or
52 keypad,num-columns lower than 10.
59 Specifies a maximum of 2 keys that can be used to unlock the keypad.
60 If this property is set, the keyboard will be locked and only unlocked
61 after these keys are pressed. If only one key is set, a double click is
62 needed to unlock the keypad. The value of this property cannot be bigger
63 or equal than keypad,num-rows * keypad,num-columns.
64 $ref: /schemas/types.yaml#/definitions/uint32-array
76 unevaluatedProperties: false
80 #include <dt-bindings/interrupt-controller/irq.h>
81 #include <dt-bindings/input/input.h>
82 #include <dt-bindings/gpio/gpio.h>
88 compatible = "adi,adp5588";
92 interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
93 interrupt-parent = <&gpio>;
94 reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
96 keypad,num-rows = <1>;
97 keypad,num-columns = <9>;
99 MATRIX_KEY(0x00, 0x00, KEY_1)
100 MATRIX_KEY(0x00, 0x01, KEY_2)
101 MATRIX_KEY(0x00, 0x02, KEY_3)
102 MATRIX_KEY(0x00, 0x03, KEY_4)
103 MATRIX_KEY(0x00, 0x04, KEY_5)
104 MATRIX_KEY(0x00, 0x05, KEY_6)
105 MATRIX_KEY(0x00, 0x06, KEY_7)
106 MATRIX_KEY(0x00, 0x07, KEY_8)
107 MATRIX_KEY(0x00, 0x08, KEY_9)