diff options
author | Andrew F. Davis <afd@ti.com> | 2016-10-07 10:44:22 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-11-18 10:05:33 -0500 |
commit | 3c558b3289e83a2010de99b60df3d36b93609c99 (patch) | |
tree | 79cdb35982e001620f9c9e1a10667feb6fe7d7f2 | |
parent | a291b6b3d287592da72d463e5e141a2a60e8ee04 (diff) |
ARM: dts: am335x-icev2: Add Industrial input support
The SN65HVS882 is available on the AM335x-ICEv2 and is attached to SPI0.
Input is attached to the I/O header.
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/am335x-icev2.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts index 85e04c205542..d46efc6a0772 100644 --- a/arch/arm/boot/dts/am335x-icev2.dts +++ b/arch/arm/boot/dts/am335x-icev2.dts | |||
@@ -187,6 +187,8 @@ | |||
187 | AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */ | 187 | AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */ |
188 | AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */ | 188 | AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */ |
189 | AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */ | 189 | AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */ |
190 | AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE0) /* (C15) spi0_cs1.spi0_cs1 */ | ||
191 | AM33XX_IOPAD(0x9a0, PIN_INPUT_PULLUP | MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */ | ||
190 | >; | 192 | >; |
191 | }; | 193 | }; |
192 | 194 | ||
@@ -224,6 +226,24 @@ | |||
224 | }; | 226 | }; |
225 | }; | 227 | }; |
226 | 228 | ||
229 | &spi0 { | ||
230 | status = "okay"; | ||
231 | pinctrl-names = "default"; | ||
232 | pinctrl-0 = <&spi0_pins_default>; | ||
233 | |||
234 | sn65hvs882@1 { | ||
235 | compatible = "pisosr-gpio"; | ||
236 | gpio-controller; | ||
237 | #gpio-cells = <2>; | ||
238 | |||
239 | load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>; | ||
240 | |||
241 | reg = <1>; | ||
242 | spi-max-frequency = <1000000>; | ||
243 | spi-cpol; | ||
244 | }; | ||
245 | }; | ||
246 | |||
227 | #include "tps65910.dtsi" | 247 | #include "tps65910.dtsi" |
228 | 248 | ||
229 | &tps { | 249 | &tps { |