linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2] ARM: dts: cfa10049: Add PCA9555 GPIO expander to the device tree
Date: Tue, 20 Nov 2012 15:33:35 +0100	[thread overview]
Message-ID: <1353422015-4790-1-git-send-email-maxime.ripard@free-electrons.com> (raw)
In-Reply-To: <20121120144322.GE4882@S2100-06.ap.freescale.net>

Add the GPIO expander found on the i2c1 bus, behind the muxer to the
device tree.

This gpio expander will be used to get tachymeters values and data ready
interruptions from the nuvoton NAU7802 ADCs.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/imx28-cfa10049.dts |   26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts
index bdc80a4..7890acc 100644
--- a/arch/arm/boot/dts/imx28-cfa10049.dts
+++ b/arch/arm/boot/dts/imx28-cfa10049.dts
@@ -23,7 +23,8 @@
 		apbh at 80000000 {
 			pinctrl at 80018000 {
 				pinctrl-names = "default", "default";
-				pinctrl-1 = <&hog_pins_cfa10049>;
+				pinctrl-1 = <&hog_pins_cfa10049
+					&hog_pins_cfa10049_pullup>;
 
 				hog_pins_cfa10049: hog-10049 at 0 {
 					reg = <0>;
@@ -38,6 +39,16 @@
 					fsl,pull-up = <0>;
 				};
 
+				hog_pins_cfa10049_pullup: hog-10049-pullup at 0 {
+					reg = <0>;
+					fsl,pinmux-ids = <
+						0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
+					>;
+					fsl,drive-strength = <0>;
+					fsl,voltage = <1>;
+					fsl,pull-up = <1>;
+				};
+
 				spi3_pins_cfa10049: spi3-cfa10049 at 0 {
 					reg = <0>;
 					fsl,pinmux-ids = <
@@ -113,6 +124,19 @@
 
 				i2c@3 {
 					reg = <3>;
+					#address-cells = <1>;
+					#size-cells = <0>;
+
+					pca9555: pca9555 at 20 {
+						compatible = "nxp,pca9555";
+						interrupt-parent = <&gpio2>;
+						interrupts = <19 0x2>;
+						gpio-controller;
+						#gpio-cells = <2>;
+						interrupt-controller;
+						#interrupt-cells = <2>;
+						reg = <0x20>;
+					};
 				};
 			};
 
-- 
1.7.9.5

  reply	other threads:[~2012-11-20 14:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 17:01 [PATCH 0/3] Add support of the PCA9555 to the CFA-10049 Maxime Ripard
2012-11-08 17:01 ` [PATCH 1/3] gpio: pca953x: Register an IRQ domain Maxime Ripard
2012-11-17 20:09   ` Linus Walleij
2012-11-08 17:01 ` [PATCH 2/3] gpio: pca953x: Add compatible strings to gpio-pca953x driver Maxime Ripard
2012-11-17 20:10   ` Linus Walleij
2012-11-08 17:01 ` [PATCH 3/3] ARM: dts: cfa10049: Add PCA9555 GPIO expander to the device tree Maxime Ripard
2012-11-17 20:12   ` Linus Walleij
2012-11-19 14:50     ` Maxime Ripard
2012-11-20 13:25   ` Shawn Guo
2012-11-20 13:50     ` Maxime Ripard
2012-11-20 14:43       ` Shawn Guo
2012-11-20 14:33         ` Maxime Ripard [this message]
2012-11-22 10:45           ` [PATCHv2] " Maxime Ripard
2012-11-22 11:24             ` Shawn Guo
2012-12-27 22:00               ` Maxime Ripard
2012-12-28 11:03                 ` Shawn Guo
2012-11-23 10:17           ` Maxime Ripard

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=1353422015-4790-1-git-send-email-maxime.ripard@free-electrons.com \
    --to=maxime.ripard@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;
as well as URLs for NNTP newsgroup(s).