mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 01:50:25 +00:00
e85cbe8b34
ACPI GPEs are used to signal interrupts from peripherals that are accessed via ACPI. In U-Boot these are modelled as interrupts using a separate interrupt controller. Configuration is via the device tree. Add a simple driver for this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
30 lines
906 B
Text
30 lines
906 B
Text
* Intel Advanced Configuration and Power Interface General Purpose Events
|
|
|
|
This describes an interrupt controller which provides access to GPEs supported
|
|
by the SoC.
|
|
|
|
Required properties:
|
|
|
|
- compatible : "intel,acpi-gpe"
|
|
- interrupt-controller : Identifies the node as an interrupt controller
|
|
- #interrupt-cells : The number of cells to define the interrupts. Must be 2:
|
|
cell 0: interrupt number (normally >=32 since GPEs below that are reserved)
|
|
cell 1: 0 (flags, but none are currently defined)
|
|
- reg : The register bank for the controller (set this to the ACPI base).
|
|
|
|
Example:
|
|
|
|
general-purpose-events {
|
|
reg = <IOMAP_ACPI_BASE IOMAP_ACPI_SIZE>;
|
|
compatible = "intel,acpi-gpe";
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
};
|
|
|
|
...
|
|
tpm@50 {
|
|
reg = <0x50>;
|
|
compatible = "google,cr50";
|
|
ready-gpio = <&gpio_n 0x1c GPIO_ACTIVE_LOW>;
|
|
interrupts-extended = <&acpi_gpe 0x3c 0>;
|
|
};
|