diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-11-20 18:33:35 +0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-12-28 15:07:37 +0400 |
commit | 5b615fbf4a856fd82a080e1ca5a5c53a55136e07 (patch) | |
tree | a8bdd07ea9bcf1f1b7a08e5be219ac9b31684707 | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) | |
download | linux-5b615fbf4a856fd82a080e1ca5a5c53a55136e07.tar.xz |
ARM: dts: cfa10049: Add PCA9555 GPIO expander to the device tree
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>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/imx28-cfa10049.dts | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index bdc80a4453dd..7890acc4161d 100644 --- a/arch/arm/boot/dts/imx28-cfa10049.dts +++ b/arch/arm/boot/dts/imx28-cfa10049.dts @@ -23,7 +23,8 @@ apbh@80000000 { pinctrl@80018000 { pinctrl-names = "default", "default"; - pinctrl-1 = <&hog_pins_cfa10049>; + pinctrl-1 = <&hog_pins_cfa10049 + &hog_pins_cfa10049_pullup>; hog_pins_cfa10049: hog-10049@0 { reg = <0>; @@ -38,6 +39,16 @@ fsl,pull-up = <0>; }; + hog_pins_cfa10049_pullup: hog-10049-pullup@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@0 { reg = <0>; fsl,pinmux-ids = < @@ -113,6 +124,19 @@ i2c@3 { reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + pca9555: pca9555@20 { + compatible = "nxp,pca9555"; + interrupt-parent = <&gpio2>; + interrupts = <19 0x2>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + reg = <0x20>; + }; }; }; |