blob: bb6b4001f48c0e571ce9a8134565bb2aba166fea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
description: |
GPIO interrupts list bindings.
Uses device tree to configure the interrupt handling e.g
int_wp_l: wp_l {
irq-pin = <&gpio_ec_wp_odl>;
flags = <GPIO_INT_EDGE_BOTH>;
handler = "wp_interrupt";
};
The interrupt can be enabled either using the DTS label:
gpio_enable_dt_interrupt(GPIO_INT_FROM_NODELABEL(int_wp_l));
or the legacy:
gpio_enable_interrupt(GPIO_WP_L);
compatible: "cros-ec,gpio-interrupts"
child-binding:
description: GPIO Interrupt definition.
properties:
#
# This is named irq-pin rather than irq-gpio because
# anything with a name appended with "gpio" is treated specially,
# which causes warnings about missing #gpio-cells.
#
irq-pin:
type: phandle
required: true
description: The named-gpio GPIO source of the interrupt.
flags:
type: int
required: true
description: The zephyr gpio interrupt config flags.
handler:
type: string
description: The C function name attached to this interrupt.
|