Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
* Atmel GPIO controller (PIO)
|
|
|
|
Required properties:
|
|
- compatible: "atmel,<chip>-gpio", where <chip> is at91rm9200 or at91sam9x5.
|
|
- reg: Should contain GPIO controller registers location and length
|
|
- interrupts: Should be the port interrupt shared by all the pins.
|
|
- #gpio-cells: Should be two. The first cell is the pin number and
|
|
the second cell is used to specify optional parameters to declare if the GPIO
|
|
is active high or low. See gpio.txt.
|
|
- gpio-controller: Marks the device node as a GPIO controller.
|
|
- interrupt-controller: Marks the device node as an interrupt controller.
|
|
- #interrupt-cells: Should be two. The first cell is the pin number and the
|
|
second cell is used to specify irq type flags, see the two cell description
|
|
in interrupt-controller/interrupts.txt for details.
|
|
|
|
optional properties:
|
|
- #gpio-lines: Number of gpio if absent 32.
|
|
|
|
|
|
Example:
|
|
pioA: gpio@fffff200 {
|
|
compatible = "atmel,at91rm9200-gpio";
|
|
reg = <0xfffff200 0x100>;
|
|
interrupts = <2 4>;
|
|
#gpio-cells = <2>;
|
|
gpio-controller;
|
|
#gpio-lines = <19>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
};
|
|
|