blob: f0066fe5d739c630c11496765ee33e5d6aee8035 [file] [log] [blame]
AnilKumar Ch571ccb22012-10-15 18:05:39 +05301/*
2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9/*
10 * AM335x Starter Kit
11 * http://www.ti.com/tool/tmdssk3358
12 */
13
14/dts-v1/;
15
Florian Vaussardeb33ef662013-06-03 16:12:22 +020016#include "am33xx.dtsi"
Laurent Pincharteb9bdef2013-07-18 00:54:24 +020017#include <dt-bindings/pwm/pwm.h>
AnilKumar Ch571ccb22012-10-15 18:05:39 +053018
19/ {
20 model = "TI AM335x EVM-SK";
21 compatible = "ti,am335x-evmsk", "ti,am33xx";
22
23 cpus {
24 cpu@0 {
25 cpu0-supply = <&vdd1_reg>;
26 };
27 };
28
29 memory {
30 device_type = "memory";
31 reg = <0x80000000 0x10000000>; /* 256 MB */
32 };
33
AnilKumar Ch571ccb22012-10-15 18:05:39 +053034 ocp {
Vaibhav Hiremathdde3b0d2013-03-28 11:36:05 +053035 uart0: serial@44e09000 {
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053036 pinctrl-names = "default";
37 pinctrl-0 = <&uart0_pins>;
38
AnilKumar Ch571ccb22012-10-15 18:05:39 +053039 status = "okay";
40 };
41
AnilKumar Chb918e2c2012-11-21 17:22:17 +053042 i2c0: i2c@44e0b000 {
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053043 pinctrl-names = "default";
44 pinctrl-0 = <&i2c0_pins>;
45
AnilKumar Ch571ccb22012-10-15 18:05:39 +053046 status = "okay";
47 clock-frequency = <400000>;
48
49 tps: tps@2d {
50 reg = <0x2d>;
51 };
52
53 lis331dlh: lis331dlh@18 {
54 compatible = "st,lis331dlh", "st,lis3lv02d";
55 reg = <0x18>;
56 Vdd-supply = <&lis3_reg>;
57 Vdd_IO-supply = <&lis3_reg>;
58
59 st,click-single-x;
60 st,click-single-y;
61 st,click-single-z;
62 st,click-thresh-x = <10>;
63 st,click-thresh-y = <10>;
64 st,click-thresh-z = <10>;
65 st,irq1-click;
66 st,irq2-click;
67 st,wakeup-x-lo;
68 st,wakeup-x-hi;
69 st,wakeup-y-lo;
70 st,wakeup-y-hi;
71 st,wakeup-z-lo;
72 st,wakeup-z-hi;
73 st,min-limit-x = <120>;
74 st,min-limit-y = <120>;
75 st,min-limit-z = <140>;
76 st,max-limit-x = <550>;
77 st,max-limit-y = <550>;
78 st,max-limit-z = <750>;
79 };
80 };
Philip Avinash1632fbd2013-06-06 15:52:39 +020081
Sebastian Andrzej Siewior97238b32013-07-05 14:51:33 +020082 musb: usb@47400000 {
83 status = "okay";
84
85 control@44e10000 {
86 status = "okay";
87 };
88
Sebastian Andrzej Siewiorc031a7d2013-08-20 18:35:47 +020089 usb-phy@47401300 {
Sebastian Andrzej Siewior97238b32013-07-05 14:51:33 +020090 status = "okay";
91 };
92
93 usb@47401000 {
94 status = "okay";
95 };
96 };
97
Philip Avinash1632fbd2013-06-06 15:52:39 +020098 epwmss2: epwmss@48304000 {
99 status = "okay";
100
101 ecap2: ecap@48304100 {
102 status = "okay";
103 pinctrl-names = "default";
104 pinctrl-0 = <&ecap2_pins>;
105 };
106 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530107 };
108
109 vbat: fixedregulator@0 {
110 compatible = "regulator-fixed";
111 regulator-name = "vbat";
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
114 regulator-boot-on;
115 };
116
117 lis3_reg: fixedregulator@1 {
118 compatible = "regulator-fixed";
119 regulator-name = "lis3_reg";
120 regulator-boot-on;
121 };
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530122
123 leds {
Vaibhav Hiremathb8f70c32013-03-26 15:42:15 +0530124 pinctrl-names = "default";
125 pinctrl-0 = <&user_leds_s0>;
126
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530127 compatible = "gpio-leds";
128
129 led@1 {
130 label = "evmsk:green:usr0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200131 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530132 default-state = "off";
133 };
134
135 led@2 {
136 label = "evmsk:green:usr1";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200137 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530138 default-state = "off";
139 };
140
141 led@3 {
142 label = "evmsk:green:mmc0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200143 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530144 linux,default-trigger = "mmc0";
145 default-state = "off";
146 };
147
148 led@4 {
149 label = "evmsk:green:heartbeat";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200150 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530151 linux,default-trigger = "heartbeat";
152 default-state = "off";
153 };
154 };
AnilKumar Ch00834b72012-11-06 19:18:38 +0530155
156 gpio_buttons: gpio_buttons@0 {
157 compatible = "gpio-keys";
158 #address-cells = <1>;
159 #size-cells = <0>;
160
161 switch@1 {
162 label = "button0";
163 linux,code = <0x100>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200164 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530165 };
166
167 switch@2 {
168 label = "button1";
169 linux,code = <0x101>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200170 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530171 };
172
173 switch@3 {
174 label = "button2";
175 linux,code = <0x102>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200176 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530177 gpio-key,wakeup;
178 };
179
180 switch@4 {
181 label = "button3";
182 linux,code = <0x103>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200183 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530184 };
185 };
Philip Avinash1632fbd2013-06-06 15:52:39 +0200186
187 backlight {
188 compatible = "pwm-backlight";
Laurent Pincharteb9bdef2013-07-18 00:54:24 +0200189 pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
Philip Avinash1632fbd2013-06-06 15:52:39 +0200190 brightness-levels = <0 58 61 66 75 90 125 170 255>;
191 default-brightness-level = <8>;
192 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530193};
194
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +0200195&am33xx_pinmux {
196 pinctrl-names = "default";
197 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
198
199 user_leds_s0: user_leds_s0 {
200 pinctrl-single,pins = <
201 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
202 0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
203 0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
204 0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
205 >;
206 };
207
208 gpio_keys_s0: gpio_keys_s0 {
209 pinctrl-single,pins = <
210 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */
211 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */
212 0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
213 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */
214 >;
215 };
216
217 i2c0_pins: pinmux_i2c0_pins {
218 pinctrl-single,pins = <
219 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
220 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
221 >;
222 };
223
224 uart0_pins: pinmux_uart0_pins {
225 pinctrl-single,pins = <
226 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
227 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
228 >;
229 };
230
231 clkout2_pin: pinmux_clkout2_pin {
232 pinctrl-single,pins = <
233 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
234 >;
235 };
236
237 ecap2_pins: backlight_pins {
238 pinctrl-single,pins = <
239 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
240 >;
241 };
242
243 cpsw_default: cpsw_default {
244 pinctrl-single,pins = <
245 /* Slave 1 */
246 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
247 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
248 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
249 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
250 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
251 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
252 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
253 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
254 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */
255 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */
256 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
257 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
258
259 /* Slave 2 */
260 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */
261 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */
262 0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */
263 0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */
264 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */
265 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */
266 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */
267 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */
268 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */
269 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */
270 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */
271 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */
272 >;
273 };
274
275 cpsw_sleep: cpsw_sleep {
276 pinctrl-single,pins = <
277 /* Slave 1 reset value */
278 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
279 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
280 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
281 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
282 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
283 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
284 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
285 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
286 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
287 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
288 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
289 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
290
291 /* Slave 2 reset value*/
292 0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
293 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
294 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
295 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
296 0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
297 0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
298 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
299 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
300 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
301 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
302 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
303 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
304 >;
305 };
306
307 davinci_mdio_default: davinci_mdio_default {
308 pinctrl-single,pins = <
309 /* MDIO */
310 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
311 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
312 >;
313 };
314
315 davinci_mdio_sleep: davinci_mdio_sleep {
316 pinctrl-single,pins = <
317 /* MDIO reset value */
318 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
319 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
320 >;
321 };
322};
323
Florian Vaussardeb33ef662013-06-03 16:12:22 +0200324#include "tps65910.dtsi"
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530325
326&tps {
327 vcc1-supply = <&vbat>;
328 vcc2-supply = <&vbat>;
329 vcc3-supply = <&vbat>;
330 vcc4-supply = <&vbat>;
331 vcc5-supply = <&vbat>;
332 vcc6-supply = <&vbat>;
333 vcc7-supply = <&vbat>;
334 vccio-supply = <&vbat>;
335
336 regulators {
337 vrtc_reg: regulator@0 {
338 regulator-always-on;
339 };
340
341 vio_reg: regulator@1 {
342 regulator-always-on;
343 };
344
345 vdd1_reg: regulator@2 {
346 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
347 regulator-name = "vdd_mpu";
348 regulator-min-microvolt = <912500>;
349 regulator-max-microvolt = <1312500>;
350 regulator-boot-on;
351 regulator-always-on;
352 };
353
354 vdd2_reg: regulator@3 {
355 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
356 regulator-name = "vdd_core";
357 regulator-min-microvolt = <912500>;
358 regulator-max-microvolt = <1150000>;
359 regulator-boot-on;
360 regulator-always-on;
361 };
362
363 vdd3_reg: regulator@4 {
364 regulator-always-on;
365 };
366
367 vdig1_reg: regulator@5 {
368 regulator-always-on;
369 };
370
371 vdig2_reg: regulator@6 {
372 regulator-always-on;
373 };
374
375 vpll_reg: regulator@7 {
376 regulator-always-on;
377 };
378
379 vdac_reg: regulator@8 {
380 regulator-always-on;
381 };
382
383 vaux1_reg: regulator@9 {
384 regulator-always-on;
385 };
386
387 vaux2_reg: regulator@10 {
388 regulator-always-on;
389 };
390
391 vaux33_reg: regulator@11 {
392 regulator-always-on;
393 };
394
395 vmmc_reg: regulator@12 {
Matt Porter55b44522013-09-10 14:24:39 -0500396 regulator-min-microvolt = <1800000>;
397 regulator-max-microvolt = <3300000>;
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530398 regulator-always-on;
399 };
400 };
401};
Mugunthan V N94a924c2013-06-07 17:02:53 +0530402
403&mac {
404 pinctrl-names = "default", "sleep";
405 pinctrl-0 = <&cpsw_default>;
406 pinctrl-1 = <&cpsw_sleep>;
407};
408
409&davinci_mdio {
410 pinctrl-names = "default", "sleep";
411 pinctrl-0 = <&davinci_mdio_default>;
412 pinctrl-1 = <&davinci_mdio_sleep>;
413};
Linus Torvalds496322b2013-07-09 18:24:39 -0700414
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000415&cpsw_emac0 {
416 phy_id = <&davinci_mdio>, <0>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000417 phy-mode = "rgmii-txid";
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000418};
419
420&cpsw_emac1 {
421 phy_id = <&davinci_mdio>, <1>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000422 phy-mode = "rgmii-txid";
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000423};
Matt Porter55b44522013-09-10 14:24:39 -0500424
425&mmc1 {
426 status = "okay";
427 vmmc-supply = <&vmmc_reg>;
428};