Skip to content

Commit 24f743a

Browse files
niejlinusw
authored andcommitted
gpio: Document ZTE zx296702 GPIO DT binding
Add document of ZTE zx296702 GPIO binding Signed-off-by: Jun Nie <jun.nie@linaro.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 39561e8 commit 24f743a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ZTE ZX296702 GPIO controller
2+
3+
Required properties:
4+
- compatible : "zte,zx296702-gpio"
5+
- #gpio-cells : Should be two. The first cell is the pin number and the
6+
second cell is used to specify optional parameters:
7+
- bit 0 specifies polarity (0 for normal, 1 for inverted)
8+
- gpio-controller : Marks the device node as a GPIO controller.
9+
- interrupts : Interrupt mapping for GPIO IRQ.
10+
- gpio-ranges : Interaction with the PINCTRL subsystem.
11+
12+
gpio1: gpio@b008040 {
13+
compatible = "zte,zx296702-gpio";
14+
reg = <0xb008040 0x40>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
gpio-ranges = < &pmx0 0 54 2 &pmx0 2 59 14>;
18+
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
19+
interrupt-parent = <&intc>;
20+
interrupt-controller;
21+
#interrupt-cells = <2>;
22+
clock-names = "gpio_pclk";
23+
clocks = <&lsp0clk ZX296702_GPIO_CLK>;
24+
};

0 commit comments

Comments
 (0)