blob: 55fd19487b8c77f38eab3074418b95f4a5efe8df [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 Ch2647dd12012-11-06 19:18:35 +053034 am33xx_pinmux: pinmux@44e10800 {
35 pinctrl-names = "default";
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053036 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
AnilKumar Ch2647dd12012-11-06 19:18:35 +053037
38 user_leds_s0: user_leds_s0 {
39 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020040 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
41 0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
42 0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
43 0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
AnilKumar Ch2647dd12012-11-06 19:18:35 +053044 >;
45 };
AnilKumar Chd98258b2012-11-06 19:18:37 +053046
47 gpio_keys_s0: gpio_keys_s0 {
48 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020049 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */
50 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */
51 0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
52 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */
AnilKumar Chd98258b2012-11-06 19:18:37 +053053 >;
54 };
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053055
56 i2c0_pins: pinmux_i2c0_pins {
57 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020058 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
59 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053060 >;
61 };
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053062
63 uart0_pins: pinmux_uart0_pins {
64 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020065 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
66 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053067 >;
68 };
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053069
70 clkout2_pin: pinmux_clkout2_pin {
71 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020072 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053073 >;
74 };
Philip Avinash1632fbd2013-06-06 15:52:39 +020075
76 ecap2_pins: backlight_pins {
77 pinctrl-single,pins = <
78 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
79 >;
80 };
Mugunthan V N94a924c2013-06-07 17:02:53 +053081
82 cpsw_default: cpsw_default {
83 pinctrl-single,pins = <
84 /* Slave 1 */
85 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
86 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
87 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
88 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
89 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
90 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
91 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
92 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
93 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */
94 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */
95 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
96 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
97
98 /* Slave 2 */
99 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */
100 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */
101 0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */
102 0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */
103 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */
104 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */
105 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */
106 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */
107 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */
108 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */
109 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */
110 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */
111 >;
112 };
113
114 cpsw_sleep: cpsw_sleep {
115 pinctrl-single,pins = <
116 /* Slave 1 reset value */
117 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
118 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
119 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
120 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
121 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
122 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
123 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
124 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
125 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
126 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
127 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
128 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
129
130 /* Slave 2 reset value*/
131 0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
132 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
133 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
134 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
135 0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
136 0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
137 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
138 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
139 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
140 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
141 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
142 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
143 >;
144 };
145
146 davinci_mdio_default: davinci_mdio_default {
147 pinctrl-single,pins = <
148 /* MDIO */
149 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
150 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
151 >;
152 };
153
154 davinci_mdio_sleep: davinci_mdio_sleep {
155 pinctrl-single,pins = <
156 /* MDIO reset value */
157 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
158 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
159 >;
160 };
AnilKumar Ch2647dd12012-11-06 19:18:35 +0530161 };
162
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530163 ocp {
Vaibhav Hiremathdde3b0d2013-03-28 11:36:05 +0530164 uart0: serial@44e09000 {
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +0530165 pinctrl-names = "default";
166 pinctrl-0 = <&uart0_pins>;
167
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530168 status = "okay";
169 };
170
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530171 i2c0: i2c@44e0b000 {
Vaibhav Hiremath3f866442013-03-26 14:14:01 +0530172 pinctrl-names = "default";
173 pinctrl-0 = <&i2c0_pins>;
174
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530175 status = "okay";
176 clock-frequency = <400000>;
177
178 tps: tps@2d {
179 reg = <0x2d>;
180 };
181
182 lis331dlh: lis331dlh@18 {
183 compatible = "st,lis331dlh", "st,lis3lv02d";
184 reg = <0x18>;
185 Vdd-supply = <&lis3_reg>;
186 Vdd_IO-supply = <&lis3_reg>;
187
188 st,click-single-x;
189 st,click-single-y;
190 st,click-single-z;
191 st,click-thresh-x = <10>;
192 st,click-thresh-y = <10>;
193 st,click-thresh-z = <10>;
194 st,irq1-click;
195 st,irq2-click;
196 st,wakeup-x-lo;
197 st,wakeup-x-hi;
198 st,wakeup-y-lo;
199 st,wakeup-y-hi;
200 st,wakeup-z-lo;
201 st,wakeup-z-hi;
202 st,min-limit-x = <120>;
203 st,min-limit-y = <120>;
204 st,min-limit-z = <140>;
205 st,max-limit-x = <550>;
206 st,max-limit-y = <550>;
207 st,max-limit-z = <750>;
208 };
209 };
Philip Avinash1632fbd2013-06-06 15:52:39 +0200210
Sebastian Andrzej Siewior97238b32013-07-05 14:51:33 +0200211 musb: usb@47400000 {
212 status = "okay";
213
214 control@44e10000 {
215 status = "okay";
216 };
217
Sebastian Andrzej Siewiorc031a7d2013-08-20 18:35:47 +0200218 usb-phy@47401300 {
Sebastian Andrzej Siewior97238b32013-07-05 14:51:33 +0200219 status = "okay";
220 };
221
222 usb@47401000 {
223 status = "okay";
224 };
225 };
226
Philip Avinash1632fbd2013-06-06 15:52:39 +0200227 epwmss2: epwmss@48304000 {
228 status = "okay";
229
230 ecap2: ecap@48304100 {
231 status = "okay";
232 pinctrl-names = "default";
233 pinctrl-0 = <&ecap2_pins>;
234 };
235 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530236 };
237
238 vbat: fixedregulator@0 {
239 compatible = "regulator-fixed";
240 regulator-name = "vbat";
241 regulator-min-microvolt = <5000000>;
242 regulator-max-microvolt = <5000000>;
243 regulator-boot-on;
244 };
245
246 lis3_reg: fixedregulator@1 {
247 compatible = "regulator-fixed";
248 regulator-name = "lis3_reg";
249 regulator-boot-on;
250 };
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530251
252 leds {
Vaibhav Hiremathb8f70c32013-03-26 15:42:15 +0530253 pinctrl-names = "default";
254 pinctrl-0 = <&user_leds_s0>;
255
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530256 compatible = "gpio-leds";
257
258 led@1 {
259 label = "evmsk:green:usr0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200260 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530261 default-state = "off";
262 };
263
264 led@2 {
265 label = "evmsk:green:usr1";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200266 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530267 default-state = "off";
268 };
269
270 led@3 {
271 label = "evmsk:green:mmc0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200272 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530273 linux,default-trigger = "mmc0";
274 default-state = "off";
275 };
276
277 led@4 {
278 label = "evmsk:green:heartbeat";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200279 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530280 linux,default-trigger = "heartbeat";
281 default-state = "off";
282 };
283 };
AnilKumar Ch00834b72012-11-06 19:18:38 +0530284
285 gpio_buttons: gpio_buttons@0 {
286 compatible = "gpio-keys";
287 #address-cells = <1>;
288 #size-cells = <0>;
289
290 switch@1 {
291 label = "button0";
292 linux,code = <0x100>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200293 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530294 };
295
296 switch@2 {
297 label = "button1";
298 linux,code = <0x101>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200299 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530300 };
301
302 switch@3 {
303 label = "button2";
304 linux,code = <0x102>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200305 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530306 gpio-key,wakeup;
307 };
308
309 switch@4 {
310 label = "button3";
311 linux,code = <0x103>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200312 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530313 };
314 };
Philip Avinash1632fbd2013-06-06 15:52:39 +0200315
316 backlight {
317 compatible = "pwm-backlight";
Laurent Pincharteb9bdef2013-07-18 00:54:24 +0200318 pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
Philip Avinash1632fbd2013-06-06 15:52:39 +0200319 brightness-levels = <0 58 61 66 75 90 125 170 255>;
320 default-brightness-level = <8>;
321 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530322};
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};