Commit | Line | Data |
---|---|---|
571ccb28 AC |
1 | /* |
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 | ||
2647dd10 AC |
33 | am33xx_pinmux: pinmux@44e10800 { |
34 | pinctrl-names = "default"; | |
d98258b8 | 35 | pinctrl-0 = <&user_leds_s0 &gpio_keys_s0>; |
2647dd10 AC |
36 | |
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 */ | |
d98258b8 AC |
43 | >; |
44 | }; | |
45 | ||
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 */ | |
2647dd10 AC |
52 | >; |
53 | }; | |
3f866445 VH |
54 | |
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 | }; | |
2647dd10 AC |
61 | }; |
62 | ||
571ccb28 AC |
63 | ocp { |
64 | uart1: serial@44e09000 { | |
65 | status = "okay"; | |
66 | }; | |
67 | ||
b918e2c0 | 68 | i2c0: i2c@44e0b000 { |
3f866445 VH |
69 | pinctrl-names = "default"; |
70 | pinctrl-0 = <&i2c0_pins>; | |
71 | ||
571ccb28 AC |
72 | 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 | }; | |
29b0b843 AC |
122 | |
123 | leds { | |
124 | compatible = "gpio-leds"; | |
125 | ||
126 | led@1 { | |
127 | label = "evmsk:green:usr0"; | |
b918e2c0 | 128 | gpios = <&gpio1 4 0>; |
29b0b843 AC |
129 | default-state = "off"; |
130 | }; | |
131 | ||
132 | led@2 { | |
133 | label = "evmsk:green:usr1"; | |
b918e2c0 | 134 | gpios = <&gpio1 5 0>; |
29b0b843 AC |
135 | default-state = "off"; |
136 | }; | |
137 | ||
138 | led@3 { | |
139 | label = "evmsk:green:mmc0"; | |
b918e2c0 | 140 | gpios = <&gpio1 6 0>; |
29b0b843 AC |
141 | linux,default-trigger = "mmc0"; |
142 | default-state = "off"; | |
143 | }; | |
144 | ||
145 | led@4 { | |
146 | label = "evmsk:green:heartbeat"; | |
b918e2c0 | 147 | gpios = <&gpio1 7 0>; |
29b0b843 AC |
148 | linux,default-trigger = "heartbeat"; |
149 | default-state = "off"; | |
150 | }; | |
151 | }; | |
00834b78 AC |
152 | |
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>; | |
b918e2c0 | 161 | gpios = <&gpio2 3 0>; |
00834b78 AC |
162 | }; |
163 | ||
164 | switch@2 { | |
165 | label = "button1"; | |
166 | linux,code = <0x101>; | |
b918e2c0 | 167 | gpios = <&gpio2 2 0>; |
00834b78 AC |
168 | }; |
169 | ||
170 | switch@3 { | |
171 | label = "button2"; | |
172 | linux,code = <0x102>; | |
b918e2c0 | 173 | gpios = <&gpio0 30 0>; |
00834b78 AC |
174 | gpio-key,wakeup; |
175 | }; | |
176 | ||
177 | switch@4 { | |
178 | label = "button3"; | |
179 | linux,code = <0x103>; | |
b918e2c0 | 180 | gpios = <&gpio2 5 0>; |
00834b78 AC |
181 | }; |
182 | }; | |
571ccb28 AC |
183 | }; |
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 | }; |