Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform
Date: Sun,  6 Jan 2013 18:34:48 +0100	[thread overview]
Message-ID: <1357493688-25061-4-git-send-email-gregory.clement@free-electrons.com> (raw)
In-Reply-To: <1357493688-25061-1-git-send-email-gregory.clement@free-electrons.com>

The Globalscale Mirabox platform can be connected to the JTAG/GPIO box
through the Multi-IO port. The GPIO box use the NXP PCA9505 I/O port
expansion IC to provide 40-bit parallel input/output GPIOs. This patch
enable the use of this expander on the Mirabox.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 arch/arm/boot/dts/armada-370-mirabox.dts |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/armada-370-mirabox.dts b/arch/arm/boot/dts/armada-370-mirabox.dts
index 3b40713..d9b32d3 100644
--- a/arch/arm/boot/dts/armada-370-mirabox.dts
+++ b/arch/arm/boot/dts/armada-370-mirabox.dts
@@ -52,5 +52,15 @@
 			phy = <&phy1>;
 			phy-mode = "rgmii-id";
 		};
+		i2c at d0011000 {
+			status = "okay";
+			clock-frequency = <100000>;
+			pca9505: pca9505 at 25 {
+				compatible = "nxp,pca9505";
+				gpio-controller;
+				#gpio-cells = <2>;
+				reg = <0x25>;
+			};
+		};
 	};
 };
-- 
1.7.9.5

  parent reply	other threads:[~2013-01-06 17:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-06 17:34 [PATCH 0/3] Add support for gpio expander pca9505 used on Mirabox Gregory CLEMENT
2013-01-06 17:34 ` [PATCH 1/3] gpio: pca953x: make the register access by GPIO bank Gregory CLEMENT
2013-01-07 14:26   ` Maxime Ripard
2013-01-06 17:34 ` [PATCH 2/3] gpio: pca953x: add support for pca9505 Gregory CLEMENT
2013-01-10 11:15   ` Linus Walleij
2013-01-10 13:31     ` Gregory CLEMENT
2013-01-17 10:44       ` Linus Walleij
2013-01-06 17:34 ` Gregory CLEMENT [this message]
2013-01-10 11:17   ` [PATCH 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform Linus Walleij
2013-01-07  8:21 ` [PATCH 0/3] Add support for gpio expander pca9505 used on Mirabox Gregory CLEMENT

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=1357493688-25061-4-git-send-email-gregory.clement@free-electrons.com \
    --to=gregory.clement@free-electrons.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