blob: 21d5a0804f6c30d95f50b3d8a15aa0360f7af808 [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 };
AnilKumar Ch2647dd12012-11-06 19:18:35 +053061 };
62
AnilKumar Ch571ccb22012-10-15 18:05:39 +053063 ocp {
64 uart1: serial@44e09000 {
65 status = "okay";
66 };
67
AnilKumar Chb918e2c2012-11-21 17:22:17 +053068 i2c0: i2c@44e0b000 {
Vaibhav Hiremath3f866442013-03-26 14:14:01 +053069 pinctrl-names = "default";
70 pinctrl-0 = <&i2c0_pins>;
71
AnilKumar Ch571ccb22012-10-15 18:05:39 +053072 status = "okay";
73 clock-frequency = <400000>;
74
75 tps: tps@2d {
76 reg = <0x2d>;
77 };
78
79 lis331dlh: lis331dlh@18 {
80 compatible = "st,lis331dlh", "st,lis3lv02d";
81 reg = <0x18>;
82 Vdd-supply = <&lis3_reg>;
83 Vdd_IO-supply = <&lis3_reg>;
84
85 st,click-single-x;
86 st,click-single-y;
87 st,click-single-z;
88 st,click-thresh-x = <10>;
89 st,click-thresh-y = <10>;
90 st,click-thresh-z = <10>;
91 st,irq1-click;
92 st,irq2-click;
93 st,wakeup-x-lo;
94 st,wakeup-x-hi;
95 st,wakeup-y-lo;
96 st,wakeup-y-hi;
97 st,wakeup-z-lo;
98 st,wakeup-z-hi;
99 st,min-limit-x = <120>;
100 st,min-limit-y = <120>;
101 st,min-limit-z = <140>;
102 st,max-limit-x = <550>;
103 st,max-limit-y = <550>;
104 st,max-limit-z = <750>;
105 };
106 };
107 };
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";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530131 gpios = <&gpio1 4 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530132 default-state = "off";
133 };
134
135 led@2 {
136 label = "evmsk:green:usr1";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530137 gpios = <&gpio1 5 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530138 default-state = "off";
139 };
140
141 led@3 {
142 label = "evmsk:green:mmc0";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530143 gpios = <&gpio1 6 0>;
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";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530150 gpios = <&gpio1 7 0>;
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>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530164 gpios = <&gpio2 3 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530165 };
166
167 switch@2 {
168 label = "button1";
169 linux,code = <0x101>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530170 gpios = <&gpio2 2 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530171 };
172
173 switch@3 {
174 label = "button2";
175 linux,code = <0x102>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530176 gpios = <&gpio0 30 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530177 gpio-key,wakeup;
178 };
179
180 switch@4 {
181 label = "button3";
182 linux,code = <0x103>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530183 gpios = <&gpio2 5 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530184 };
185 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530186};
187
188/include/ "tps65910.dtsi"
189
190&tps {
191 vcc1-supply = <&vbat>;
192 vcc2-supply = <&vbat>;
193 vcc3-supply = <&vbat>;
194 vcc4-supply = <&vbat>;
195 vcc5-supply = <&vbat>;
196 vcc6-supply = <&vbat>;
197 vcc7-supply = <&vbat>;
198 vccio-supply = <&vbat>;
199
200 regulators {
201 vrtc_reg: regulator@0 {
202 regulator-always-on;
203 };
204
205 vio_reg: regulator@1 {
206 regulator-always-on;
207 };
208
209 vdd1_reg: regulator@2 {
210 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
211 regulator-name = "vdd_mpu";
212 regulator-min-microvolt = <912500>;
213 regulator-max-microvolt = <1312500>;
214 regulator-boot-on;
215 regulator-always-on;
216 };
217
218 vdd2_reg: regulator@3 {
219 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
220 regulator-name = "vdd_core";
221 regulator-min-microvolt = <912500>;
222 regulator-max-microvolt = <1150000>;
223 regulator-boot-on;
224 regulator-always-on;
225 };
226
227 vdd3_reg: regulator@4 {
228 regulator-always-on;
229 };
230
231 vdig1_reg: regulator@5 {
232 regulator-always-on;
233 };
234
235 vdig2_reg: regulator@6 {
236 regulator-always-on;
237 };
238
239 vpll_reg: regulator@7 {
240 regulator-always-on;
241 };
242
243 vdac_reg: regulator@8 {
244 regulator-always-on;
245 };
246
247 vaux1_reg: regulator@9 {
248 regulator-always-on;
249 };
250
251 vaux2_reg: regulator@10 {
252 regulator-always-on;
253 };
254
255 vaux33_reg: regulator@11 {
256 regulator-always-on;
257 };
258
259 vmmc_reg: regulator@12 {
260 regulator-always-on;
261 };
262 };
263};