Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ITE IT8XXX2 wake-up controller

Devicetree macros for the ITE IT8XXX2 Wake-Up Controller (WUC). More...

Files

file  it8xxx2-wuc.h
 ITE IT8XXX2 wake-up controller devicetree macros.

Macros

#define IT8XXX2_WUC_UNUSED_REG   0
 WUC reserved register of reg property.

wakeup controller flags

#define WUC_TYPE_EDGE_RISING   BIT(0)
 WUC rising edge trigger mode.
#define WUC_TYPE_EDGE_FALLING   BIT(1)
 WUC falling edge trigger mode.
#define WUC_TYPE_EDGE_BOTH   (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING)
 WUC both edge trigger mode.

Detailed Description

Devicetree macros for the ITE IT8XXX2 Wake-Up Controller (WUC).

Macros for describing wake-up controller cells used with the ite,it8xxx2-wuc and ite,it8xxx2-wuc-map compatible controllers. A WUC mapping references a WUC group node and the bit mask of the wake-up input within that group; IT8XXX2_WUC_UNUSED_REG is used where a group has no associated edge-trigger register. The WUC_TYPE_EDGE_* flags select the edge trigger mode of a wake-up input.

wuc_wu20: wu20 {
wucs = <&wuc2 BIT(0)>;
};

Macro Definition Documentation

◆ IT8XXX2_WUC_UNUSED_REG

#define IT8XXX2_WUC_UNUSED_REG   0

#include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h>

WUC reserved register of reg property.

◆ WUC_TYPE_EDGE_BOTH

#define WUC_TYPE_EDGE_BOTH   (WUC_TYPE_EDGE_RISING | WUC_TYPE_EDGE_FALLING)

#include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h>

WUC both edge trigger mode.

◆ WUC_TYPE_EDGE_FALLING

#define WUC_TYPE_EDGE_FALLING   BIT(1)

#include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h>

WUC falling edge trigger mode.

◆ WUC_TYPE_EDGE_RISING

#define WUC_TYPE_EDGE_RISING   BIT(0)

#include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h>

WUC rising edge trigger mode.