blob: d4783e0a96f2817735b5e1b0761395e988e175b6 [file] [log] [blame]
AnilKumar Ch32bb00e2012-06-22 15:10:49 +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/dts-v1/;
9
Florian Vaussardeb33ef662013-06-03 16:12:22 +020010#include "am33xx.dtsi"
Eyal Reizer52dfcbf2015-05-03 15:19:28 +030011#include <dt-bindings/interrupt-controller/irq.h>
AnilKumar Ch32bb00e2012-06-22 15:10:49 +053012
13/ {
14 model = "TI AM335x EVM";
15 compatible = "ti,am335x-evm", "ti,am33xx";
16
AnilKumar Chefeedcf2012-08-31 15:07:20 +053017 cpus {
18 cpu@0 {
19 cpu0-supply = <&vdd1_reg>;
20 };
21 };
22
AnilKumar Ch32bb00e2012-06-22 15:10:49 +053023 memory {
24 device_type = "memory";
25 reg = <0x80000000 0x10000000>; /* 256 MB */
26 };
Vaibhav Hiremath53d91032012-08-15 16:53:25 +053027
AnilKumar Ch1b2a9702012-08-21 16:47:29 +053028 vbat: fixedregulator@0 {
29 compatible = "regulator-fixed";
30 regulator-name = "vbat";
31 regulator-min-microvolt = <5000000>;
32 regulator-max-microvolt = <5000000>;
33 regulator-boot-on;
34 };
AnilKumar Ch492dd022012-09-20 02:49:29 +053035
36 lis3_reg: fixedregulator@1 {
37 compatible = "regulator-fixed";
38 regulator-name = "lis3_reg";
39 regulator-boot-on;
40 };
AnilKumar Ch2ca1d312012-11-06 19:18:30 +053041
Eyal Reizer52dfcbf2015-05-03 15:19:28 +030042 wlan_en_reg: fixedregulator@2 {
43 compatible = "regulator-fixed";
44 regulator-name = "wlan-en-regulator";
45 regulator-min-microvolt = <1800000>;
46 regulator-max-microvolt = <1800000>;
47
48 /* WLAN_EN GPIO for this board - Bank1, pin16 */
49 gpio = <&gpio1 16 0>;
50
51 /* WLAN card specific delay */
52 startup-delay-us = <70000>;
53 enable-active-high;
54 };
55
AnilKumar Ch2ca1d312012-11-06 19:18:30 +053056 matrix_keypad: matrix_keypad@0 {
57 compatible = "gpio-matrix-keypad";
58 debounce-delay-ms = <5>;
59 col-scan-delay-us = <2>;
60
Florian Vaussarde94233c2013-06-03 16:12:23 +020061 row-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH /* Bank1, pin25 */
62 &gpio1 26 GPIO_ACTIVE_HIGH /* Bank1, pin26 */
63 &gpio1 27 GPIO_ACTIVE_HIGH>; /* Bank1, pin27 */
AnilKumar Ch2ca1d312012-11-06 19:18:30 +053064
Florian Vaussarde94233c2013-06-03 16:12:23 +020065 col-gpios = <&gpio1 21 GPIO_ACTIVE_HIGH /* Bank1, pin21 */
66 &gpio1 22 GPIO_ACTIVE_HIGH>; /* Bank1, pin22 */
AnilKumar Ch2ca1d312012-11-06 19:18:30 +053067
68 linux,keymap = <0x0000008b /* MENU */
69 0x0100009e /* BACK */
70 0x02000069 /* LEFT */
71 0x0001006a /* RIGHT */
72 0x0101001c /* ENTER */
73 0x0201006c>; /* DOWN */
74 };
AnilKumar Ch822c9932012-11-06 19:18:32 +053075
76 gpio_keys: volume_keys@0 {
77 compatible = "gpio-keys";
78 #address-cells = <1>;
79 #size-cells = <0>;
80 autorepeat;
81
82 switch@9 {
83 label = "volume-up";
84 linux,code = <115>;
Florian Vaussarde94233c2013-06-03 16:12:23 +020085 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
AnilKumar Ch822c9932012-11-06 19:18:32 +053086 gpio-key,wakeup;
87 };
88
89 switch@10 {
90 label = "volume-down";
91 linux,code = <114>;
Florian Vaussarde94233c2013-06-03 16:12:23 +020092 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
AnilKumar Ch822c9932012-11-06 19:18:32 +053093 gpio-key,wakeup;
94 };
95 };
Philip Avinash6993fd02013-06-06 15:52:38 +020096
97 backlight {
98 compatible = "pwm-backlight";
99 pwms = <&ecap0 0 50000 0>;
100 brightness-levels = <0 51 53 56 62 75 101 152 255>;
101 default-brightness-level = <8>;
102 };
Benoit Parrotd6cfc1e2013-08-08 18:28:14 -0500103
104 panel {
105 compatible = "ti,tilcdc,panel";
106 status = "okay";
107 pinctrl-names = "default";
108 pinctrl-0 = <&lcd_pins_s0>;
109 panel-info {
110 ac-bias = <255>;
111 ac-bias-intrpt = <0>;
112 dma-burst-sz = <16>;
113 bpp = <32>;
114 fdd = <0x80>;
115 sync-edge = <0>;
116 sync-ctrl = <1>;
117 raster-order = <0>;
118 fifo-th = <0>;
119 };
120
121 display-timings {
122 800x480p62 {
123 clock-frequency = <30000000>;
124 hactive = <800>;
125 vactive = <480>;
126 hfront-porch = <39>;
127 hback-porch = <39>;
128 hsync-len = <47>;
129 vback-porch = <29>;
130 vfront-porch = <13>;
131 vsync-len = <2>;
132 hsync-active = <1>;
133 vsync-active = <1>;
134 };
135 };
136 };
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300137
138 sound {
139 compatible = "ti,da830-evm-audio";
140 ti,model = "AM335x-EVM";
141 ti,audio-codec = <&tlv320aic3106>;
142 ti,mcasp-controller = <&mcasp1>;
143 ti,codec-clock-rate = <12000000>;
144 ti,audio-routing =
145 "Headphone Jack", "HPLOUT",
146 "Headphone Jack", "HPROUT",
147 "LINE1L", "Line In",
148 "LINE1R", "Line In";
149 };
AnilKumar Ch1b2a9702012-08-21 16:47:29 +0530150};
151
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +0200152&am33xx_pinmux {
153 pinctrl-names = "default";
154 pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0 &clkout2_pin>;
155
156 matrix_keypad_s0: matrix_keypad_s0 {
157 pinctrl-single,pins = <
158 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */
159 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a6.gpio1_22 */
160 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a9.gpio1_25 */
161 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a10.gpio1_26 */
162 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a11.gpio1_27 */
163 >;
164 };
165
166 volume_keys_s0: volume_keys_s0 {
167 pinctrl-single,pins = <
168 0x150 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* spi0_sclk.gpio0_2 */
169 0x154 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* spi0_d0.gpio0_3 */
170 >;
171 };
172
173 i2c0_pins: pinmux_i2c0_pins {
174 pinctrl-single,pins = <
175 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */
176 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */
177 >;
178 };
179
180 i2c1_pins: pinmux_i2c1_pins {
181 pinctrl-single,pins = <
182 0x158 (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_d1.i2c1_sda */
183 0x15c (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_cs0.i2c1_scl */
184 >;
185 };
186
187 uart0_pins: pinmux_uart0_pins {
188 pinctrl-single,pins = <
189 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */
190 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
191 >;
192 };
193
Eliad Pellerab159d22015-05-04 15:41:13 +0300194 uart1_pins: pinmux_uart1_pins {
195 pinctrl-single,pins = <
196 0x178 (PIN_INPUT | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */
197 0x17C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */
198 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
199 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
200 >;
201 };
202
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +0200203 clkout2_pin: pinmux_clkout2_pin {
204 pinctrl-single,pins = <
205 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
206 >;
207 };
208
209 nandflash_pins_s0: nandflash_pins_s0 {
210 pinctrl-single,pins = <
211 0x0 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
212 0x4 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
213 0x8 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
214 0xc (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
215 0x10 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
216 0x14 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
217 0x18 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
218 0x1c (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
219 0x70 (PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
220 0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_30 */
221 0x7c (PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
222 0x90 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
223 0x94 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
224 0x98 (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
225 0x9c (PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
226 >;
227 };
228
229 ecap0_pins: backlight_pins {
230 pinctrl-single,pins = <
231 0x164 0x0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
232 >;
233 };
234
235 cpsw_default: cpsw_default {
236 pinctrl-single,pins = <
237 /* Slave 1 */
238 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */
239 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */
240 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */
241 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */
242 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */
243 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */
244 0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */
245 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */
246 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */
247 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */
248 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */
249 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */
250 >;
251 };
252
253 cpsw_sleep: cpsw_sleep {
254 pinctrl-single,pins = <
255 /* Slave 1 reset value */
256 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
257 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
258 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
259 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
260 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
261 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
262 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
263 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
264 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
265 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
266 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
267 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
268 >;
269 };
270
271 davinci_mdio_default: davinci_mdio_default {
272 pinctrl-single,pins = <
273 /* MDIO */
274 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
275 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
276 >;
277 };
278
279 davinci_mdio_sleep: davinci_mdio_sleep {
280 pinctrl-single,pins = <
281 /* MDIO reset value */
282 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
283 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
284 >;
285 };
Benoit Parrotd6cfc1e2013-08-08 18:28:14 -0500286
Balaji T Kb6586cd2014-03-03 20:20:19 +0530287 mmc1_pins: pinmux_mmc1_pins {
288 pinctrl-single,pins = <
289 0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
290 >;
291 };
292
Eyal Reizer52dfcbf2015-05-03 15:19:28 +0300293 mmc3_pins: pinmux_mmc3_pins {
294 pinctrl-single,pins = <
295 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0, INPUT_PULLUP | MODE3 */
296 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1, INPUT_PULLUP | MODE3 */
297 0x4C (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2, INPUT_PULLUP | MODE3 */
298 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3, INPUT_PULLUP | MODE3 */
299 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd, INPUT_PULLUP | MODE3 */
300 0x8C (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk, INPUT_PULLUP | MODE3 */
301 >;
302 };
303
304 wlan_pins: pinmux_wlan_pins {
305 pinctrl-single,pins = <
306 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 */
307 0x19C (PIN_INPUT | MUX_MODE7) /* mcasp0_ahclkr.gpio3_17 */
308 0x1AC (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_ahclkx.gpio3_21 */
309 >;
310 };
311
Benoit Parrotd6cfc1e2013-08-08 18:28:14 -0500312 lcd_pins_s0: lcd_pins_s0 {
313 pinctrl-single,pins = <
Wolfram Sangd2abdf72014-05-09 17:15:50 +0200314 0x20 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data23 */
315 0x24 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data22 */
316 0x28 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data21 */
317 0x2c (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data20 */
318 0x30 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data19 */
319 0x34 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data18 */
320 0x38 (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data17 */
321 0x3c (PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data16 */
322 0xa0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */
323 0xa4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */
324 0xa8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */
325 0xac (PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */
326 0xb0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */
327 0xb4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */
328 0xb8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */
329 0xbc (PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */
330 0xc0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */
331 0xc4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */
332 0xc8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */
333 0xcc (PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */
334 0xd0 (PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */
335 0xd4 (PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */
336 0xd8 (PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */
337 0xdc (PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */
338 0xe0 (PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */
339 0xe4 (PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */
340 0xe8 (PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */
341 0xec (PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */
Benoit Parrotd6cfc1e2013-08-08 18:28:14 -0500342 >;
343 };
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300344
Peter Ujfalusi11fd9a92015-07-02 17:06:33 +0300345 mcasp1_pins: mcasp1_pins {
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300346 pinctrl-single,pins = <
Wolfram Sang365c1072014-04-01 18:38:13 +0200347 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */
348 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300349 0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
350 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
351 >;
352 };
Roger Quadrosf80ecaf2014-10-29 17:52:57 +0200353
Peter Ujfalusie4e0b702015-07-02 17:06:34 +0300354 mcasp1_pins_sleep: mcasp1_pins_sleep {
355 pinctrl-single,pins = <
356 0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
357 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
358 0x108 (PIN_INPUT_PULLDOWN | MUX_MODE7)
359 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
360 >;
361 };
362
Roger Quadrosf80ecaf2014-10-29 17:52:57 +0200363 dcan1_pins_default: dcan1_pins_default {
364 pinctrl-single,pins = <
365 0x168 (PIN_OUTPUT | MUX_MODE2) /* uart0_ctsn.d_can1_tx */
366 0x16c (PIN_INPUT_PULLDOWN | MUX_MODE2) /* uart0_rtsn.d_can1_rx */
367 >;
368 };
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +0200369};
370
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200371&uart0 {
372 pinctrl-names = "default";
373 pinctrl-0 = <&uart0_pins>;
374
375 status = "okay";
376};
377
Eliad Pellerab159d22015-05-04 15:41:13 +0300378&uart1 {
379 pinctrl-names = "default";
380 pinctrl-0 = <&uart1_pins>;
381
382 status = "okay";
383};
384
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200385&i2c0 {
386 pinctrl-names = "default";
387 pinctrl-0 = <&i2c0_pins>;
388
389 status = "okay";
390 clock-frequency = <400000>;
391
392 tps: tps@2d {
393 reg = <0x2d>;
394 };
395};
396
397&usb {
398 status = "okay";
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300399};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200400
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300401&usb_ctrl_mod {
402 status = "okay";
403};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200404
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300405&usb0_phy {
406 status = "okay";
407};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200408
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300409&usb1_phy {
410 status = "okay";
411};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200412
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300413&usb0 {
414 status = "okay";
415};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200416
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300417&usb1 {
418 status = "okay";
419 dr_mode = "host";
420};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200421
Guido Martínezbd6fdaf2014-04-28 17:54:33 -0300422&cppi41dma {
423 status = "okay";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200424};
425
426&i2c1 {
427 pinctrl-names = "default";
428 pinctrl-0 = <&i2c1_pins>;
429
430 status = "okay";
431 clock-frequency = <100000>;
432
433 lis331dlh: lis331dlh@18 {
434 compatible = "st,lis331dlh", "st,lis3lv02d";
435 reg = <0x18>;
436 Vdd-supply = <&lis3_reg>;
437 Vdd_IO-supply = <&lis3_reg>;
438
439 st,click-single-x;
440 st,click-single-y;
441 st,click-single-z;
442 st,click-thresh-x = <10>;
443 st,click-thresh-y = <10>;
444 st,click-thresh-z = <10>;
445 st,irq1-click;
446 st,irq2-click;
447 st,wakeup-x-lo;
448 st,wakeup-x-hi;
449 st,wakeup-y-lo;
450 st,wakeup-y-hi;
451 st,wakeup-z-lo;
452 st,wakeup-z-hi;
453 st,min-limit-x = <120>;
454 st,min-limit-y = <120>;
455 st,min-limit-z = <140>;
456 st,max-limit-x = <550>;
457 st,max-limit-y = <550>;
458 st,max-limit-z = <750>;
459 };
460
461 tsl2550: tsl2550@39 {
462 compatible = "taos,tsl2550";
463 reg = <0x39>;
464 };
465
466 tmp275: tmp275@48 {
467 compatible = "ti,tmp275";
468 reg = <0x48>;
469 };
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300470
471 tlv320aic3106: tlv320aic3106@1b {
472 compatible = "ti,tlv320aic3106";
473 reg = <0x1b>;
474 status = "okay";
475
476 /* Regulators */
477 AVDD-supply = <&vaux2_reg>;
478 IOVDD-supply = <&vaux2_reg>;
479 DRVDD-supply = <&vaux2_reg>;
480 DVDD-supply = <&vbat>;
481 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200482};
483
Benoit Parrotd6cfc1e2013-08-08 18:28:14 -0500484&lcdc {
485 status = "okay";
486};
487
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200488&elm {
489 status = "okay";
490};
491
492&epwmss0 {
493 status = "okay";
494
495 ecap0: ecap@48300100 {
496 status = "okay";
497 pinctrl-names = "default";
498 pinctrl-0 = <&ecap0_pins>;
499 };
500};
501
502&gpmc {
503 status = "okay";
504 pinctrl-names = "default";
505 pinctrl-0 = <&nandflash_pins_s0>;
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700506 ranges = <0 0 0x08000000 0x1000000>; /* CS0: 16MB for NAND */
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200507 nand@0,0 {
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700508 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200509 ti,nand-ecc-opt = "bch8";
Pekon Guptac06c5272014-02-05 18:58:32 +0530510 ti,elm-id = <&elm>;
511 nand-bus-width = <8>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200512 gpmc,device-width = <1>;
513 gpmc,sync-clk-ps = <0>;
514 gpmc,cs-on-ns = <0>;
515 gpmc,cs-rd-off-ns = <44>;
516 gpmc,cs-wr-off-ns = <44>;
517 gpmc,adv-on-ns = <6>;
518 gpmc,adv-rd-off-ns = <34>;
519 gpmc,adv-wr-off-ns = <44>;
520 gpmc,we-on-ns = <0>;
521 gpmc,we-off-ns = <40>;
522 gpmc,oe-on-ns = <0>;
523 gpmc,oe-off-ns = <54>;
524 gpmc,access-ns = <64>;
525 gpmc,rd-cycle-ns = <82>;
526 gpmc,wr-cycle-ns = <82>;
527 gpmc,wait-on-read = "true";
528 gpmc,wait-on-write = "true";
529 gpmc,bus-turnaround-ns = <0>;
530 gpmc,cycle2cycle-delay-ns = <0>;
531 gpmc,clk-activation-ns = <0>;
532 gpmc,wait-monitoring-ns = <0>;
533 gpmc,wr-access-ns = <40>;
534 gpmc,wr-data-mux-bus-ns = <0>;
Pekon Gupta91994fa2014-02-05 18:58:31 +0530535 /* MTD partition table */
536 /* All SPL-* partitions are sized to minimal length
537 * which can be independently programmable. For
538 * NAND flash this is equal to size of erase-block */
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200539 #address-cells = <1>;
540 #size-cells = <1>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200541 partition@0 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530542 label = "NAND.SPL";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200543 reg = <0x00000000 0x000020000>;
544 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200545 partition@1 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530546 label = "NAND.SPL.backup1";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200547 reg = <0x00020000 0x00020000>;
548 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200549 partition@2 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530550 label = "NAND.SPL.backup2";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200551 reg = <0x00040000 0x00020000>;
552 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200553 partition@3 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530554 label = "NAND.SPL.backup3";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200555 reg = <0x00060000 0x00020000>;
556 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200557 partition@4 {
Roger Quadrosa8ead0e2014-10-21 14:25:45 +0300558 label = "NAND.u-boot-spl-os";
Pekon Gupta91994fa2014-02-05 18:58:31 +0530559 reg = <0x00080000 0x00040000>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200560 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200561 partition@5 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530562 label = "NAND.u-boot";
563 reg = <0x000C0000 0x00100000>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200564 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200565 partition@6 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530566 label = "NAND.u-boot-env";
567 reg = <0x001C0000 0x00020000>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200568 };
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200569 partition@7 {
Pekon Gupta91994fa2014-02-05 18:58:31 +0530570 label = "NAND.u-boot-env.backup1";
571 reg = <0x001E0000 0x00020000>;
572 };
573 partition@8 {
574 label = "NAND.kernel";
575 reg = <0x00200000 0x00800000>;
576 };
577 partition@9 {
578 label = "NAND.file-system";
579 reg = <0x00A00000 0x0F600000>;
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200580 };
581 };
582};
583
Florian Vaussardeb33ef662013-06-03 16:12:22 +0200584#include "tps65910.dtsi"
AnilKumar Ch1b2a9702012-08-21 16:47:29 +0530585
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300586&mcasp1 {
Peter Ujfalusie4e0b702015-07-02 17:06:34 +0300587 pinctrl-names = "default", "sleep";
Peter Ujfalusi11fd9a92015-07-02 17:06:33 +0300588 pinctrl-0 = <&mcasp1_pins>;
Peter Ujfalusie4e0b702015-07-02 17:06:34 +0300589 pinctrl-1 = <&mcasp1_pins_sleep>;
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300590
Peter Ujfalusia6ccad62015-07-02 17:06:32 +0300591 status = "okay";
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300592
Peter Ujfalusia6ccad62015-07-02 17:06:32 +0300593 op-mode = <0>; /* MCASP_IIS_MODE */
594 tdm-slots = <2>;
595 /* 4 serializers */
596 serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
597 0 0 1 2
598 >;
599 tx-num-evt = <32>;
600 rx-num-evt = <32>;
Darren Etheridgef608f8dd2013-10-20 20:04:10 +0300601};
602
AnilKumar Ch1b2a9702012-08-21 16:47:29 +0530603&tps {
604 vcc1-supply = <&vbat>;
605 vcc2-supply = <&vbat>;
606 vcc3-supply = <&vbat>;
607 vcc4-supply = <&vbat>;
608 vcc5-supply = <&vbat>;
609 vcc6-supply = <&vbat>;
610 vcc7-supply = <&vbat>;
611 vccio-supply = <&vbat>;
612
613 regulators {
614 vrtc_reg: regulator@0 {
615 regulator-always-on;
616 };
617
618 vio_reg: regulator@1 {
619 regulator-always-on;
620 };
621
622 vdd1_reg: regulator@2 {
623 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
624 regulator-name = "vdd_mpu";
625 regulator-min-microvolt = <912500>;
626 regulator-max-microvolt = <1312500>;
627 regulator-boot-on;
628 regulator-always-on;
629 };
630
631 vdd2_reg: regulator@3 {
632 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
633 regulator-name = "vdd_core";
634 regulator-min-microvolt = <912500>;
635 regulator-max-microvolt = <1150000>;
636 regulator-boot-on;
637 regulator-always-on;
638 };
639
640 vdd3_reg: regulator@4 {
641 regulator-always-on;
642 };
643
644 vdig1_reg: regulator@5 {
645 regulator-always-on;
646 };
647
648 vdig2_reg: regulator@6 {
649 regulator-always-on;
650 };
651
652 vpll_reg: regulator@7 {
653 regulator-always-on;
654 };
655
656 vdac_reg: regulator@8 {
657 regulator-always-on;
658 };
659
660 vaux1_reg: regulator@9 {
661 regulator-always-on;
662 };
663
664 vaux2_reg: regulator@10 {
665 regulator-always-on;
666 };
667
668 vaux33_reg: regulator@11 {
669 regulator-always-on;
670 };
671
672 vmmc_reg: regulator@12 {
Matt Porter55b44522013-09-10 14:24:39 -0500673 regulator-min-microvolt = <1800000>;
674 regulator-max-microvolt = <3300000>;
AnilKumar Ch1b2a9702012-08-21 16:47:29 +0530675 regulator-always-on;
676 };
Vaibhav Hiremath53d91032012-08-15 16:53:25 +0530677 };
AnilKumar Ch32bb00e2012-06-22 15:10:49 +0530678};
Mugunthan V N1a39a652012-11-14 09:08:00 +0000679
Mugunthan V N50c7d2bd2013-06-07 17:02:54 +0530680&mac {
681 pinctrl-names = "default", "sleep";
682 pinctrl-0 = <&cpsw_default>;
683 pinctrl-1 = <&cpsw_sleep>;
Johan Hovold16c75a12014-05-08 10:57:36 +0200684 status = "okay";
Mugunthan V N50c7d2bd2013-06-07 17:02:54 +0530685};
686
687&davinci_mdio {
688 pinctrl-names = "default", "sleep";
689 pinctrl-0 = <&davinci_mdio_default>;
690 pinctrl-1 = <&davinci_mdio_sleep>;
Johan Hovold16c75a12014-05-08 10:57:36 +0200691 status = "okay";
Mugunthan V N50c7d2bd2013-06-07 17:02:54 +0530692};
693
Mugunthan V N1a39a652012-11-14 09:08:00 +0000694&cpsw_emac0 {
695 phy_id = <&davinci_mdio>, <0>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000696 phy-mode = "rgmii-txid";
Mugunthan V N1a39a652012-11-14 09:08:00 +0000697};
698
699&cpsw_emac1 {
700 phy_id = <&davinci_mdio>, <1>;
Mugunthan V N6d75afe2013-06-03 20:10:11 +0000701 phy-mode = "rgmii-txid";
Mugunthan V N1a39a652012-11-14 09:08:00 +0000702};
Patil, Rachnaa82279d2013-01-24 03:45:12 +0000703
704&tscadc {
705 status = "okay";
706 tsc {
707 ti,wires = <4>;
708 ti,x-plate-resistance = <200>;
Felipe Balbic9aeb242013-11-10 23:56:43 -0800709 ti,coordinate-readouts = <5>;
Patil, Rachnaa82279d2013-01-24 03:45:12 +0000710 ti,wire-config = <0x00 0x11 0x22 0x33>;
Vignesh Re6e4a0d2015-02-03 11:46:36 -0800711 ti,charge-delay = <0x400>;
Patil, Rachnaa82279d2013-01-24 03:45:12 +0000712 };
713
714 adc {
Sebastian Andrzej Siewior18926ed2013-05-29 17:39:02 +0200715 ti,adc-channels = <4 5 6 7>;
Patil, Rachnaa82279d2013-01-24 03:45:12 +0000716 };
717};
Matt Porter55b44522013-09-10 14:24:39 -0500718
719&mmc1 {
720 status = "okay";
721 vmmc-supply = <&vmmc_reg>;
Balaji T K0d8d40f2013-09-27 17:05:10 +0530722 bus-width = <4>;
Balaji T Kb6586cd2014-03-03 20:20:19 +0530723 pinctrl-names = "default";
724 pinctrl-0 = <&mmc1_pins>;
725 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
Matt Porter55b44522013-09-10 14:24:39 -0500726};
Mark A. Greerf8302e12013-08-23 14:12:35 -0700727
Eyal Reizer52dfcbf2015-05-03 15:19:28 +0300728&mmc3 {
729 /* these are on the crossbar and are outlined in the
730 xbar-event-map element */
731 dmas = <&edma 12
732 &edma 13>;
733 dma-names = "tx", "rx";
734 status = "okay";
735 vmmc-supply = <&wlan_en_reg>;
736 bus-width = <4>;
737 pinctrl-names = "default";
738 pinctrl-0 = <&mmc3_pins &wlan_pins>;
739 ti,non-removable;
740 ti,needs-special-hs-handling;
741 cap-power-off-card;
742 keep-power-in-suspend;
743
744 #address-cells = <1>;
745 #size-cells = <0>;
746 wlcore: wlcore@0 {
747 compatible = "ti,wl1835";
748 reg = <2>;
749 interrupt-parent = <&gpio3>;
750 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
751 };
752};
753
754&edma {
755 ti,edma-xbar-event-map = /bits/ 16 <1 12
756 2 13>;
757};
758
Mark A. Greerf8302e12013-08-23 14:12:35 -0700759&sham {
760 status = "okay";
761};
Mark A. Greer99919e5e2013-08-23 14:12:36 -0700762
763&aes {
764 status = "okay";
765};
Roger Quadrosf80ecaf2014-10-29 17:52:57 +0200766
767&dcan1 {
768 status = "disabled"; /* Enable only if Profile 1 is selected */
769 pinctrl-names = "default";
770 pinctrl-0 = <&dcan1_pins_default>;
771};