* [PATCHv5 1/2] Add device tree bindings for Altera FPGA Manager GPIO
@ 2017-10-26 15:28 Bernd Edlinger
2017-10-31 10:06 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Edlinger @ 2017-10-26 15:28 UTC (permalink / raw)
To: Linus Walleij
Cc: Rob Herring, Christian Lamparter,
linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Bernd Edlinger <bernd.edlinger-PkbjNfxxIASELgA04lAiVw@public.gmane.org>
---
.../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.
+
+Example:
+
+gpio3: gpio@ff706010 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "altr,fpgamgr-gpio";
+ reg = <0xff706010 0x8>;
+
+ portd: gpio-controller@0 {
+ compatible = "altr,fpgamgr-gpio-output";
+ gpio-controller;
+ #gpio-cells = <2>;
+ reg = <0>;
+ };
+
+ porte: gpio-controller@1 {
+ compatible = "altr,fpgamgr-gpio-input";
+ gpio-controller;
+ #gpio-cells = <2>;
+ reg = <1>;
+ };
+};
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv5 1/2] Add device tree bindings for Altera FPGA Manager GPIO
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
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-10-31 10:06 UTC (permalink / raw)
To: Bernd Edlinger
Cc: Rob Herring, Christian Lamparter, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-31 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).