devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] ARM: dts: am335x-icev2: Add Industrial input support
@ 2016-10-07 14:44 Andrew F. Davis
  2016-10-07 14:44 ` [PATCH 3/7] ARM: dts: am335x-icev2: Add ADC support Andrew F. Davis
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrew F. Davis @ 2016-10-07 14:44 UTC (permalink / raw)
  To: Benoît Cousson, Tony Lindgren
  Cc: linux-omap, devicetree, linux-kernel, Andrew F . Davis

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>
---
 arch/arm/boot/dts/am335x-icev2.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index 85e04c2..d46efc6 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -187,6 +187,8 @@
 			AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */
 			AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */
 			AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */
+			AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE0) /* (C15) spi0_cs1.spi0_cs1 */
+			AM33XX_IOPAD(0x9a0, PIN_INPUT_PULLUP | MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */
 		>;
 	};
 
@@ -224,6 +226,24 @@
 	};
 };
 
+&spi0 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&spi0_pins_default>;
+
+	sn65hvs882@1 {
+		compatible = "pisosr-gpio";
+		gpio-controller;
+		#gpio-cells = <2>;
+
+		load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
+
+		reg = <1>;
+		spi-max-frequency = <1000000>;
+		spi-cpol;
+	};
+};
+
 #include "tps65910.dtsi"
 
 &tps {
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-11-18 15:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 14:44 [PATCH 1/7] ARM: dts: am335x-icev2: Add Industrial input support Andrew F. Davis
2016-10-07 14:44 ` [PATCH 3/7] ARM: dts: am335x-icev2: Add ADC support Andrew F. Davis
2016-10-07 14:44 ` [PATCH 4/7] ARM: dts: am437x-idk: Add Industrial input support Andrew F. Davis
     [not found] ` <20161007144428.16671-1-afd-l0cyMroinI0@public.gmane.org>
2016-10-07 14:44   ` [PATCH 2/7] ARM: dts: am335x-icev2: Disable Industrial I/O LEDs and fix naming Andrew F. Davis
2016-10-07 14:44   ` [PATCH 5/7] ARM: dts: am437x-idk: Add Industrial output support Andrew F. Davis
2016-10-07 14:44   ` [PATCH 6/7] ARM: dts: am57xx-idk: Add Industrial input support Andrew F. Davis
2016-10-07 14:44   ` [PATCH 7/7] ARM: dts: am57xx-idk: Add Industrial output support Andrew F. Davis
2016-11-18 15:00 ` [PATCH 1/7] ARM: dts: am335x-icev2: Add Industrial input support Andrew F. Davis
     [not found]   ` <7095f8b0-efdb-6187-7580-43e8a0fa2cf3-l0cyMroinI0@public.gmane.org>
2016-11-18 15:08     ` Tony Lindgren

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).