ARM: dts: AM3XXX: Use #include for all device trees
[deliverable/linux.git] / arch / arm / boot / dts / am335x-evmsk.dts
CommitLineData
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
eb33ef66 16#include "am33xx.dtsi"
571ccb28
AC
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";
4d927570 35 pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
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 };
9f2fbe17
VH
61
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 };
4d927570
VH
68
69 clkout2_pin: pinmux_clkout2_pin {
70 pinctrl-single,pins = <
71 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
72 >;
73 };
2647dd10
AC
74 };
75
571ccb28 76 ocp {
dde3b0d6 77 uart0: serial@44e09000 {
9f2fbe17
VH
78 pinctrl-names = "default";
79 pinctrl-0 = <&uart0_pins>;
80
571ccb28
AC
81 status = "okay";
82 };
83
b918e2c0 84 i2c0: i2c@44e0b000 {
3f866445
VH
85 pinctrl-names = "default";
86 pinctrl-0 = <&i2c0_pins>;
87
571ccb28
AC
88 status = "okay";
89 clock-frequency = <400000>;
90
91 tps: tps@2d {
92 reg = <0x2d>;
93 };
94
95 lis331dlh: lis331dlh@18 {
96 compatible = "st,lis331dlh", "st,lis3lv02d";
97 reg = <0x18>;
98 Vdd-supply = <&lis3_reg>;
99 Vdd_IO-supply = <&lis3_reg>;
100
101 st,click-single-x;
102 st,click-single-y;
103 st,click-single-z;
104 st,click-thresh-x = <10>;
105 st,click-thresh-y = <10>;
106 st,click-thresh-z = <10>;
107 st,irq1-click;
108 st,irq2-click;
109 st,wakeup-x-lo;
110 st,wakeup-x-hi;
111 st,wakeup-y-lo;
112 st,wakeup-y-hi;
113 st,wakeup-z-lo;
114 st,wakeup-z-hi;
115 st,min-limit-x = <120>;
116 st,min-limit-y = <120>;
117 st,min-limit-z = <140>;
118 st,max-limit-x = <550>;
119 st,max-limit-y = <550>;
120 st,max-limit-z = <750>;
121 };
122 };
123 };
124
125 vbat: fixedregulator@0 {
126 compatible = "regulator-fixed";
127 regulator-name = "vbat";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
130 regulator-boot-on;
131 };
132
133 lis3_reg: fixedregulator@1 {
134 compatible = "regulator-fixed";
135 regulator-name = "lis3_reg";
136 regulator-boot-on;
137 };
29b0b843
AC
138
139 leds {
b8f70c3a
VH
140 pinctrl-names = "default";
141 pinctrl-0 = <&user_leds_s0>;
142
29b0b843
AC
143 compatible = "gpio-leds";
144
145 led@1 {
146 label = "evmsk:green:usr0";
b918e2c0 147 gpios = <&gpio1 4 0>;
29b0b843
AC
148 default-state = "off";
149 };
150
151 led@2 {
152 label = "evmsk:green:usr1";
b918e2c0 153 gpios = <&gpio1 5 0>;
29b0b843
AC
154 default-state = "off";
155 };
156
157 led@3 {
158 label = "evmsk:green:mmc0";
b918e2c0 159 gpios = <&gpio1 6 0>;
29b0b843
AC
160 linux,default-trigger = "mmc0";
161 default-state = "off";
162 };
163
164 led@4 {
165 label = "evmsk:green:heartbeat";
b918e2c0 166 gpios = <&gpio1 7 0>;
29b0b843
AC
167 linux,default-trigger = "heartbeat";
168 default-state = "off";
169 };
170 };
00834b78
AC
171
172 gpio_buttons: gpio_buttons@0 {
173 compatible = "gpio-keys";
174 #address-cells = <1>;
175 #size-cells = <0>;
176
177 switch@1 {
178 label = "button0";
179 linux,code = <0x100>;
b918e2c0 180 gpios = <&gpio2 3 0>;
00834b78
AC
181 };
182
183 switch@2 {
184 label = "button1";
185 linux,code = <0x101>;
b918e2c0 186 gpios = <&gpio2 2 0>;
00834b78
AC
187 };
188
189 switch@3 {
190 label = "button2";
191 linux,code = <0x102>;
b918e2c0 192 gpios = <&gpio0 30 0>;
00834b78
AC
193 gpio-key,wakeup;
194 };
195
196 switch@4 {
197 label = "button3";
198 linux,code = <0x103>;
b918e2c0 199 gpios = <&gpio2 5 0>;
00834b78
AC
200 };
201 };
571ccb28
AC
202};
203
eb33ef66 204#include "tps65910.dtsi"
571ccb28
AC
205
206&tps {
207 vcc1-supply = <&vbat>;
208 vcc2-supply = <&vbat>;
209 vcc3-supply = <&vbat>;
210 vcc4-supply = <&vbat>;
211 vcc5-supply = <&vbat>;
212 vcc6-supply = <&vbat>;
213 vcc7-supply = <&vbat>;
214 vccio-supply = <&vbat>;
215
216 regulators {
217 vrtc_reg: regulator@0 {
218 regulator-always-on;
219 };
220
221 vio_reg: regulator@1 {
222 regulator-always-on;
223 };
224
225 vdd1_reg: regulator@2 {
226 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
227 regulator-name = "vdd_mpu";
228 regulator-min-microvolt = <912500>;
229 regulator-max-microvolt = <1312500>;
230 regulator-boot-on;
231 regulator-always-on;
232 };
233
234 vdd2_reg: regulator@3 {
235 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
236 regulator-name = "vdd_core";
237 regulator-min-microvolt = <912500>;
238 regulator-max-microvolt = <1150000>;
239 regulator-boot-on;
240 regulator-always-on;
241 };
242
243 vdd3_reg: regulator@4 {
244 regulator-always-on;
245 };
246
247 vdig1_reg: regulator@5 {
248 regulator-always-on;
249 };
250
251 vdig2_reg: regulator@6 {
252 regulator-always-on;
253 };
254
255 vpll_reg: regulator@7 {
256 regulator-always-on;
257 };
258
259 vdac_reg: regulator@8 {
260 regulator-always-on;
261 };
262
263 vaux1_reg: regulator@9 {
264 regulator-always-on;
265 };
266
267 vaux2_reg: regulator@10 {
268 regulator-always-on;
269 };
270
271 vaux33_reg: regulator@11 {
272 regulator-always-on;
273 };
274
275 vmmc_reg: regulator@12 {
276 regulator-always-on;
277 };
278 };
279};
This page took 0.065191 seconds and 5 git commands to generate.