xref: /freebsd/sys/contrib/device-tree/Bindings/gpio/zx296702-gpio.txt (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1ZTE ZX296702 GPIO controller
2
3Required 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
12gpio1: 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};
25