1/* 2 * Copyright 2023 The ChromiumOS Authors 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/gpio/gpio.h> 8#include <zephyr/dt-bindings/interrupt-controller/ite-intc.h> 9#include <zephyr/sys/util_macro.h> 10 11/ { 12 intc: interrupt-controller@f03f00 { 13 compatible = "vnd,intc"; 14 #address-cells = <0>; 15 #interrupt-cells = <2>; 16 interrupt-controller; 17 reg = <0x00f03f00 0x0100>; 18 }; 19 20 gpioa: gpio@f01601 { 21 compatible = "ite,it8xxx2-gpio-v2"; 22 reg = <0x00f01601 1 /* GPDR (set) */ 23 0x00f01618 1 /* GPDMR (get) */ 24 0x00f01630 1 /* GPOTR */ 25 0x00f01648 1 /* P18SCR */ 26 0x00f01660 8>; /* GPCR */ 27 ngpios = <8>; 28 gpio-controller; 29 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 30 2 IRQ_TYPE_LEVEL_HIGH 31 3 IRQ_TYPE_LEVEL_HIGH 32 4 IRQ_TYPE_LEVEL_HIGH 33 5 IRQ_TYPE_LEVEL_HIGH 34 6 IRQ_TYPE_LEVEL_HIGH 35 7 IRQ_TYPE_LEVEL_HIGH 36 8 IRQ_TYPE_LEVEL_HIGH>; 37 interrupt-parent = <&intc>; 38 wuc-base = <0xf01b20 0xf01b20 0xf01b20 0xf01b1c 39 0xf01b1c 0xf01b1c 0xf01b1c 0xf01b24>; 40 wuc-mask = <BIT(3) BIT(4) BIT(5) BIT(0) 41 BIT(1) BIT(2) BIT(3) BIT(4) >; 42 has-volt-sel = <1 1 1 1 1 1 1 1>; 43 #gpio-cells = <2>; 44 }; 45}; 46