linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] DT: Add documentation for gpio-falcon

To: John Crispin <blogic@openwrt.org>
Subject: Re: [PATCH 1/2] DT: Add documentation for gpio-falcon
From: Kumar Gala <galak@codeaurora.org>
Date: Thu, 8 Aug 2013 09:43:01 -0500
Cc: Grant Likely <grant.likely@linaro.org>, Rob Herring <rob.herring@calxeda.com>, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org
In-reply-to: <1375971555-24128-1-git-send-email-blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1375971555-24128-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
On Aug 8, 2013, at 9:19 AM, John Crispin wrote:

> Describe gpio-falcon binding.

Would be good to have a little more description in the commit message about 
which SoC this is associated with.

> 
> Signed-off-by: John Crispin <blogic@openwrt.org>
> Cc: linux-mips@linux-mips.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-gpio@vger.kernel.org
> ---
> .../devicetree/bindings/gpio/gpio-falcon.txt       |   25 ++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-falcon.txt
> 
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-falcon.txt 
> b/Documentation/devicetree/bindings/gpio/gpio-falcon.txt
> new file mode 100644
> index 0000000..60bc6cd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-falcon.txt
> @@ -0,0 +1,25 @@
> +Lantiq Falon SoC GPIO controller bindings
> +
> +Required properties:
> +- compatible:
> +  - "lantiq,falcon-gpio" for Falcon SoC controllers
> +- #gpio-cells : Should be two.
> +  - first cell is the pin number
> +  - second cell is used to specify optional parameters (unused)
> +- gpio-controller : Marks the device node as a GPIO controller
> +- reg : Physical base address and length of the controller's registers
> +- interrupt-parent: phandle to the IM device node that the irq is routed via
> +- interrupts : Specify the IM interrupt number
> +- lantiq,bank : The physical GPIO bank that this block is assiciated with

spelling w/assiciated

> +
> +Example:
> +
> +     gpio0: gpio@810000 {
> +             compatible = "lantiq,falcon-gpio";
> +             #gpio-cells = <2>;
> +             gpio-controller;
> +             reg = <0x810000 0x80>;
> +             interrupt-parent = <&icu0>;
> +             interrupts = <44>;
> +             lantiq,bank = <0>;
> +     };

- k

> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by 
The Linux Foundation


<Prev in Thread] Current Thread [Next in Thread>