diff options
author | Andrew F. Davis <afd@ti.com> | 2016-10-07 10:44:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-11-18 10:05:51 -0500 |
commit | c0a0ee4693511643a4ebab949a97d6e79508b06d (patch) | |
tree | 0fbfaad530d0030e12bc7857eab37a2b5928194a | |
parent | a2f8ad59881f26625478027074ec24f0af1525d2 (diff) |
ARM: dts: am437x-idk: Add Industrial output support
The TPIC2810 is available on the AM437x IDK 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/am437x-idk-evm.dts | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts b/arch/arm/boot/dts/am437x-idk-evm.dts index fff7ef6661a7..b76a7c0264a5 100644 --- a/arch/arm/boot/dts/am437x-idk-evm.dts +++ b/arch/arm/boot/dts/am437x-idk-evm.dts | |||
@@ -117,6 +117,58 @@ | |||
117 | compatible = "fixed-clock"; | 117 | compatible = "fixed-clock"; |
118 | clock-frequency = <32768>; | 118 | clock-frequency = <32768>; |
119 | }; | 119 | }; |
120 | |||
121 | leds-iio { | ||
122 | status = "disabled"; | ||
123 | compatible = "gpio-leds"; | ||
124 | led-out0 { | ||
125 | label = "out0"; | ||
126 | gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>; | ||
127 | default-state = "off"; | ||
128 | }; | ||
129 | |||
130 | led-out1 { | ||
131 | label = "out1"; | ||
132 | gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>; | ||
133 | default-state = "off"; | ||
134 | }; | ||
135 | |||
136 | led-out2 { | ||
137 | label = "out2"; | ||
138 | gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>; | ||
139 | default-state = "off"; | ||
140 | }; | ||
141 | |||
142 | led-out3 { | ||
143 | label = "out3"; | ||
144 | gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>; | ||
145 | default-state = "off"; | ||
146 | }; | ||
147 | |||
148 | led-out4 { | ||
149 | label = "out4"; | ||
150 | gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>; | ||
151 | default-state = "off"; | ||
152 | }; | ||
153 | |||
154 | led-out5 { | ||
155 | label = "out5"; | ||
156 | gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>; | ||
157 | default-state = "off"; | ||
158 | }; | ||
159 | |||
160 | led-out6 { | ||
161 | label = "out6"; | ||
162 | gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>; | ||
163 | default-state = "off"; | ||
164 | }; | ||
165 | |||
166 | led-out7 { | ||
167 | label = "out7"; | ||
168 | gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>; | ||
169 | default-state = "off"; | ||
170 | }; | ||
171 | }; | ||
120 | }; | 172 | }; |
121 | 173 | ||
122 | &am43xx_pinmux { | 174 | &am43xx_pinmux { |
@@ -308,6 +360,13 @@ | |||
308 | pinctrl-0 = <&i2c2_pins_default>; | 360 | pinctrl-0 = <&i2c2_pins_default>; |
309 | pinctrl-1 = <&i2c2_pins_sleep>; | 361 | pinctrl-1 = <&i2c2_pins_sleep>; |
310 | clock-frequency = <100000>; | 362 | clock-frequency = <100000>; |
363 | |||
364 | tpic2810: tpic2810@60 { | ||
365 | compatible = "ti,tpic2810"; | ||
366 | reg = <0x60>; | ||
367 | gpio-controller; | ||
368 | #gpio-cells = <2>; | ||
369 | }; | ||
311 | }; | 370 | }; |
312 | 371 | ||
313 | &spi1 { | 372 | &spi1 { |