Message ID | 1435545357-4494-1-git-send-email-jun.nie@linaro.org |
---|---|
State | Accepted |
Commit | 24f743a0f06675da4e7c6a07b88e90d425edd30a |
Headers | show |
On Mon, Jun 29, 2015 at 10:35 AM, Jun Nie <jun.nie@linaro.org> wrote: > Add document of ZTE zx296702 GPIO binding > > Signed-off-by: Jun Nie <jun.nie@linaro.org> For both patches, Acked-by: Shawn Guo <shawn.guo@linaro.org> -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2015-06-29 16:45 GMT+08:00 Shawn Guo <shawn.guo@linaro.org>: > On Mon, Jun 29, 2015 at 10:35 AM, Jun Nie <jun.nie@linaro.org> wrote: >> Add document of ZTE zx296702 GPIO binding >> >> Signed-off-by: Jun Nie <jun.nie@linaro.org> > > For both patches, > > Acked-by: Shawn Guo <shawn.guo@linaro.org> Hi Linus, Could you help merge these two patches? Or you see any issue? Thanks! [PATCH v3 1/2] dt/bindings: gpio: Document ZTE zx296702 GPIO [PATCH v3 2/2] gpio: zx: Add ZTE zx296702 GPIO support Jun -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, Jun 29, 2015 at 4:35 AM, Jun Nie <jun.nie@linaro.org> wrote: > Add document of ZTE zx296702 GPIO binding > > Signed-off-by: Jun Nie <jun.nie@linaro.org> Patch applied with Shawn's ACK. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt b/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt new file mode 100644 index 0000000..0dab156 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/zx296702-gpio.txt @@ -0,0 +1,24 @@ +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>; +};
Add document of ZTE zx296702 GPIO binding Signed-off-by: Jun Nie <jun.nie@linaro.org> --- .../devicetree/bindings/gpio/zx296702-gpio.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/zx296702-gpio.txt