From: Linus Walleij <linus.walleij@linaro.org>
To: Bernd Edlinger <bernd.edlinger@hotmail.de>
Cc: Rob Herring <robh@kernel.org>,
Christian Lamparter <chunkeey@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCHv5 1/2] Add device tree bindings for Altera FPGA Manager GPIO
Date: Tue, 31 Oct 2017 11:06:01 +0100 [thread overview]
Message-ID: <CACRpkdZb4_pyvDE0UfO+54LKMa1eLvszYzicPknmUmAHPjRzrw@mail.gmail.com> (raw)
In-Reply-To: <AM5PR0701MB2657C7D3D62759DCFCF65048E4450@AM5PR0701MB2657.eurprd07.prod.outlook.com>
On Thu, Oct 26, 2017 at 5:28 PM, Bernd Edlinger
<bernd.edlinger@hotmail.de> wrote:
> Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
> ---
> .../bindings/gpio/gpio-altera-fpgamgr.txt | 43 ++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-altera-fpgamgr.txt
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-altera-fpgamgr.txt b/Documentation/devicetree/bindings/gpio/gpio-altera-fpgamgr.txt
> new file mode 100644
> index 0000000..6e2ad47
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-altera-fpgamgr.txt
> @@ -0,0 +1,43 @@
> +Altera FPGA Manager GPIO controller bindings
> +
> +Required controller properties:
> +- #address-cells : Should be 1
> +- #size-cells : Should be 0
> +- compatible:
> + - "altr,fpgamgr-gpio"
> +- reg: Physical base address and length of the controller's registers.
> +
> +The FPGA Manager has two 32-bit ports, one for input and one for output.
> +
> +Port properties:
> +- compatible:
> + - "altr,fpgamgr-gpio-output"
> + - "altr,fpgamgr-gpio-input"
> +- #gpio-cells : Should be 2
> + - The first cell is the gpio offset number.
> + - The second cell is reserved and is currently unused.
> +- gpio-controller : Marks the device node as a GPIO controller.
> +- reg : Port number, 0 for output, 1 for input.
Don't do this. Create one device using a compatible
for each port. Do not create a top-level device containing
the two ports.
If you anyway want a top level device, use "simple-bus"
or something, not "altr,fpgamgr-gpio".
Only two compatibles/devices:
> + - "altr,fpgamgr-gpio-output"
> + - "altr,fpgamgr-gpio-input"
Yours,
Linus Walleij
prev parent reply other threads:[~2017-10-31 10:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-26 15:28 [PATCHv5 1/2] Add device tree bindings for Altera FPGA Manager GPIO Bernd Edlinger
2017-10-31 10:06 ` Linus Walleij [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACRpkdZb4_pyvDE0UfO+54LKMa1eLvszYzicPknmUmAHPjRzrw@mail.gmail.com \
--to=linus.walleij@linaro.org \
--cc=bernd.edlinger@hotmail.de \
--cc=chunkeey@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).