diff options
Diffstat (limited to 'zephyr/projects/it8xxx2_evb/interrupts.dts')
-rw-r--r-- | zephyr/projects/it8xxx2_evb/interrupts.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/zephyr/projects/it8xxx2_evb/interrupts.dts b/zephyr/projects/it8xxx2_evb/interrupts.dts new file mode 100644 index 0000000000..07fc0ed339 --- /dev/null +++ b/zephyr/projects/it8xxx2_evb/interrupts.dts @@ -0,0 +1,26 @@ +/* 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. + */ + +/ { + gpio-interrupts { + compatible = "cros-ec,gpio-interrupts"; + + int_power_button: power_button { + irq-pin = <&power_button_l>; + flags = <GPIO_INT_EDGE_BOTH>; + handler = "power_button_interrupt"; + }; + int_lid_open: lid_open { + irq-pin = <&lid_open>; + flags = <GPIO_INT_EDGE_BOTH>; + handler = "lid_interrupt"; + }; + int_spi0_cs: spi0_cs { + irq-pin = <&spi0_cs>; + flags = <GPIO_INT_EDGE_FALLING>; + handler = "spi_event"; + }; + }; +}; |