Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / am437x-gp-evm.dts
1 /*
2  * Copyright (C) 2013 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 /* AM437x GP EVM */
10
11 /dts-v1/;
12
13 #include "am4372.dtsi"
14 #include <dt-bindings/pinctrl/am43xx.h>
15 #include <dt-bindings/pwm/pwm.h>
16 #include <dt-bindings/gpio/gpio.h>
17
18 / {
19         model = "TI AM437x GP EVM";
20         compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
21
22         aliases {
23                 display0 = &lcd0;
24         };
25
26         evm_v3_3d: fixedregulator-v3_3d {
27                 compatible = "regulator-fixed";
28                 regulator-name = "evm_v3_3d";
29                 regulator-min-microvolt = <3300000>;
30                 regulator-max-microvolt = <3300000>;
31                 enable-active-high;
32         };
33
34         vtt_fixed: fixedregulator-vtt {
35                 compatible = "regulator-fixed";
36                 regulator-name = "vtt_fixed";
37                 regulator-min-microvolt = <1500000>;
38                 regulator-max-microvolt = <1500000>;
39                 regulator-always-on;
40                 regulator-boot-on;
41                 enable-active-high;
42                 gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
43         };
44
45         vmmcwl_fixed: fixedregulator-mmcwl {
46                 compatible = "regulator-fixed";
47                 regulator-name = "vmmcwl_fixed";
48                 regulator-min-microvolt = <1800000>;
49                 regulator-max-microvolt = <1800000>;
50                 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
51                 enable-active-high;
52         };
53
54         backlight {
55                 compatible = "pwm-backlight";
56                 pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
57                 brightness-levels = <0 51 53 56 62 75 101 152 255>;
58                 default-brightness-level = <8>;
59         };
60
61         matrix_keypad: matrix_keypad@0 {
62                 compatible = "gpio-matrix-keypad";
63                 debounce-delay-ms = <5>;
64                 col-scan-delay-us = <2>;
65
66                 row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
67                                 &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
68                                 &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
69
70                 col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
71                                 &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
72
73                 linux,keymap = <0x00000201      /* P1 */
74                                 0x00010202      /* P2 */
75                                 0x01000067      /* UP */
76                                 0x0101006a      /* RIGHT */
77                                 0x02000069      /* LEFT */
78                                 0x0201006c>;      /* DOWN */
79                 };
80
81         lcd0: display {
82                 compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
83                 label = "lcd";
84
85                 panel-timing {
86                         clock-frequency = <33000000>;
87                         hactive = <800>;
88                         vactive = <480>;
89                         hfront-porch = <210>;
90                         hback-porch = <16>;
91                         hsync-len = <30>;
92                         vback-porch = <10>;
93                         vfront-porch = <22>;
94                         vsync-len = <13>;
95                         hsync-active = <0>;
96                         vsync-active = <0>;
97                         de-active = <1>;
98                         pixelclk-active = <1>;
99                 };
100
101                 port {
102                         lcd_in: endpoint {
103                                 remote-endpoint = <&dpi_out>;
104                         };
105                 };
106         };
107
108         /* fixed 12MHz oscillator */
109         refclk: oscillator {
110                 #clock-cells = <0>;
111                 compatible = "fixed-clock";
112                 clock-frequency = <12000000>;
113         };
114
115         /* fixed 32k external oscillator clock */
116         clk_32k_rtc: clk_32k_rtc {
117                 #clock-cells = <0>;
118                 compatible = "fixed-clock";
119                 clock-frequency = <32768>;
120         };
121
122         sound0: sound@0 {
123                 compatible = "simple-audio-card";
124                 simple-audio-card,name = "AM437x-GP-EVM";
125                 simple-audio-card,widgets =
126                         "Headphone", "Headphone Jack",
127                         "Line", "Line In";
128                 simple-audio-card,routing =
129                         "Headphone Jack",       "HPLOUT",
130                         "Headphone Jack",       "HPROUT",
131                         "LINE1L",               "Line In",
132                         "LINE1R",               "Line In";
133                 simple-audio-card,format = "dsp_b";
134                 simple-audio-card,bitclock-master = <&sound0_master>;
135                 simple-audio-card,frame-master = <&sound0_master>;
136                 simple-audio-card,bitclock-inversion;
137
138                 simple-audio-card,cpu {
139                         sound-dai = <&mcasp1>;
140                         system-clock-frequency = <12000000>;
141                 };
142
143                 sound0_master: simple-audio-card,codec {
144                         sound-dai = <&tlv320aic3106>;
145                         system-clock-frequency = <12000000>;
146                 };
147         };
148 };
149
150 &am43xx_pinmux {
151         pinctrl-names = "default", "sleep";
152         pinctrl-0 = <&wlan_pins_default>;
153         pinctrl-1 = <&wlan_pins_sleep>;
154
155         i2c0_pins: i2c0_pins {
156                 pinctrl-single,pins = <
157                         0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)  /* i2c0_sda.i2c0_sda */
158                         0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)  /* i2c0_scl.i2c0_scl */
159                 >;
160         };
161
162         i2c1_pins: i2c1_pins {
163                 pinctrl-single,pins = <
164                         0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2)  /* spi0_cs0.i2c1_scl */
165                         0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2)  /* spi0_d1.i2c1_sda  */
166                 >;
167         };
168
169         mmc1_pins: pinmux_mmc1_pins {
170                 pinctrl-single,pins = <
171                         0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
172                 >;
173         };
174
175         ecap0_pins: backlight_pins {
176                 pinctrl-single,pins = <
177                         0x164 MUX_MODE0       /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
178                 >;
179         };
180
181         pixcir_ts_pins: pixcir_ts_pins {
182                 pinctrl-single,pins = <
183                         0x264 (PIN_INPUT_PULLUP | MUX_MODE7)  /* spi2_d0.gpio3_22 */
184                 >;
185         };
186
187         cpsw_default: cpsw_default {
188                 pinctrl-single,pins = <
189                         /* Slave 1 */
190                         0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */
191                         0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxdv.rgmii1_rxctl */
192                         0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */
193                         0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */
194                         0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */
195                         0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */
196                         0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */
197                         0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxclk.rmii1_rclk */
198                         0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxd1.rgmii1_rxd3 */
199                         0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxd0.rgmii1_rxd2 */
200                         0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxd1.rgmii1_rxd1 */
201                         0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)  /* mii1_rxd0.rgmii1_rxd0 */
202                 >;
203         };
204
205         cpsw_sleep: cpsw_sleep {
206                 pinctrl-single,pins = <
207                         /* Slave 1 reset value */
208                         0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
209                         0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
210                         0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
211                         0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
212                         0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
213                         0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
214                         0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
215                         0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
216                         0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
217                         0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
218                         0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
219                         0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
220                 >;
221         };
222
223         davinci_mdio_default: davinci_mdio_default {
224                 pinctrl-single,pins = <
225                         /* MDIO */
226                         0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)    /* mdio_data.mdio_data */
227                         0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)                   /* mdio_clk.mdio_clk */
228                 >;
229         };
230
231         davinci_mdio_sleep: davinci_mdio_sleep {
232                 pinctrl-single,pins = <
233                         /* MDIO reset value */
234                         0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
235                         0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
236                 >;
237         };
238
239         nand_flash_x8: nand_flash_x8 {
240                 pinctrl-single,pins = <
241                         0x0  (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad0.gpmc_ad0 */
242                         0x4  (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad1.gpmc_ad1 */
243                         0x8  (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad2.gpmc_ad2 */
244                         0xc  (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad3.gpmc_ad3 */
245                         0x10 (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad4.gpmc_ad4 */
246                         0x14 (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad5.gpmc_ad5 */
247                         0x18 (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad6.gpmc_ad6 */
248                         0x1c (PIN_INPUT  | MUX_MODE0)   /* gpmc_ad7.gpmc_ad7 */
249                         0x70 (PIN_INPUT_PULLUP | MUX_MODE0)     /* gpmc_wait0.gpmc_wait0 */
250                         0x74 (PIN_OUTPUT_PULLUP | MUX_MODE7)    /* gpmc_wpn.gpmc_wpn */
251                         0x7c (PIN_OUTPUT | MUX_MODE0)           /* gpmc_csn0.gpmc_csn0  */
252                         0x90 (PIN_OUTPUT | MUX_MODE0)           /* gpmc_advn_ale.gpmc_advn_ale */
253                         0x94 (PIN_OUTPUT | MUX_MODE0)           /* gpmc_oen_ren.gpmc_oen_ren */
254                         0x98 (PIN_OUTPUT | MUX_MODE0)           /* gpmc_wen.gpmc_wen */
255                         0x9c (PIN_OUTPUT | MUX_MODE0)           /* gpmc_be0n_cle.gpmc_be0n_cle */
256                 >;
257         };
258
259         dss_pins: dss_pins {
260                 pinctrl-single,pins = <
261                         0x020 (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
262                         0x024 (PIN_OUTPUT_PULLUP | MUX_MODE1)
263                         0x028 (PIN_OUTPUT_PULLUP | MUX_MODE1)
264                         0x02c (PIN_OUTPUT_PULLUP | MUX_MODE1)
265                         0x030 (PIN_OUTPUT_PULLUP | MUX_MODE1)
266                         0x034 (PIN_OUTPUT_PULLUP | MUX_MODE1)
267                         0x038 (PIN_OUTPUT_PULLUP | MUX_MODE1)
268                         0x03c (PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
269                         0x0a0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
270                         0x0a4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
271                         0x0a8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
272                         0x0ac (PIN_OUTPUT_PULLUP | MUX_MODE0)
273                         0x0b0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
274                         0x0b4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
275                         0x0b8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
276                         0x0bc (PIN_OUTPUT_PULLUP | MUX_MODE0)
277                         0x0c0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
278                         0x0c4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
279                         0x0c8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
280                         0x0cc (PIN_OUTPUT_PULLUP | MUX_MODE0)
281                         0x0d0 (PIN_OUTPUT_PULLUP | MUX_MODE0)
282                         0x0d4 (PIN_OUTPUT_PULLUP | MUX_MODE0)
283                         0x0d8 (PIN_OUTPUT_PULLUP | MUX_MODE0)
284                         0x0dc (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
285                         0x0e0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
286                         0x0e4 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
287                         0x0e8 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
288                         0x0ec (PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
289
290                 >;
291         };
292
293         display_mux_pins: display_mux_pins {
294                 pinctrl-single,pins = <
295                         /* GPIO 5_8 to select LCD / HDMI */
296                         0x238 (PIN_OUTPUT_PULLUP | MUX_MODE7)
297                 >;
298         };
299
300         dcan0_default: dcan0_default_pins {
301                 pinctrl-single,pins = <
302                         0x178 (PIN_OUTPUT | MUX_MODE2)          /* uart1_ctsn.d_can0_tx */
303                         0x17c (PIN_INPUT_PULLUP | MUX_MODE2)    /* uart1_rtsn.d_can0_rx */
304                 >;
305         };
306
307         dcan1_default: dcan1_default_pins {
308                 pinctrl-single,pins = <
309                         0x180 (PIN_OUTPUT | MUX_MODE2)          /* uart1_rxd.d_can1_tx */
310                         0x184 (PIN_INPUT_PULLUP | MUX_MODE2)    /* uart1_txd.d_can1_rx */
311                 >;
312         };
313
314         vpfe0_pins_default: vpfe0_pins_default {
315                 pinctrl-single,pins = <
316                         0x1B0 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_hd mode 0*/
317                         0x1B4 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_vd mode 0*/
318                         0x1C0 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_pclk mode 0*/
319                         0x1C4 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data8 mode 0*/
320                         0x1C8 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data9 mode 0*/
321                         0x208 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data0 mode 0*/
322                         0x20C (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data1 mode 0*/
323                         0x210 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data2 mode 0*/
324                         0x214 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data3 mode 0*/
325                         0x218 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data4 mode 0*/
326                         0x21C (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data5 mode 0*/
327                         0x220 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data6 mode 0*/
328                         0x224 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam0_data7 mode 0*/
329                 >;
330         };
331
332         vpfe0_pins_sleep: vpfe0_pins_sleep {
333                 pinctrl-single,pins = <
334                         0x1B0 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_hd mode 0*/
335                         0x1B4 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_vd mode 0*/
336                         0x1C0 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_pclk mode 0*/
337                         0x1C4 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data8 mode 0*/
338                         0x1C8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data9 mode 0*/
339                         0x208 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data0 mode 0*/
340                         0x20C (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data1 mode 0*/
341                         0x210 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data2 mode 0*/
342                         0x214 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data3 mode 0*/
343                         0x218 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data4 mode 0*/
344                         0x21C (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data5 mode 0*/
345                         0x220 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data6 mode 0*/
346                         0x224 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam0_data7 mode 0*/
347                 >;
348         };
349
350         vpfe1_pins_default: vpfe1_pins_default {
351                 pinctrl-single,pins = <
352                         0x1CC (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data9 mode 0*/
353                         0x1D0 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data8 mode 0*/
354                         0x1D4 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_hd mode 0*/
355                         0x1D8 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_vd mode 0*/
356                         0x1DC (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_pclk mode 0*/
357                         0x1E8 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data0 mode 0*/
358                         0x1EC (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data1 mode 0*/
359                         0x1F0 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data2 mode 0*/
360                         0x1F4 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data3 mode 0*/
361                         0x1F8 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data4 mode 0*/
362                         0x1FC (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data5 mode 0*/
363                         0x200 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data6 mode 0*/
364                         0x204 (PIN_INPUT_PULLUP | MUX_MODE0)  /* cam1_data7 mode 0*/
365                 >;
366         };
367
368         vpfe1_pins_sleep: vpfe1_pins_sleep {
369                 pinctrl-single,pins = <
370                         0x1CC (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data9 mode 0*/
371                         0x1D0 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data8 mode 0*/
372                         0x1D4 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_hd mode 0*/
373                         0x1D8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_vd mode 0*/
374                         0x1DC (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_pclk mode 0*/
375                         0x1E8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data0 mode 0*/
376                         0x1EC (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data1 mode 0*/
377                         0x1F0 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data2 mode 0*/
378                         0x1F4 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data3 mode 0*/
379                         0x1F8 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data4 mode 0*/
380                         0x1FC (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data5 mode 0*/
381                         0x200 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data6 mode 0*/
382                         0x204 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7)  /* cam1_data7 mode 0*/
383                 >;
384         };
385
386         mmc3_pins_default: pinmux_mmc3_pins_default {
387                 pinctrl-single,pins = <
388                         0x8c (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_clk.mmc2_clk */
389                         0x88 (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_csn3.mmc2_cmd */
390                         0x44 (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_a1.mmc2_dat0 */
391                         0x48 (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_a2.mmc2_dat1 */
392                         0x4c (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_a3.mmc2_dat2 */
393                         0x78 (PIN_INPUT_PULLUP | MUX_MODE3)      /* gpmc_be1n.mmc2_dat3 */
394                 >;
395         };
396
397         mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
398                 pinctrl-single,pins = <
399                         0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_clk.mmc2_clk */
400                         0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_csn3.mmc2_cmd */
401                         0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_a1.mmc2_dat0 */
402                         0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_a2.mmc2_dat1 */
403                         0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_a3.mmc2_dat2 */
404                         0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7)   /* gpmc_be1n.mmc2_dat3 */
405                 >;
406         };
407
408         wlan_pins_default: pinmux_wlan_pins_default {
409                 pinctrl-single,pins = <
410                         0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)          /* gpmc_a4.gpio1_20 WL_EN */
411                         0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)    /* gpmc_a7.gpio1_23 WL_IRQ*/
412                         0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)          /* gpmc_a0.gpio1_16 BT_EN*/
413                 >;
414         };
415
416         wlan_pins_sleep: pinmux_wlan_pins_sleep {
417                 pinctrl-single,pins = <
418                         0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)          /* gpmc_a4.gpio1_20 WL_EN */
419                         0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)    /* gpmc_a7.gpio1_23 WL_IRQ*/
420                         0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)            /* gpmc_a0.gpio1_16 BT_EN*/
421                 >;
422         };
423
424         uart3_pins: uart3_pins {
425                 pinctrl-single,pins = <
426                         0x228 (PIN_INPUT | MUX_MODE0)           /* uart3_rxd.uart3_rxd */
427                         0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */
428                         0x230 (PIN_INPUT_PULLUP | MUX_MODE0)    /* uart3_ctsn.uart3_ctsn */
429                         0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */
430                 >;
431         };
432
433         mcasp1_pins: mcasp1_pins {
434                 pinctrl-single,pins = <
435                         0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
436                         0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* mii1_crs.mcasp1_aclkx */
437                         0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* mii1_rxerr.mcasp1_fsx */
438                         0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4)  /* rmii1_ref_clk.mcasp1_axr3 */
439                 >;
440         };
441
442         mcasp1_sleep_pins: mcasp1_sleep_pins {
443                 pinctrl-single,pins = <
444                         0x108 (PIN_INPUT_PULLDOWN | MUX_MODE7)
445                         0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
446                         0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
447                         0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
448                 >;
449         };
450
451         gpio0_pins: gpio0_pins {
452                 pinctrl-single,pins = <
453                         0x26c (PIN_OUTPUT | MUX_MODE9) /* spi2_cs0.gpio0_23 SEL_eMMCorNANDn */
454                 >;
455         };
456
457         emmc_pins_default: emmc_pins_default {
458                 pinctrl-single,pins = <
459                         0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
460                         0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
461                         0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
462                         0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
463                         0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
464                         0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
465                         0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
466                         0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
467                         0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
468                         0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
469                 >;
470         };
471
472         emmc_pins_sleep: emmc_pins_sleep {
473                 pinctrl-single,pins = <
474                         0x00 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad0.gpio1_0 */
475                         0x04 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad1.gpio1_1 */
476                         0x08 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad2.gpio1_2 */
477                         0x0c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad3.gpio1_3 */
478                         0x10 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */
479                         0x14 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */
480                         0x18 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */
481                         0x1c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */
482                         0x80 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn1.gpio1_30 */
483                         0x84 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn2.gpio1_31 */
484                 >;
485         };
486 };
487
488 &i2c0 {
489         status = "okay";
490         pinctrl-names = "default";
491         pinctrl-0 = <&i2c0_pins>;
492         clock-frequency = <100000>;
493
494         tps65218: tps65218@24 {
495                 reg = <0x24>;
496                 compatible = "ti,tps65218";
497                 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
498                 interrupt-controller;
499                 #interrupt-cells = <2>;
500
501                 dcdc1: regulator-dcdc1 {
502                         compatible = "ti,tps65218-dcdc1";
503                         regulator-name = "vdd_core";
504                         regulator-min-microvolt = <912000>;
505                         regulator-max-microvolt = <1144000>;
506                         regulator-boot-on;
507                         regulator-always-on;
508                 };
509
510                 dcdc2: regulator-dcdc2 {
511                         compatible = "ti,tps65218-dcdc2";
512                         regulator-name = "vdd_mpu";
513                         regulator-min-microvolt = <912000>;
514                         regulator-max-microvolt = <1378000>;
515                         regulator-boot-on;
516                         regulator-always-on;
517                 };
518
519                 dcdc3: regulator-dcdc3 {
520                         compatible = "ti,tps65218-dcdc3";
521                         regulator-name = "vdcdc3";
522                         regulator-min-microvolt = <1500000>;
523                         regulator-max-microvolt = <1500000>;
524                         regulator-boot-on;
525                         regulator-always-on;
526                 };
527                 dcdc5: regulator-dcdc5 {
528                         compatible = "ti,tps65218-dcdc5";
529                         regulator-name = "v1_0bat";
530                         regulator-min-microvolt = <1000000>;
531                         regulator-max-microvolt = <1000000>;
532                         regulator-boot-on;
533                         regulator-always-on;
534                 };
535
536                 dcdc6: regulator-dcdc6 {
537                         compatible = "ti,tps65218-dcdc6";
538                         regulator-name = "v1_8bat";
539                         regulator-min-microvolt = <1800000>;
540                         regulator-max-microvolt = <1800000>;
541                         regulator-boot-on;
542                         regulator-always-on;
543                 };
544
545                 ldo1: regulator-ldo1 {
546                         compatible = "ti,tps65218-ldo1";
547                         regulator-min-microvolt = <1800000>;
548                         regulator-max-microvolt = <1800000>;
549                         regulator-boot-on;
550                         regulator-always-on;
551                 };
552         };
553
554         ov2659@30 {
555                 compatible = "ovti,ov2659";
556                 reg = <0x30>;
557
558                 clocks = <&refclk 0>;
559                 clock-names = "xvclk";
560
561                 port {
562                         ov2659_0: endpoint {
563                                 remote-endpoint = <&vpfe1_ep>;
564                                 link-frequencies = /bits/ 64 <70000000>;
565                         };
566                 };
567         };
568 };
569
570 &i2c1 {
571         status = "okay";
572         pinctrl-names = "default";
573         pinctrl-0 = <&i2c1_pins>;
574         pixcir_ts@5c {
575                 compatible = "pixcir,pixcir_tangoc";
576                 pinctrl-names = "default";
577                 pinctrl-0 = <&pixcir_ts_pins>;
578                 reg = <0x5c>;
579                 interrupt-parent = <&gpio3>;
580                 interrupts = <22 0>;
581
582                 attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
583
584                 touchscreen-size-x = <1024>;
585                 touchscreen-size-y = <600>;
586         };
587
588         ov2659@30 {
589                 compatible = "ovti,ov2659";
590                 reg = <0x30>;
591
592                 clocks = <&refclk 0>;
593                 clock-names = "xvclk";
594
595                 port {
596                         ov2659_1: endpoint {
597                                 remote-endpoint = <&vpfe0_ep>;
598                                 link-frequencies = /bits/ 64 <70000000>;
599                         };
600                 };
601         };
602
603         tlv320aic3106: tlv320aic3106@1b {
604                 #sound-dai-cells = <0>;
605                 compatible = "ti,tlv320aic3106";
606                 reg = <0x1b>;
607                 status = "okay";
608
609                 /* Regulators */
610                 IOVDD-supply = <&evm_v3_3d>; /* V3_3D -> <tps63031> EN: V1_8D -> VBAT */
611                 AVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
612                 DRVDD-supply = <&evm_v3_3d>; /* v3_3AUD -> V3_3D -> ... */
613                 DVDD-supply = <&ldo1>; /* V1_8D -> LDO1 */
614         };
615 };
616
617 &epwmss0 {
618         status = "okay";
619 };
620
621 &tscadc {
622         status = "okay";
623
624         adc {
625                 ti,adc-channels = <0 1 2 3 4 5 6 7>;
626         };
627 };
628
629 &ecap0 {
630         status = "okay";
631         pinctrl-names = "default";
632         pinctrl-0 = <&ecap0_pins>;
633 };
634
635 &gpio0 {
636         pinctrl-names = "default";
637         pinctrl-0 = <&gpio0_pins>;
638         status = "okay";
639
640         p23 {
641                 gpio-hog;
642                 gpios = <23 GPIO_ACTIVE_HIGH>;
643                 /* SelEMMCorNAND selects between eMMC and NAND:
644                  * Low: NAND
645                  * High: eMMC
646                  * When changing this line make sure the newly
647                  * selected device node is enabled and the previously
648                  * selected device node is disabled.
649                  */
650                 output-low;
651                 line-name = "SelEMMCorNAND";
652         };
653 };
654
655 &gpio1 {
656         status = "okay";
657 };
658
659 &gpio3 {
660         status = "okay";
661 };
662
663 &gpio4 {
664         status = "okay";
665 };
666
667 &gpio5 {
668         pinctrl-names = "default";
669         pinctrl-0 = <&display_mux_pins>;
670         status = "okay";
671         ti,no-reset-on-init;
672
673         p8 {
674                 /*
675                  * SelLCDorHDMI selects between display and audio paths:
676                  * Low: HDMI display with audio via HDMI
677                  * High: LCD display with analog audio via aic3111 codec
678                  */
679                 gpio-hog;
680                 gpios = <8 GPIO_ACTIVE_HIGH>;
681                 output-high;
682                 line-name = "SelLCDorHDMI";
683         };
684 };
685
686 &mmc1 {
687         status = "okay";
688         vmmc-supply = <&evm_v3_3d>;
689         bus-width = <4>;
690         pinctrl-names = "default";
691         pinctrl-0 = <&mmc1_pins>;
692         cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
693 };
694
695 /* eMMC sits on mmc2 */
696 &mmc2 {
697         /*
698          * When enabling eMMC, disable GPMC/NAND and set
699          * SelEMMCorNAND to output-high
700          */
701         status = "disabled";
702         vmmc-supply = <&evm_v3_3d>;
703         bus-width = <8>;
704         pinctrl-names = "default", "sleep";
705         pinctrl-0 = <&emmc_pins_default>;
706         pinctrl-1 = <&emmc_pins_sleep>;
707         ti,non-removable;
708 };
709
710 &mmc3 {
711         status = "okay";
712         /* these are on the crossbar and are outlined in the
713            xbar-event-map element */
714         dmas = <&edma 30
715                 &edma 31>;
716         dma-names = "tx", "rx";
717         vmmc-supply = <&vmmcwl_fixed>;
718         bus-width = <4>;
719         pinctrl-names = "default", "sleep";
720         pinctrl-0 = <&mmc3_pins_default>;
721         pinctrl-1 = <&mmc3_pins_sleep>;
722         cap-power-off-card;
723         keep-power-in-suspend;
724         ti,non-removable;
725
726         #address-cells = <1>;
727         #size-cells = <0>;
728         wlcore: wlcore@0 {
729                 compatible = "ti,wl1835";
730                 reg = <2>;
731                 interrupt-parent = <&gpio1>;
732                 interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
733         };
734 };
735
736 &edma {
737         ti,edma-xbar-event-map = /bits/ 16 <1 30
738                                             2 31>;
739 };
740
741 &uart3 {
742         status = "okay";
743         pinctrl-names = "default";
744         pinctrl-0 = <&uart3_pins>;
745 };
746
747 &usb2_phy1 {
748         status = "okay";
749 };
750
751 &usb1 {
752         dr_mode = "peripheral";
753         status = "okay";
754 };
755
756 &usb2_phy2 {
757         status = "okay";
758 };
759
760 &usb2 {
761         dr_mode = "host";
762         status = "okay";
763 };
764
765 &mac {
766         slaves = <1>;
767         pinctrl-names = "default", "sleep";
768         pinctrl-0 = <&cpsw_default>;
769         pinctrl-1 = <&cpsw_sleep>;
770         status = "okay";
771 };
772
773 &davinci_mdio {
774         pinctrl-names = "default", "sleep";
775         pinctrl-0 = <&davinci_mdio_default>;
776         pinctrl-1 = <&davinci_mdio_sleep>;
777         status = "okay";
778 };
779
780 &cpsw_emac0 {
781         phy_id = <&davinci_mdio>, <0>;
782         phy-mode = "rgmii";
783 };
784
785 &elm {
786         status = "okay";
787 };
788
789 &gpmc {
790         /*
791          * When enabling GPMC, disable eMMC and set
792          * SelEMMCorNAND to output-low
793          */
794         status = "okay";
795         pinctrl-names = "default";
796         pinctrl-0 = <&nand_flash_x8>;
797         ranges = <0 0 0 0x01000000>;    /* minimum GPMC partition = 16MB */
798         nand@0,0 {
799                 reg = <0 0 4>;          /* device IO registers */
800                 ti,nand-ecc-opt = "bch16";
801                 ti,elm-id = <&elm>;
802                 nand-bus-width = <8>;
803                 gpmc,device-width = <1>;
804                 gpmc,sync-clk-ps = <0>;
805                 gpmc,cs-on-ns = <0>;
806                 gpmc,cs-rd-off-ns = <40>;
807                 gpmc,cs-wr-off-ns = <40>;
808                 gpmc,adv-on-ns = <0>;
809                 gpmc,adv-rd-off-ns = <25>;
810                 gpmc,adv-wr-off-ns = <25>;
811                 gpmc,we-on-ns = <0>;
812                 gpmc,we-off-ns = <20>;
813                 gpmc,oe-on-ns = <3>;
814                 gpmc,oe-off-ns = <30>;
815                 gpmc,access-ns = <30>;
816                 gpmc,rd-cycle-ns = <40>;
817                 gpmc,wr-cycle-ns = <40>;
818                 gpmc,wait-pin = <0>;
819                 gpmc,bus-turnaround-ns = <0>;
820                 gpmc,cycle2cycle-delay-ns = <0>;
821                 gpmc,clk-activation-ns = <0>;
822                 gpmc,wait-monitoring-ns = <0>;
823                 gpmc,wr-access-ns = <40>;
824                 gpmc,wr-data-mux-bus-ns = <0>;
825                 /* MTD partition table */
826                 /* All SPL-* partitions are sized to minimal length
827                  * which can be independently programmable. For
828                  * NAND flash this is equal to size of erase-block */
829                 #address-cells = <1>;
830                 #size-cells = <1>;
831                 partition@0 {
832                         label = "NAND.SPL";
833                         reg = <0x00000000 0x00040000>;
834                 };
835                 partition@1 {
836                         label = "NAND.SPL.backup1";
837                         reg = <0x00040000 0x00040000>;
838                 };
839                 partition@2 {
840                         label = "NAND.SPL.backup2";
841                         reg = <0x00080000 0x00040000>;
842                 };
843                 partition@3 {
844                         label = "NAND.SPL.backup3";
845                         reg = <0x000c0000 0x00040000>;
846                 };
847                 partition@4 {
848                         label = "NAND.u-boot-spl-os";
849                         reg = <0x00100000 0x00080000>;
850                 };
851                 partition@5 {
852                         label = "NAND.u-boot";
853                         reg = <0x00180000 0x00100000>;
854                 };
855                 partition@6 {
856                         label = "NAND.u-boot-env";
857                         reg = <0x00280000 0x00040000>;
858                 };
859                 partition@7 {
860                         label = "NAND.u-boot-env.backup1";
861                         reg = <0x002c0000 0x00040000>;
862                 };
863                 partition@8 {
864                         label = "NAND.kernel";
865                         reg = <0x00300000 0x00700000>;
866                 };
867                 partition@9 {
868                         label = "NAND.file-system";
869                         reg = <0x00a00000 0x1f600000>;
870                 };
871         };
872 };
873
874 &dss {
875         status = "ok";
876
877         pinctrl-names = "default";
878         pinctrl-0 = <&dss_pins>;
879
880         port {
881                 dpi_out: endpoint@0 {
882                         remote-endpoint = <&lcd_in>;
883                         data-lines = <24>;
884                 };
885         };
886 };
887
888 &dcan0 {
889         pinctrl-names = "default";
890         pinctrl-0 = <&dcan0_default>;
891         status = "okay";
892 };
893
894 &dcan1 {
895         pinctrl-names = "default";
896         pinctrl-0 = <&dcan1_default>;
897         status = "okay";
898 };
899
900 &vpfe0 {
901         status = "okay";
902         pinctrl-names = "default", "sleep";
903         pinctrl-0 = <&vpfe0_pins_default>;
904         pinctrl-1 = <&vpfe0_pins_sleep>;
905
906         port {
907                 vpfe0_ep: endpoint {
908                         remote-endpoint = <&ov2659_1>;
909                         ti,am437x-vpfe-interface = <0>;
910                         bus-width = <8>;
911                         hsync-active = <0>;
912                         vsync-active = <0>;
913                 };
914         };
915 };
916
917 &vpfe1 {
918         status = "okay";
919         pinctrl-names = "default", "sleep";
920         pinctrl-0 = <&vpfe1_pins_default>;
921         pinctrl-1 = <&vpfe1_pins_sleep>;
922
923         port {
924                 vpfe1_ep: endpoint {
925                         remote-endpoint = <&ov2659_0>;
926                         ti,am437x-vpfe-interface = <0>;
927                         bus-width = <8>;
928                         hsync-active = <0>;
929                         vsync-active = <0>;
930                 };
931         };
932 };
933
934 &mcasp1 {
935         #sound-dai-cells = <0>;
936         pinctrl-names = "default", "sleep";
937         pinctrl-0 = <&mcasp1_pins>;
938         pinctrl-1 = <&mcasp1_sleep_pins>;
939
940         status = "okay";
941
942         op-mode = <0>; /* MCASP_IIS_MODE */
943         tdm-slots = <2>;
944         /* 4 serializers */
945         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
946                 0 0 1 2
947         >;
948         tx-num-evt = <32>;
949         rx-num-evt = <32>;
950 };
951
952 &rtc {
953         clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
954         clock-names = "ext-clk", "int-clk";
955         status = "okay";
956 };