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)
25 lines
802 B
Plaintext
25 lines
802 B
Plaintext
ZTE ZX296702 GPIO controller
|
|
|
|
Required properties:
|
|
- compatible : "zte,zx296702-gpio"
|
|
- #gpio-cells : Should be two. The first cell is the pin number and the
|
|
second cell is used to specify optional parameters:
|
|
- bit 0 specifies polarity (0 for normal, 1 for inverted)
|
|
- gpio-controller : Marks the device node as a GPIO controller.
|
|
- interrupts : Interrupt mapping for GPIO IRQ.
|
|
- gpio-ranges : Interaction with the PINCTRL subsystem.
|
|
|
|
gpio1: gpio@b008040 {
|
|
compatible = "zte,zx296702-gpio";
|
|
reg = <0xb008040 0x40>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
gpio-ranges = < &pmx0 0 54 2 &pmx0 2 59 14>;
|
|
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-parent = <&intc>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
clock-names = "gpio_pclk";
|
|
clocks = <&lsp0clk ZX296702_GPIO_CLK>;
|
|
};
|