Lines Matching +full:gpio +full:- +full:trigger

1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
19 - items:
20 - enum:
21 - adi,adp5585-00 # Default
22 - adi,adp5585-01 # 11 GPIOs
23 - adi,adp5585-02 # No pull-up resistors by default on special pins
24 - adi,adp5585-03 # Alternate I2C address
25 - adi,adp5585-04 # Pull-down resistors on all pins by default
26 - const: adi,adp5585
27 - items:
28 - enum:
29 - adi,adp5589-00 # Default
30 - adi,adp5589-01 # R4 defaulted to RESET1 output
31 - adi,adp5589-02 # Pull-down resistors by default on special pins
32 - const: adi,adp5589
40 vdd-supply: true
42 reset-gpios:
45 gpio-controller: true
47 '#gpio-cells':
50 gpio-reserved-ranges: true
52 "#pwm-cells":
55 interrupt-controller: true
57 '#interrupt-cells':
60 poll-interval:
64 adi,keypad-pins:
66 $ref: /schemas/types.yaml#/definitions/uint32-array
68 adi,unlock-events:
74 $ref: /schemas/types.yaml#/definitions/uint32-array
79 - minimum: 1
81 - minimum: 97
83 - const: 127
85 adi,unlock-trigger-sec:
92 adi,reset1-events:
94 Defines the trigger events (key/gpi presses) that can generate reset
96 $ref: /schemas/types.yaml#/definitions/uint32-array
100 adi,reset2-events:
102 Defines the trigger events (key/gpi presses) that can generate reset
104 $ref: /schemas/types.yaml#/definitions/uint32-array
108 adi,reset1-active-high:
112 adi,reset2-active-high:
116 adi,rst-passthrough-enable:
120 adi,reset-trigger-ms:
128 adi,reset-pulse-width-us:
134 "-hog(-[0-9]+)?$":
138 - gpio-hog
142 - adi,keypad-pins
143 - interrupts
144 interrupt-controller:
145 - interrupts
146 adi,unlock-trigger-sec:
147 - adi,unlock-events
148 adi,reset1-active-high:
149 - adi,reset1-events
150 adi,rst-passtrough-enable:
151 - adi,reset1-events
152 adi,reset2-active-high:
153 - adi,reset2-events
156 - compatible
157 - reg
160 - $ref: /schemas/input/matrix-keymap.yaml#
161 - $ref: /schemas/input/input.yaml#
162 - if:
166 const: adi,adp5585-01
169 adi,unlock-events: false
170 adi,unlock-trigger-sec: false
171 gpio-reserved-ranges: false
172 reset-gpios: false
173 adi,keypad-pins:
179 adi,reset1-events:
182 - minimum: 1
184 - minimum: 37
186 adi,reset2-events:
189 - minimum: 1
191 - minimum: 37
193 - if:
198 - adi,adp5585-00
199 - adi,adp5585-02
200 - adi,adp5585-03
201 - adi,adp5585-04
204 adi,unlock-events: false
205 adi,unlock-trigger-sec: false
206 adi,keypad-pins:
211 adi,reset1-events:
214 - minimum: 1
216 - enum: [37, 38, 39, 40, 41, 43, 44, 45, 46, 47]
217 adi,reset2-events:
220 - minimum: 1
222 - enum: [37, 38, 39, 40, 41, 43, 44, 45, 46, 47]
223 gpio-reserved-ranges:
227 - const: 5
228 - const: 1
230 - if:
235 - adi,adp5589-00
236 - adi,adp5589-01
237 - adi,adp5589-02
240 gpio-reserved-ranges: false
241 adi,keypad-pins:
247 adi,reset1-events:
250 - minimum: 1
252 - minimum: 97
254 adi,reset2-events:
257 - minimum: 1
259 - minimum: 97
265 - |
266 #include <dt-bindings/input/input.h>
267 #include <dt-bindings/interrupt-controller/irq.h>
269 #address-cells = <1>;
270 #size-cells = <0>;
272 io-expander@34 {
273 compatible = "adi,adp5585-00", "adi,adp5585";
276 vdd-supply = <&reg_3v3>;
278 gpio-controller;
279 #gpio-cells = <2>;
280 gpio-reserved-ranges = <5 1>;
282 #pwm-cells = <3>;
285 interrupt-parent = <&gpio>;
287 adi,reset1-events = <1 43>;
288 adi,reset2-events = <2 3>;
289 adi,reset-trigger-ms = <2000>;
295 adi,keypad-pins = <0 1 2 6 7 8>;