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)
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
Aspeed GPIO controller Device Tree Bindings
|
|
-------------------------------------------
|
|
|
|
Required properties:
|
|
- compatible : Either "aspeed,ast2400-gpio" or "aspeed,ast2500-gpio"
|
|
|
|
- #gpio-cells : Should be two
|
|
- First cell is the GPIO line number
|
|
- Second cell is used to specify optional
|
|
parameters (unused)
|
|
|
|
- reg : Address and length of the register set for the device
|
|
- gpio-controller : Marks the device node as a GPIO controller.
|
|
- interrupts : Interrupt specifier (see interrupt bindings for
|
|
details)
|
|
- interrupt-controller : Mark the GPIO controller as an interrupt-controller
|
|
|
|
Optional properties:
|
|
|
|
- interrupt-parent : The parent interrupt controller, optional if inherited
|
|
- clocks : A phandle to the clock to use for debounce timings
|
|
|
|
The gpio and interrupt properties are further described in their respective
|
|
bindings documentation:
|
|
|
|
- Documentation/devicetree/bindings/gpio/gpio.txt
|
|
- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
|
|
|
|
Example:
|
|
gpio@1e780000 {
|
|
#gpio-cells = <2>;
|
|
compatible = "aspeed,ast2400-gpio";
|
|
gpio-controller;
|
|
interrupts = <20>;
|
|
reg = <0x1e780000 0x1000>;
|
|
interrupt-controller;
|
|
};
|