ARM: dts: AM33XX: Add pinmux configuration for CPSW to beaglebone
[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 = <
6a8a6b65
FV
39 0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
40 0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
41 0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
42 0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
d98258b8
AC
43 >;
44 };
45
46 gpio_keys_s0: gpio_keys_s0 {
47 pinctrl-single,pins = <
6a8a6b65
FV
48 0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */
49 0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */
50 0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */
51 0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */
2647dd10
AC
52 >;
53 };
3f866445
VH
54
55 i2c0_pins: pinmux_i2c0_pins {
56 pinctrl-single,pins = <
6a8a6b65
FV
57 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
58 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
3f866445
VH
59 >;
60 };
9f2fbe17
VH
61
62 uart0_pins: pinmux_uart0_pins {
63 pinctrl-single,pins = <
6a8a6b65
FV
64 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
65 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
9f2fbe17
VH
66 >;
67 };
4d927570
VH
68
69 clkout2_pin: pinmux_clkout2_pin {
70 pinctrl-single,pins = <
6a8a6b65 71 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
4d927570
VH
72 >;
73 };
1632fbde
PA
74
75 ecap2_pins: backlight_pins {
76 pinctrl-single,pins = <
77 0x19c 0x4 /* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
78 >;
79 };
2647dd10
AC
80 };
81
571ccb28 82 ocp {
dde3b0d6 83 uart0: serial@44e09000 {
9f2fbe17
VH
84 pinctrl-names = "default";
85 pinctrl-0 = <&uart0_pins>;
86
571ccb28
AC
87 status = "okay";
88 };
89
b918e2c0 90 i2c0: i2c@44e0b000 {
3f866445
VH
91 pinctrl-names = "default";
92 pinctrl-0 = <&i2c0_pins>;
93
571ccb28
AC
94 status = "okay";
95 clock-frequency = <400000>;
96
97 tps: tps@2d {
98 reg = <0x2d>;
99 };
100
101 lis331dlh: lis331dlh@18 {
102 compatible = "st,lis331dlh", "st,lis3lv02d";
103 reg = <0x18>;
104 Vdd-supply = <&lis3_reg>;
105 Vdd_IO-supply = <&lis3_reg>;
106
107 st,click-single-x;
108 st,click-single-y;
109 st,click-single-z;
110 st,click-thresh-x = <10>;
111 st,click-thresh-y = <10>;
112 st,click-thresh-z = <10>;
113 st,irq1-click;
114 st,irq2-click;
115 st,wakeup-x-lo;
116 st,wakeup-x-hi;
117 st,wakeup-y-lo;
118 st,wakeup-y-hi;
119 st,wakeup-z-lo;
120 st,wakeup-z-hi;
121 st,min-limit-x = <120>;
122 st,min-limit-y = <120>;
123 st,min-limit-z = <140>;
124 st,max-limit-x = <550>;
125 st,max-limit-y = <550>;
126 st,max-limit-z = <750>;
127 };
128 };
1632fbde
PA
129
130 epwmss2: epwmss@48304000 {
131 status = "okay";
132
133 ecap2: ecap@48304100 {
134 status = "okay";
135 pinctrl-names = "default";
136 pinctrl-0 = <&ecap2_pins>;
137 };
138 };
571ccb28
AC
139 };
140
141 vbat: fixedregulator@0 {
142 compatible = "regulator-fixed";
143 regulator-name = "vbat";
144 regulator-min-microvolt = <5000000>;
145 regulator-max-microvolt = <5000000>;
146 regulator-boot-on;
147 };
148
149 lis3_reg: fixedregulator@1 {
150 compatible = "regulator-fixed";
151 regulator-name = "lis3_reg";
152 regulator-boot-on;
153 };
29b0b843
AC
154
155 leds {
b8f70c3a
VH
156 pinctrl-names = "default";
157 pinctrl-0 = <&user_leds_s0>;
158
29b0b843
AC
159 compatible = "gpio-leds";
160
161 led@1 {
162 label = "evmsk:green:usr0";
e94233c2 163 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
29b0b843
AC
164 default-state = "off";
165 };
166
167 led@2 {
168 label = "evmsk:green:usr1";
e94233c2 169 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
29b0b843
AC
170 default-state = "off";
171 };
172
173 led@3 {
174 label = "evmsk:green:mmc0";
e94233c2 175 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
29b0b843
AC
176 linux,default-trigger = "mmc0";
177 default-state = "off";
178 };
179
180 led@4 {
181 label = "evmsk:green:heartbeat";
e94233c2 182 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
29b0b843
AC
183 linux,default-trigger = "heartbeat";
184 default-state = "off";
185 };
186 };
00834b78
AC
187
188 gpio_buttons: gpio_buttons@0 {
189 compatible = "gpio-keys";
190 #address-cells = <1>;
191 #size-cells = <0>;
192
193 switch@1 {
194 label = "button0";
195 linux,code = <0x100>;
e94233c2 196 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
00834b78
AC
197 };
198
199 switch@2 {
200 label = "button1";
201 linux,code = <0x101>;
e94233c2 202 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
00834b78
AC
203 };
204
205 switch@3 {
206 label = "button2";
207 linux,code = <0x102>;
e94233c2 208 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
00834b78
AC
209 gpio-key,wakeup;
210 };
211
212 switch@4 {
213 label = "button3";
214 linux,code = <0x103>;
e94233c2 215 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
00834b78
AC
216 };
217 };
1632fbde
PA
218
219 backlight {
220 compatible = "pwm-backlight";
221 pwms = <&ecap2 0 50000 1>;
222 brightness-levels = <0 58 61 66 75 90 125 170 255>;
223 default-brightness-level = <8>;
224 };
571ccb28
AC
225};
226
eb33ef66 227#include "tps65910.dtsi"
571ccb28
AC
228
229&tps {
230 vcc1-supply = <&vbat>;
231 vcc2-supply = <&vbat>;
232 vcc3-supply = <&vbat>;
233 vcc4-supply = <&vbat>;
234 vcc5-supply = <&vbat>;
235 vcc6-supply = <&vbat>;
236 vcc7-supply = <&vbat>;
237 vccio-supply = <&vbat>;
238
239 regulators {
240 vrtc_reg: regulator@0 {
241 regulator-always-on;
242 };
243
244 vio_reg: regulator@1 {
245 regulator-always-on;
246 };
247
248 vdd1_reg: regulator@2 {
249 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
250 regulator-name = "vdd_mpu";
251 regulator-min-microvolt = <912500>;
252 regulator-max-microvolt = <1312500>;
253 regulator-boot-on;
254 regulator-always-on;
255 };
256
257 vdd2_reg: regulator@3 {
258 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
259 regulator-name = "vdd_core";
260 regulator-min-microvolt = <912500>;
261 regulator-max-microvolt = <1150000>;
262 regulator-boot-on;
263 regulator-always-on;
264 };
265
266 vdd3_reg: regulator@4 {
267 regulator-always-on;
268 };
269
270 vdig1_reg: regulator@5 {
271 regulator-always-on;
272 };
273
274 vdig2_reg: regulator@6 {
275 regulator-always-on;
276 };
277
278 vpll_reg: regulator@7 {
279 regulator-always-on;
280 };
281
282 vdac_reg: regulator@8 {
283 regulator-always-on;
284 };
285
286 vaux1_reg: regulator@9 {
287 regulator-always-on;
288 };
289
290 vaux2_reg: regulator@10 {
291 regulator-always-on;
292 };
293
294 vaux33_reg: regulator@11 {
295 regulator-always-on;
296 };
297
298 vmmc_reg: regulator@12 {
299 regulator-always-on;
300 };
301 };
302};
This page took 0.074146 seconds and 5 git commands to generate.