blob: e92446c6846e4e17c2d83edb397354ebcb928392 [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"
AnilKumar Ch571ccb22012-10-15 18:05:39 +053017
18/ {
19 model = "TI AM335x EVM-SK";
20 compatible = "ti,am335x-evmsk", "ti,am33xx";
21
22 cpus {
23 cpu@0 {
24 cpu0-supply = <&vdd1_reg>;
25 };
26 };
27
28 memory {
29 device_type = "memory";
30 reg = <0x80000000 0x10000000>; /* 256 MB */
31 };
32
AnilKumar Ch2647dd12012-11-06 19:18:35 +053033 am33xx_pinmux: pinmux@44e10800 {
34 pinctrl-names = "default";
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053035 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
AnilKumar Ch2647dd12012-11-06 19:18:35 +053036
37 user_leds_s0: user_leds_s0 {
38 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020039 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
40 0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
41 0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
42 0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
AnilKumar Ch2647dd12012-11-06 19:18:35 +053043 >;
44 };
AnilKumar Chd98258b2012-11-06 19:18:37 +053045
46 gpio_keys_s0: gpio_keys_s0 {
47 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020048 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */
49 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */
50 0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
51 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */
AnilKumar Chd98258b2012-11-06 19:18:37 +053052 >;
53 };
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053054
55 i2c0_pins: pinmux_i2c0_pins {
56 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020057 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
58 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053059 >;
60 };
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053061
62 uart0_pins: pinmux_uart0_pins {
63 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020064 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
65 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053066 >;
67 };
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053068
69 clkout2_pin: pinmux_clkout2_pin {
70 pinctrl-single,pins = <
Florian Vaussard6a8a6b62013-06-03 16:12:25 +020071 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
Vaibhav Hiremath4d927572013-05-20 18:58:10 +053072 >;
73 };
Philip Avinash1632fbd2013-06-06 15:52:39 +020074
75 ecap2_pins: backlight_pins {
76 pinctrl-single,pins = <
77 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
78 >;
79 };
Mugunthan V N94a924c2013-06-07 17:02:53 +053080
81 cpsw_default: cpsw_default {
82 pinctrl-single,pins = <
83 /* Slave 1 */
84 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
85 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
86 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
87 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
88 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
89 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
90 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
91 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
92 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */
93 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */
94 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
95 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
96
97 /* Slave 2 */
98 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */
99 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */
100 0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */
101 0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */
102 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */
103 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */
104 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */
105 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */
106 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */
107 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */
108 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */
109 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */
110 >;
111 };
112
113 cpsw_sleep: cpsw_sleep {
114 pinctrl-single,pins = <
115 /* Slave 1 reset value */
116 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
117 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
118 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
119 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
120 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
121 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
122 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
123 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
124 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
125 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
126 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
127 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
128
129 /* Slave 2 reset value*/
130 0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
131 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
132 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
133 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
134 0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
135 0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
136 0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
137 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
138 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
139 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
140 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
141 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
142 >;
143 };
144
145 davinci_mdio_default: davinci_mdio_default {
146 pinctrl-single,pins = <
147 /* MDIO */
148 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
149 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
150 >;
151 };
152
153 davinci_mdio_sleep: davinci_mdio_sleep {
154 pinctrl-single,pins = <
155 /* MDIO reset value */
156 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
157 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
158 >;
159 };
AnilKumar Ch2647dd12012-11-06 19:18:35 +0530160 };
161
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530162 ocp {
Vaibhav Hiremathdde3b0d2013-03-28 11:36:05 +0530163 uart0: serial@44e09000 {
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +0530164 pinctrl-names = "default";
165 pinctrl-0 = <&uart0_pins>;
166
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530167 status = "okay";
168 };
169
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530170 i2c0: i2c@44e0b000 {
Vaibhav Hiremath3f866442013-03-26 14:14:01 +0530171 pinctrl-names = "default";
172 pinctrl-0 = <&i2c0_pins>;
173
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530174 status = "okay";
175 clock-frequency = <400000>;
176
177 tps: tps@2d {
178 reg = <0x2d>;
179 };
180
181 lis331dlh: lis331dlh@18 {
182 compatible = "st,lis331dlh", "st,lis3lv02d";
183 reg = <0x18>;
184 Vdd-supply = <&lis3_reg>;
185 Vdd_IO-supply = <&lis3_reg>;
186
187 st,click-single-x;
188 st,click-single-y;
189 st,click-single-z;
190 st,click-thresh-x = <10>;
191 st,click-thresh-y = <10>;
192 st,click-thresh-z = <10>;
193 st,irq1-click;
194 st,irq2-click;
195 st,wakeup-x-lo;
196 st,wakeup-x-hi;
197 st,wakeup-y-lo;
198 st,wakeup-y-hi;
199 st,wakeup-z-lo;
200 st,wakeup-z-hi;
201 st,min-limit-x = <120>;
202 st,min-limit-y = <120>;
203 st,min-limit-z = <140>;
204 st,max-limit-x = <550>;
205 st,max-limit-y = <550>;
206 st,max-limit-z = <750>;
207 };
208 };
Philip Avinash1632fbd2013-06-06 15:52:39 +0200209
Sebastian Andrzej Siewior97238b32013-07-05 14:51:33 +0200210 musb: usb@47400000 {
211 status = "okay";
212
213 control@44e10000 {
214 status = "okay";
215 };
216
217 phy@47401300 {
218 status = "okay";
219 };
220
221 usb@47401000 {
222 status = "okay";
223 };
224 };
225
Philip Avinash1632fbd2013-06-06 15:52:39 +0200226 epwmss2: epwmss@48304000 {
227 status = "okay";
228
229 ecap2: ecap@48304100 {
230 status = "okay";
231 pinctrl-names = "default";
232 pinctrl-0 = <&ecap2_pins>;
233 };
234 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530235 };
236
237 vbat: fixedregulator@0 {
238 compatible = "regulator-fixed";
239 regulator-name = "vbat";
240 regulator-min-microvolt = <5000000>;
241 regulator-max-microvolt = <5000000>;
242 regulator-boot-on;
243 };
244
245 lis3_reg: fixedregulator@1 {
246 compatible = "regulator-fixed";
247 regulator-name = "lis3_reg";
248 regulator-boot-on;
249 };
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530250
251 leds {
Vaibhav Hiremathb8f70c32013-03-26 15:42:15 +0530252 pinctrl-names = "default";
253 pinctrl-0 = <&user_leds_s0>;
254
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530255 compatible = "gpio-leds";
256
257 led@1 {
258 label = "evmsk:green:usr0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200259 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530260 default-state = "off";
261 };
262
263 led@2 {
264 label = "evmsk:green:usr1";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200265 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530266 default-state = "off";
267 };
268
269 led@3 {
270 label = "evmsk:green:mmc0";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200271 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530272 linux,default-trigger = "mmc0";
273 default-state = "off";
274 };
275
276 led@4 {
277 label = "evmsk:green:heartbeat";
Florian Vaussarde94233c2013-06-03 16:12:23 +0200278 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530279 linux,default-trigger = "heartbeat";
280 default-state = "off";
281 };
282 };
AnilKumar Ch00834b72012-11-06 19:18:38 +0530283
284 gpio_buttons: gpio_buttons@0 {
285 compatible = "gpio-keys";
286 #address-cells = <1>;
287 #size-cells = <0>;
288
289 switch@1 {
290 label = "button0";
291 linux,code = <0x100>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200292 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530293 };
294
295 switch@2 {
296 label = "button1";
297 linux,code = <0x101>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200298 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530299 };
300
301 switch@3 {
302 label = "button2";
303 linux,code = <0x102>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200304 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530305 gpio-key,wakeup;
306 };
307
308 switch@4 {
309 label = "button3";
310 linux,code = <0x103>;
Florian Vaussarde94233c2013-06-03 16:12:23 +0200311 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530312 };
313 };
Philip Avinash1632fbd2013-06-06 15:52:39 +0200314
315 backlight {
316 compatible = "pwm-backlight";
317 pwms = <&ecap2 0 50000 1>;
318 brightness-levels = <0 58 61 66 75 90 125 170 255>;
319 default-brightness-level = <8>;
320 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530321};
322
Florian Vaussardeb33ef662013-06-03 16:12:22 +0200323#include "tps65910.dtsi"
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530324
325&tps {
326 vcc1-supply = <&vbat>;
327 vcc2-supply = <&vbat>;
328 vcc3-supply = <&vbat>;
329 vcc4-supply = <&vbat>;
330 vcc5-supply = <&vbat>;
331 vcc6-supply = <&vbat>;
332 vcc7-supply = <&vbat>;
333 vccio-supply = <&vbat>;
334
335 regulators {
336 vrtc_reg: regulator@0 {
337 regulator-always-on;
338 };
339
340 vio_reg: regulator@1 {
341 regulator-always-on;
342 };
343
344 vdd1_reg: regulator@2 {
345 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
346 regulator-name = "vdd_mpu";
347 regulator-min-microvolt = <912500>;
348 regulator-max-microvolt = <1312500>;
349 regulator-boot-on;
350 regulator-always-on;
351 };
352
353 vdd2_reg: regulator@3 {
354 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
355 regulator-name = "vdd_core";
356 regulator-min-microvolt = <912500>;
357 regulator-max-microvolt = <1150000>;
358 regulator-boot-on;
359 regulator-always-on;
360 };
361
362 vdd3_reg: regulator@4 {
363 regulator-always-on;
364 };
365
366 vdig1_reg: regulator@5 {
367 regulator-always-on;
368 };
369
370 vdig2_reg: regulator@6 {
371 regulator-always-on;
372 };
373
374 vpll_reg: regulator@7 {
375 regulator-always-on;
376 };
377
378 vdac_reg: regulator@8 {
379 regulator-always-on;
380 };
381
382 vaux1_reg: regulator@9 {
383 regulator-always-on;
384 };
385
386 vaux2_reg: regulator@10 {
387 regulator-always-on;
388 };
389
390 vaux33_reg: regulator@11 {
391 regulator-always-on;
392 };
393
394 vmmc_reg: regulator@12 {
395 regulator-always-on;
396 };
397 };
398};
Mugunthan V N94a924c2013-06-07 17:02:53 +0530399
400&mac {
401 pinctrl-names = "default", "sleep";
402 pinctrl-0 = <&cpsw_default>;
403 pinctrl-1 = <&cpsw_sleep>;
404};
405
406&davinci_mdio {
407 pinctrl-names = "default", "sleep";
408 pinctrl-0 = <&davinci_mdio_default>;
409 pinctrl-1 = <&davinci_mdio_sleep>;
410};
Linus Torvalds496322b2013-07-09 18:24:39 -0700411
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000412&cpsw_emac0 {
413 phy_id = <&davinci_mdio>, <0>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000414 phy-mode = "rgmii-txid";
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000415};
416
417&cpsw_emac1 {
418 phy_id = <&davinci_mdio>, <1>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000419 phy-mode = "rgmii-txid";
Mugunthan V Nf6655d62013-06-03 20:10:09 +0000420};