blob: 15a305224bba9c00771cbe4721a08c861895a653 [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";
AnilKumar Chd98258b2012-11-06 19:18:37 +053035 pinctrl-0 = <&user_leds_s0 &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 {
124 compatible = "gpio-leds";
125
126 led@1 {
127 label = "evmsk:green:usr0";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530128 gpios = <&gpio1 4 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530129 default-state = "off";
130 };
131
132 led@2 {
133 label = "evmsk:green:usr1";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530134 gpios = <&gpio1 5 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530135 default-state = "off";
136 };
137
138 led@3 {
139 label = "evmsk:green:mmc0";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530140 gpios = <&gpio1 6 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530141 linux,default-trigger = "mmc0";
142 default-state = "off";
143 };
144
145 led@4 {
146 label = "evmsk:green:heartbeat";
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530147 gpios = <&gpio1 7 0>;
AnilKumar Ch29b0b8432012-11-06 19:18:36 +0530148 linux,default-trigger = "heartbeat";
149 default-state = "off";
150 };
151 };
AnilKumar Ch00834b72012-11-06 19:18:38 +0530152
153 gpio_buttons: gpio_buttons@0 {
154 compatible = "gpio-keys";
155 #address-cells = <1>;
156 #size-cells = <0>;
157
158 switch@1 {
159 label = "button0";
160 linux,code = <0x100>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530161 gpios = <&gpio2 3 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530162 };
163
164 switch@2 {
165 label = "button1";
166 linux,code = <0x101>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530167 gpios = <&gpio2 2 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530168 };
169
170 switch@3 {
171 label = "button2";
172 linux,code = <0x102>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530173 gpios = <&gpio0 30 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530174 gpio-key,wakeup;
175 };
176
177 switch@4 {
178 label = "button3";
179 linux,code = <0x103>;
AnilKumar Chb918e2c2012-11-21 17:22:17 +0530180 gpios = <&gpio2 5 0>;
AnilKumar Ch00834b72012-11-06 19:18:38 +0530181 };
182 };
AnilKumar Ch571ccb22012-10-15 18:05:39 +0530183};
184
185/include/ "tps65910.dtsi"
186
187&tps {
188 vcc1-supply = <&vbat>;
189 vcc2-supply = <&vbat>;
190 vcc3-supply = <&vbat>;
191 vcc4-supply = <&vbat>;
192 vcc5-supply = <&vbat>;
193 vcc6-supply = <&vbat>;
194 vcc7-supply = <&vbat>;
195 vccio-supply = <&vbat>;
196
197 regulators {
198 vrtc_reg: regulator@0 {
199 regulator-always-on;
200 };
201
202 vio_reg: regulator@1 {
203 regulator-always-on;
204 };
205
206 vdd1_reg: regulator@2 {
207 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
208 regulator-name = "vdd_mpu";
209 regulator-min-microvolt = <912500>;
210 regulator-max-microvolt = <1312500>;
211 regulator-boot-on;
212 regulator-always-on;
213 };
214
215 vdd2_reg: regulator@3 {
216 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
217 regulator-name = "vdd_core";
218 regulator-min-microvolt = <912500>;
219 regulator-max-microvolt = <1150000>;
220 regulator-boot-on;
221 regulator-always-on;
222 };
223
224 vdd3_reg: regulator@4 {
225 regulator-always-on;
226 };
227
228 vdig1_reg: regulator@5 {
229 regulator-always-on;
230 };
231
232 vdig2_reg: regulator@6 {
233 regulator-always-on;
234 };
235
236 vpll_reg: regulator@7 {
237 regulator-always-on;
238 };
239
240 vdac_reg: regulator@8 {
241 regulator-always-on;
242 };
243
244 vaux1_reg: regulator@9 {
245 regulator-always-on;
246 };
247
248 vaux2_reg: regulator@10 {
249 regulator-always-on;
250 };
251
252 vaux33_reg: regulator@11 {
253 regulator-always-on;
254 };
255
256 vmmc_reg: regulator@12 {
257 regulator-always-on;
258 };
259 };
260};