linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anders Berg <anders.berg@avagotech.com>
To: Linus Walleij <linus.walleij@linaro.org>,
	Alexandre Courbot <gnurou@gmail.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Anders Berg <anders.berg@avagotech.com>
Subject: [PATCH 2/2] Documentation: DT bindings for AXM55xx SSP CS
Date: Mon,  1 Sep 2014 14:53:41 +0200	[thread overview]
Message-ID: <1409576021-24828-3-git-send-email-anders.berg@avagotech.com> (raw)
In-Reply-To: <1409576021-24828-1-git-send-email-anders.berg@avagotech.com>

Bindings and documentation for AXM55xx SSP chip select controller.

Signed-off-by: Anders Berg <anders.berg@avagotech.com>
---
 .../devicetree/bindings/gpio/gpio-axxia-sspcs.txt  | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-axxia-sspcs.txt

diff --git a/Documentation/devicetree/bindings/gpio/gpio-axxia-sspcs.txt b/Documentation/devicetree/bindings/gpio/gpio-axxia-sspcs.txt
new file mode 100644
index 0000000..a64c695
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-axxia-sspcs.txt
@@ -0,0 +1,36 @@
+* Axxia SSP GPIO chip-select driver
+
+The Axxia device has a ARM PL022 Prime Cell SSP controller with an extension of
+five chip select signals that may be controlled by software. This driver
+exports them as GPIOs.
+
+Required properties:
+
+  * compatible: should be "lsi,ssp-gpio"
+  * reg: address of the chip select control register.
+  * gpio-controller: mark the device as gpio controller
+  * #gpio-cells: should be 1 and this field specifies the chip select number
+
+Example:
+-------
+
+	spics: sspgpio@2010088030 {
+		compatible = "lsi,ssp-gpio";
+		#gpio-cells = <1>;
+		reg = <0x20 0x10088030 0x00 0x4>;
+		gpio-controller;
+	};
+
+	spi0: ssp@2010088000 {
+		compatible = "arm,pl022", "arm,primecell";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0x20 0x10088000 0x00 0x1000>;
+		num-cs = <5>;
+		cs-gpios = <&spics 0>,
+			   <&spics 1>,
+			   <&spics 2>,
+			   <&spics 3>,
+			   <&spics 4>;
+		...
+      };
-- 
1.9.1

  parent reply	other threads:[~2014-09-01 12:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 12:53 [PATCH 0/2] Add driver for AXM55xx SSP chip selects Anders Berg
2014-09-01 12:53 ` [PATCH 1/2] gpio: " Anders Berg
2014-09-04 17:04   ` Linus Walleij
     [not found]     ` <CACRpkdby4H-fivNn_kG2uL0EjsCGAc+t6OyFi0+VcNGf2Z9NQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-04 17:06       ` Mark Brown
2014-09-04 17:32         ` Linus Walleij
2014-09-05  9:05           ` Anders Berg
2014-09-06 13:53             ` Mark Brown
     [not found]               ` <20140906135308.GC2601-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-09-08 11:02                 ` Anders Berg
2014-09-08 11:35                   ` Mark Brown
2014-09-05  9:47   ` Russell King - ARM Linux
2014-09-05 13:40     ` Anders Berg
2014-09-01 12:53 ` Anders Berg [this message]
2014-09-04 17:05   ` [PATCH 2/2] Documentation: DT bindings for AXM55xx SSP CS 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=1409576021-24828-3-git-send-email-anders.berg@avagotech.com \
    --to=anders.berg@avagotech.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.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).