All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Add documentation for CPM GPIO banks
@ 2008-07-05 11:29 Jochen Friedrich
  2008-07-15 13:27 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Jochen Friedrich @ 2008-07-05 11:29 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev list, Paul Mackerras, Scott Wood

Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
 Documentation/powerpc/device-tree/fsl/cpm/gpio.txt |   38 ++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/powerpc/device-tree/fsl/cpm/gpio.txt

diff --git a/Documentation/powerpc/device-tree/fsl/cpm/gpio.txt b/Documentation/powerpc/device-tree/fsl/cpm/gpio.txt
new file mode 100644
index 0000000..54644ae
--- /dev/null
+++ b/Documentation/powerpc/device-tree/fsl/cpm/gpio.txt
@@ -0,0 +1,38 @@
+Every GPIO controller node must have #gpio-cells property defined,
+this information will be used to translate gpio-specifiers.
+
+On CPM1 devices, all ports are using slightly different register layouts.
+Ports A, C and D are 16bit ports and Ports B and E are 32bit ports.
+
+On CPM2 devices, all ports are 32bit ports and use a common register layout.
+
+Required properties:
+- compatible : "fsl,cpm1-pario-bank-a", "fsl,cpm1-pario-bank-b", 
+  "fsl,cpm1-pario-bank-c", "fsl,cpm1-pario-bank-d",
+  "fsl,cpm1-pario-bank-e", "fsl,cpm2-pario-bank"
+- #gpio-cells : Should be two. The first cell is the pin number and the
+  second cell is used to specify optional paramters (currently unused).
+- gpio-controller : Marks the port as GPIO controller.
+
+Example of three SOC GPIO banks defined as gpio-controller nodes:
+
+	CPM1_PIO_A: gpio-controller@950 {
+		#gpio-cells = <2>;
+		compatible = "fsl,cpm1-pario-bank-a";
+		reg = <0x950 0x10>;
+		gpio-controller;
+	};
+
+	CPM1_PIO_B: gpio-controller@ab8 {
+		#gpio-cells = <2>;
+		compatible = "fsl,cpm1-pario-bank-b";
+		reg = <0xab8 0x10>;
+		gpio-controller;
+	};
+
+	CPM1_PIO_E: gpio-controller@ac8 {
+		#gpio-cells = <2>;
+		compatible = "fsl,cpm1-pario-bank-e";
+		reg = <0xac8 0x18>;
+		gpio-controller;
+	};
-- 
1.5.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc: Add documentation for CPM GPIO banks
  2008-07-05 11:29 [PATCH] powerpc: Add documentation for CPM GPIO banks Jochen Friedrich
@ 2008-07-15 13:27 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-07-15 13:27 UTC (permalink / raw)
  To: Jochen Friedrich; +Cc: linuxppc-dev list, Paul Mackerras, Scott Wood


On Jul 5, 2008, at 6:29 AM, Jochen Friedrich wrote:

> Signed-off-by: Jochen Friedrich <jochen@scram.de>
> ---
> Documentation/powerpc/device-tree/fsl/cpm/gpio.txt |   38 +++++++++++ 
> +++++++++
> 1 files changed, 38 insertions(+), 0 deletions(-)
> create mode 100644 Documentation/powerpc/device-tree/fsl/cpm/gpio.txt

applied.  Moved to new location dts-bindings/fsl/cpm_qe/gpio.txt

- k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-15 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-05 11:29 [PATCH] powerpc: Add documentation for CPM GPIO banks Jochen Friedrich
2008-07-15 13:27 ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.