From: Gang.Liu@nxp.com (Liu Gang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dt-bindings: Add new platforms GPIO node description
Date: Wed, 23 Mar 2016 17:47:19 +0800 [thread overview]
Message-ID: <1458726442-1851-1-git-send-email-Gang.Liu@nxp.com> (raw)
Update the NXP GPIO node dt-binding file for QorIQ and
Layerscape platforms, and add one more example with
ls2080a GPIO node.
Signed-off-by: Liu Gang <Gang.Liu@nxp.com>
---
.../devicetree/bindings/gpio/gpio-mpc8xxx.txt | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
index 120bc49..4b6cc63 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
@@ -1,9 +1,10 @@
-* Freescale MPC512x/MPC8xxx/Layerscape GPIO controller
+* Freescale MPC512x/MPC8xxx/QorIQ/Layerscape GPIO controller
Required properties:
- compatible : Should be "fsl,<soc>-gpio"
The following <soc>s are known to be supported:
- mpc5121, mpc5125, mpc8349, mpc8572, mpc8610, pq3, qoriq.
+ mpc5121, mpc5125, mpc8349, mpc8572, mpc8610, pq3, qoriq,
+ ls1021a, ls1043a, ls2080a.
- reg : Address and length of the register set for the device
- interrupts : Should be the port interrupt shared by all 32 pins.
- #gpio-cells : Should be two. The first cell is the pin number and
@@ -15,7 +16,7 @@ Optional properties:
- little-endian : GPIO registers are used as little endian. If not
present registers are used as big endian by default.
-Example:
+Example of gpio-controller node for a mpc5125 SoC:
gpio0: gpio at 1100 {
compatible = "fsl,mpc5125-gpio";
@@ -24,3 +25,16 @@ gpio0: gpio at 1100 {
interrupts = <78 0x8>;
status = "okay";
};
+
+Example of gpio-controller node for a ls2080a SoC:
+
+gpio0: gpio at 2300000 {
+ compatible = "fsl,ls2080a-gpio", "fsl,qoriq-gpio";
+ reg = <0x0 0x2300000 0x0 0x10000>;
+ interrupts = <0 36 0x4>; /* Level high type */
+ gpio-controller;
+ little-endian;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+};
--
2.1.0.27.g96db324
next reply other threads:[~2016-03-23 9:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 9:47 Liu Gang [this message]
2016-03-23 9:47 ` [PATCH v2] gpio/ls1021a: Add gpio support for ls1021a platform Liu Gang
2016-03-31 8:32 ` Linus Walleij
2016-04-13 4:48 ` Shawn Guo
2016-03-23 9:47 ` [PATCH v2] gpio/ls1043a: Add compatible "fsl, qoriq-gpio" for ls1043a gpio nodes Liu Gang
2016-03-31 3:36 ` [PATCH v2] gpio/ls1043a: Add compatible "fsl,qoriq-gpio" " Gang Liu
2016-04-01 12:53 ` Linus Walleij
2016-04-13 5:03 ` [PATCH v2] gpio/ls1043a: Add compatible "fsl, qoriq-gpio" " Shawn Guo
2016-03-23 9:47 ` [PATCH] gpio/ls2080a: Add compatible "fsl, ls2080a-gpio" for ls2080a " Liu Gang
2016-03-31 8:29 ` [PATCH] gpio/ls2080a: Add compatible "fsl,ls2080a-gpio" " Linus Walleij
2016-03-31 19:40 ` Li Yang
2016-04-13 5:04 ` [PATCH] gpio/ls2080a: Add compatible "fsl, ls2080a-gpio" " Shawn Guo
2016-03-31 8:30 ` [PATCH] dt-bindings: Add new platforms GPIO node description Linus Walleij
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=1458726442-1851-1-git-send-email-Gang.Liu@nxp.com \
--to=gang.liu@nxp.com \
--cc=linux-arm-kernel@lists.infradead.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).