blob: 0eec644471c4e00c43410f77b98b510dc74f6a30 [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
16/include/ "am33xx.dtsi"
17
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 Hiremathb8f70c32013-03-26 15:42:15 +053035 pinctrl-0 = <&gpio_keys_s0>;
AnilKumar Ch2647dd12012-11-06 19:18:35 +053036
37 user_leds_s0: user_leds_s0 {
38 pinctrl-single,pins = <
39 0x10 0x7 /* gpmc_ad4.gpio1_4, OUTPUT | MODE7 */
40 0x14 0x7 /* gpmc_ad5.gpio1_5, OUTPUT | MODE7 */
41 0x18 0x7 /* gpmc_ad6.gpio1_6, OUTPUT | MODE7 */
42 0x1c 0x7 /* gpmc_ad7.gpio1_7, OUTPUT | MODE7 */
43 >;
44 };
AnilKumar Chd98258b2012-11-06 19:18:37 +053045
46 gpio_keys_s0: gpio_keys_s0 {
47 pinctrl-single,pins = <
48 0x94 0x27 /* gpmc_oen_ren.gpio2_3, INPUT | MODE7 */
49 0x90 0x27 /* gpmc_advn_ale.gpio2_2, INPUT | MODE7 */
50 0x70 0x27 /* gpmc_wait0.gpio0_30, INPUT | MODE7 */
51 0x9c 0x27 /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
52 >;
53 };
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053054
55 i2c0_pins: pinmux_i2c0_pins {
56 pinctrl-single,pins = <
57 0x188 0x30 /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
58 0x18c 0x30 /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
59 >;
60 };
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053061
62 uart0_pins: pinmux_uart0_pins {
63 pinctrl-single,pins = <
64 0x170 0x30 /* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */
65 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
66 >;
67 };
AnilKumar Ch2647dd12012-11-06 19:18:35 +053068 };
69
AnilKumar Ch571ccb22012-10-15 18:05:39 +053070 ocp {
Vaibhav Hiremathdde3b0d2013-03-28 11:36:05 +053071 uart0: serial@44e09000 {
Vaibhav Hiremath9f2fbe12013-03-27 16:31:34 +053072 pinctrl-names = "default";
73 pinctrl-0 = <&uart0_pins>;
74
AnilKumar Ch571ccb22012-10-15 18:05:39 +053075 status = "okay";
76 };
77
AnilKumar Chb918e2c2012-11-21 17:22:17 +053078 i2c0: i2c@44e0b000 {
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053079 pinctrl-names = "default";
80 pinctrl-0 = <&i2c0_pins>;
81
AnilKumar Ch571ccb22012-10-15 18:05:39 +053082 status = "okay";
83 clock-frequency = <400000>;
84
85 tps: tps@2d {
86 reg = <0x2d>;
87 };
88
89 lis331dlh: lis331dlh@18 {
90 compatible = "st,lis331dlh", "st,lis3lv02d";
91 reg = <0x18>;
92 Vdd-supply = <&lis3_reg>;
93 Vdd_IO-supply = <&lis3_reg>;
94
95 st,click-single-x;
96 st,click-single-y;
97 st,click-single-z;
98 st,click-thresh-x = <10>;
99 st,click-thresh-y = <10>;
100 st,click-thresh-z = <10>;
101 st,irq1-click;
102 st,irq2-click;
103 st,wakeup-x-lo;
104 st,wakeup-x-hi;
105 st,wakeup-y-lo;
106 st,wakeup-y-hi;
107 st,wakeup-z-lo;
108 st,wakeup-z-hi;
109 st,min-limit-x = <120>;
110 st,min-limit-y = <120>;
111 st,min-limit-z = <140>;
112 st,max-limit-x = <550>;
113 st,max-limit-y = <550>;
114 st,max-limit-z = <750>;
115 };
116 };
117 };
118
119 vbat: fixedregulator@0 {
120 compatible = "regulator-fixed";
121 regulator-name = "vbat";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
124 regulator-boot-on;
125 };
126
127 lis3_reg: fixedregulator@1 {
128 compatible = "regulator-fixed";
129 regulator-name = "lis3_reg";
130 regulator-boot-on;
131 };
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530132
133 leds {
Vaibhav Hiremathb8f70c32013-03-26 15:42:15 +0530134 pinctrl-names = "default";
135 pinctrl-0 = <&user_leds_s0>;
136
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530137 compatible = "gpio-leds";
138
139 led@1 {
140 label = "evmsk:green:usr0";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530141 gpios = <&gpio1 4 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530142 default-state = "off";
143 };
144
145 led@2 {
146 label = "evmsk:green:usr1";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530147 gpios = <&gpio1 5 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530148 default-state = "off";
149 };
150
151 led@3 {
152 label = "evmsk:green:mmc0";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530153 gpios = <&gpio1 6 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530154 linux,default-trigger = "mmc0";
155 default-state = "off";
156 };
157
158 led@4 {
159 label = "evmsk:green:heartbeat";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530160 gpios = <&gpio1 7 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530161 linux,default-trigger = "heartbeat";
162 default-state = "off";
163 };
164 };
AnilKumar Ch00834b72012-11-06 19:18:38 +0530165
166 gpio_buttons: gpio_buttons@0 {
167 compatible = "gpio-keys";
168 #address-cells = <1>;
169 #size-cells = <0>;
170
171 switch@1 {
172 label = "button0";
173 linux,code = <0x100>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530174 gpios = <&gpio2 3 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530175 };
176
177 switch@2 {
178 label = "button1";
179 linux,code = <0x101>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530180 gpios = <&gpio2 2 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530181 };
182
183 switch@3 {
184 label = "button2";
185 linux,code = <0x102>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530186 gpios = <&gpio0 30 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530187 gpio-key,wakeup;
188 };
189
190 switch@4 {
191 label = "button3";
192 linux,code = <0x103>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530193 gpios = <&gpio2 5 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530194 };
195 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530196};
197
198/include/ "tps65910.dtsi"
199
200&tps {
201 vcc1-supply = <&vbat>;
202 vcc2-supply = <&vbat>;
203 vcc3-supply = <&vbat>;
204 vcc4-supply = <&vbat>;
205 vcc5-supply = <&vbat>;
206 vcc6-supply = <&vbat>;
207 vcc7-supply = <&vbat>;
208 vccio-supply = <&vbat>;
209
210 regulators {
211 vrtc_reg: regulator@0 {
212 regulator-always-on;
213 };
214
215 vio_reg: regulator@1 {
216 regulator-always-on;
217 };
218
219 vdd1_reg: regulator@2 {
220 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
221 regulator-name = "vdd_mpu";
222 regulator-min-microvolt = <912500>;
223 regulator-max-microvolt = <1312500>;
224 regulator-boot-on;
225 regulator-always-on;
226 };
227
228 vdd2_reg: regulator@3 {
229 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
230 regulator-name = "vdd_core";
231 regulator-min-microvolt = <912500>;
232 regulator-max-microvolt = <1150000>;
233 regulator-boot-on;
234 regulator-always-on;
235 };
236
237 vdd3_reg: regulator@4 {
238 regulator-always-on;
239 };
240
241 vdig1_reg: regulator@5 {
242 regulator-always-on;
243 };
244
245 vdig2_reg: regulator@6 {
246 regulator-always-on;
247 };
248
249 vpll_reg: regulator@7 {
250 regulator-always-on;
251 };
252
253 vdac_reg: regulator@8 {
254 regulator-always-on;
255 };
256
257 vaux1_reg: regulator@9 {
258 regulator-always-on;
259 };
260
261 vaux2_reg: regulator@10 {
262 regulator-always-on;
263 };
264
265 vaux33_reg: regulator@11 {
266 regulator-always-on;
267 };
268
269 vmmc_reg: regulator@12 {
270 regulator-always-on;
271 };
272 };
273};