aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-10-07 10:44:28 -0400
committerTony Lindgren <tony@atomide.com>2016-11-18 10:06:00 -0500
commit50e95b6b854cf4c996d3b91ef3f19d779a2a7020 (patch)
treec79d42d4492bd1f4e22d6ed12be734e4b36cf590
parent8b43764f5d6859c6da9ee140b8b6f0d8c378064e (diff)
ARM: dts: am57xx-idk: Add Industrial output support
The TPIC2810 is available on both the AM571x and the AM572x IDKs and is attached to I2C1. Output is attached to the I/O header and 10 LEDs. 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/am57xx-idk-common.dtsi59
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi
index 438076e23a55..35e210ce68a1 100644
--- a/arch/arm/boot/dts/am57xx-idk-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi
@@ -43,6 +43,58 @@
43 regulator-always-on; 43 regulator-always-on;
44 regulator-boot-on; 44 regulator-boot-on;
45 }; 45 };
46
47 leds-iio {
48 status = "disabled";
49 compatible = "gpio-leds";
50 led-out0 {
51 label = "out0";
52 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
54 };
55
56 led-out1 {
57 label = "out1";
58 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
60 };
61
62 led-out2 {
63 label = "out2";
64 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
66 };
67
68 led-out3 {
69 label = "out3";
70 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
72 };
73
74 led-out4 {
75 label = "out4";
76 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
77 default-state = "off";
78 };
79
80 led-out5 {
81 label = "out5";
82 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
84 };
85
86 led-out6 {
87 label = "out6";
88 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
90 };
91
92 led-out7 {
93 label = "out7";
94 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
96 };
97 };
46}; 98};
47 99
48&i2c1 { 100&i2c1 {
@@ -266,6 +318,13 @@
266 spi-max-frequency = <1000000>; 318 spi-max-frequency = <1000000>;
267 spi-cpol; 319 spi-cpol;
268 }; 320 };
321
322 tpic2810: tpic2810@60 {
323 compatible = "ti,tpic2810";
324 reg = <0x60>;
325 gpio-controller;
326 #gpio-cells = <2>;
327 };
269}; 328};
270 329
271&uart3 { 330&uart3 {