GNU Linux-libre 4.4.284-gnu1
[releases.git] / arch / arm / boot / dts / am57xx-beagle-x15.dts
1 /*
2  * Copyright (C) 2014 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
10 #include "dra74x.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13
14 / {
15         model = "TI AM5728 BeagleBoard-X15";
16         compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
17
18         aliases {
19                 rtc0 = &mcp_rtc;
20                 rtc1 = &tps659038_rtc;
21                 rtc2 = &rtc;
22                 display0 = &hdmi0;
23         };
24
25         memory {
26                 device_type = "memory";
27                 reg = <0x80000000 0x80000000>;
28         };
29
30         vdd_3v3: fixedregulator-vdd_3v3 {
31                 compatible = "regulator-fixed";
32                 regulator-name = "vdd_3v3";
33                 vin-supply = <&regen1>;
34                 regulator-min-microvolt = <3300000>;
35                 regulator-max-microvolt = <3300000>;
36         };
37
38         aic_dvdd: fixedregulator-aic_dvdd {
39                 compatible = "regulator-fixed";
40                 regulator-name = "aic_dvdd_fixed";
41                 vin-supply = <&vdd_3v3>;
42                 regulator-min-microvolt = <1800000>;
43                 regulator-max-microvolt = <1800000>;
44         };
45
46         vtt_fixed: fixedregulator-vtt {
47                 /* TPS51200 */
48                 compatible = "regulator-fixed";
49                 regulator-name = "vtt_fixed";
50                 vin-supply = <&smps3_reg>;
51                 regulator-min-microvolt = <3300000>;
52                 regulator-max-microvolt = <3300000>;
53                 regulator-always-on;
54                 regulator-boot-on;
55                 enable-active-high;
56                 gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
57         };
58
59         leds {
60                 compatible = "gpio-leds";
61                 pinctrl-names = "default";
62                 pinctrl-0 = <&leds_pins_default>;
63
64                 led@0 {
65                         label = "beagle-x15:usr0";
66                         gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
67                         linux,default-trigger = "heartbeat";
68                         default-state = "off";
69                 };
70
71                 led@1 {
72                         label = "beagle-x15:usr1";
73                         gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
74                         linux,default-trigger = "cpu0";
75                         default-state = "off";
76                 };
77
78                 led@2 {
79                         label = "beagle-x15:usr2";
80                         gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>;
81                         linux,default-trigger = "mmc0";
82                         default-state = "off";
83                 };
84
85                 led@3 {
86                         label = "beagle-x15:usr3";
87                         gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
88                         linux,default-trigger = "ide-disk";
89                         default-state = "off";
90                 };
91         };
92
93         gpio_fan: gpio_fan {
94                 /* Based on 5v 500mA AFB02505HHB */
95                 compatible = "gpio-fan";
96                 gpios =  <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
97                 gpio-fan,speed-map = <0     0>,
98                                      <13000 1>;
99                 #cooling-cells = <2>;
100         };
101
102         extcon_usb1: extcon_usb1 {
103                 compatible = "linux,extcon-usb-gpio";
104                 id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
105                 pinctrl-names = "default";
106                 pinctrl-0 = <&extcon_usb1_pins>;
107         };
108
109         hdmi0: connector {
110                 compatible = "hdmi-connector";
111                 label = "hdmi";
112
113                 type = "a";
114
115                 port {
116                         hdmi_connector_in: endpoint {
117                                 remote-endpoint = <&tpd12s015_out>;
118                         };
119                 };
120         };
121
122         tpd12s015: encoder {
123                 compatible = "ti,tpd12s015";
124
125                 pinctrl-names = "default";
126                 pinctrl-0 = <&tpd12s015_pins>;
127
128                 gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>,   /* gpio7_10, CT CP HPD */
129                         <&gpio6 28 GPIO_ACTIVE_HIGH>,   /* gpio6_28, LS OE */
130                         <&gpio7 12 GPIO_ACTIVE_HIGH>;   /* gpio7_12/sp1_cs2, HPD */
131
132                 ports {
133                         #address-cells = <1>;
134                         #size-cells = <0>;
135
136                         port@0 {
137                                 reg = <0>;
138
139                                 tpd12s015_in: endpoint {
140                                         remote-endpoint = <&hdmi_out>;
141                                 };
142                         };
143
144                         port@1 {
145                                 reg = <1>;
146
147                                 tpd12s015_out: endpoint {
148                                         remote-endpoint = <&hdmi_connector_in>;
149                                 };
150                         };
151                 };
152         };
153
154         sound0: sound@0 {
155                 compatible = "simple-audio-card";
156                 simple-audio-card,name = "BeagleBoard-X15";
157                 simple-audio-card,widgets =
158                         "Line", "Line Out",
159                         "Line", "Line In";
160                 simple-audio-card,routing =
161                         "Line Out",     "LLOUT",
162                         "Line Out",     "RLOUT",
163                         "MIC2L",        "Line In",
164                         "MIC2R",        "Line In";
165                 simple-audio-card,format = "dsp_b";
166                 simple-audio-card,bitclock-master = <&sound0_master>;
167                 simple-audio-card,frame-master = <&sound0_master>;
168                 simple-audio-card,bitclock-inversion;
169
170                 simple-audio-card,cpu {
171                         sound-dai = <&mcasp3>;
172                 };
173
174                 sound0_master: simple-audio-card,codec {
175                         sound-dai = <&tlv320aic3104>;
176                         clocks = <&clkout2_clk>;
177                 };
178         };
179 };
180
181 &dra7_pmx_core {
182         leds_pins_default: leds_pins_default {
183                 pinctrl-single,pins = <
184                         0x3a8 (PIN_OUTPUT | MUX_MODE14) /* spi1_d1.gpio7_8 */
185                         0x3ac (PIN_OUTPUT | MUX_MODE14) /* spi1_d0.gpio7_9 */
186                         0x3c0 (PIN_OUTPUT | MUX_MODE14) /* spi2_sclk.gpio7_14 */
187                         0x3c4 (PIN_OUTPUT | MUX_MODE14) /* spi2_d1.gpio7_15 */
188                 >;
189         };
190
191         i2c1_pins_default: i2c1_pins_default {
192                 pinctrl-single,pins = <
193                         0x400 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_sda.sda */
194                         0x404 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_scl.scl */
195                 >;
196         };
197
198         hdmi_pins: pinmux_hdmi_pins {
199                 pinctrl-single,pins = <
200                         0x408 (PIN_INPUT | MUX_MODE1)   /* i2c2_sda.hdmi1_ddc_scl */
201                         0x40c (PIN_INPUT | MUX_MODE1)   /* i2c2_scl.hdmi1_ddc_sda */
202                 >;
203         };
204
205         i2c3_pins_default: i2c3_pins_default {
206                 pinctrl-single,pins = <
207                         0x2a4 (PIN_INPUT| MUX_MODE10)   /* mcasp1_aclkx.i2c3_sda */
208                         0x2a8 (PIN_INPUT| MUX_MODE10)   /* mcasp1_fsx.i2c3_scl */
209                 >;
210         };
211
212         uart3_pins_default: uart3_pins_default {
213                 pinctrl-single,pins = <
214                         0x3f8 (PIN_INPUT_SLEW | MUX_MODE2) /* uart2_ctsn.uart3_rxd */
215                         0x3fc (PIN_INPUT_SLEW | MUX_MODE1) /* uart2_rtsn.uart3_txd */
216                 >;
217         };
218
219         mmc1_pins_default: mmc1_pins_default {
220                 pinctrl-single,pins = <
221                         0x36c (PIN_INPUT | MUX_MODE14)  /* mmc1sdcd.gpio219 */
222                         0x354 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
223                         0x358 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
224                         0x35c (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
225                         0x360 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
226                         0x364 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
227                         0x368 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
228                 >;
229         };
230
231         mmc2_pins_default: mmc2_pins_default {
232                 pinctrl-single,pins = <
233                         0x9c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */
234                         0xb0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */
235                         0xa0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */
236                         0xa4 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */
237                         0xa8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */
238                         0xac (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */
239                         0x8c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */
240                         0x90 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */
241                         0x94 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */
242                         0x98 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */
243                 >;
244         };
245
246         cpsw_pins_default: cpsw_pins_default {
247                 pinctrl-single,pins = <
248                         /* Slave 1 */
249                         0x250 (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_tclk */
250                         0x254 (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_tctl */
251                         0x258 (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_td3 */
252                         0x25c (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_td2 */
253                         0x260 (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_td1 */
254                         0x264 (PIN_OUTPUT | MUX_MODE0)  /* rgmii1_td0 */
255                         0x268 (PIN_INPUT | MUX_MODE0)   /* rgmii1_rclk */
256                         0x26c (PIN_INPUT | MUX_MODE0)   /* rgmii1_rctl */
257                         0x270 (PIN_INPUT | MUX_MODE0)   /* rgmii1_rd3 */
258                         0x274 (PIN_INPUT | MUX_MODE0)   /* rgmii1_rd2 */
259                         0x278 (PIN_INPUT | MUX_MODE0)   /* rgmii1_rd1 */
260                         0x27c (PIN_INPUT | MUX_MODE0)   /* rgmii1_rd0 */
261
262                         /* Slave 2 */
263                         0x198 (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_tclk */
264                         0x19c (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_tctl */
265                         0x1a0 (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_td3 */
266                         0x1a4 (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_td2 */
267                         0x1a8 (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_td1 */
268                         0x1ac (PIN_OUTPUT | MUX_MODE3)  /* rgmii2_td0 */
269                         0x1b0 (PIN_INPUT | MUX_MODE3)   /* rgmii2_rclk */
270                         0x1b4 (PIN_INPUT | MUX_MODE3)   /* rgmii2_rctl */
271                         0x1b8 (PIN_INPUT | MUX_MODE3)   /* rgmii2_rd3 */
272                         0x1bc (PIN_INPUT | MUX_MODE3)   /* rgmii2_rd2 */
273                         0x1c0 (PIN_INPUT | MUX_MODE3)   /* rgmii2_rd1 */
274                         0x1c4 (PIN_INPUT | MUX_MODE3)   /* rgmii2_rd0 */
275                 >;
276
277         };
278
279         cpsw_pins_sleep: cpsw_pins_sleep {
280                 pinctrl-single,pins = <
281                         /* Slave 1 */
282                         0x250 (PIN_INPUT | MUX_MODE15)
283                         0x254 (PIN_INPUT | MUX_MODE15)
284                         0x258 (PIN_INPUT | MUX_MODE15)
285                         0x25c (PIN_INPUT | MUX_MODE15)
286                         0x260 (PIN_INPUT | MUX_MODE15)
287                         0x264 (PIN_INPUT | MUX_MODE15)
288                         0x268 (PIN_INPUT | MUX_MODE15)
289                         0x26c (PIN_INPUT | MUX_MODE15)
290                         0x270 (PIN_INPUT | MUX_MODE15)
291                         0x274 (PIN_INPUT | MUX_MODE15)
292                         0x278 (PIN_INPUT | MUX_MODE15)
293                         0x27c (PIN_INPUT | MUX_MODE15)
294
295                         /* Slave 2 */
296                         0x198 (PIN_INPUT | MUX_MODE15)
297                         0x19c (PIN_INPUT | MUX_MODE15)
298                         0x1a0 (PIN_INPUT | MUX_MODE15)
299                         0x1a4 (PIN_INPUT | MUX_MODE15)
300                         0x1a8 (PIN_INPUT | MUX_MODE15)
301                         0x1ac (PIN_INPUT | MUX_MODE15)
302                         0x1b0 (PIN_INPUT | MUX_MODE15)
303                         0x1b4 (PIN_INPUT | MUX_MODE15)
304                         0x1b8 (PIN_INPUT | MUX_MODE15)
305                         0x1bc (PIN_INPUT | MUX_MODE15)
306                         0x1c0 (PIN_INPUT | MUX_MODE15)
307                         0x1c4 (PIN_INPUT | MUX_MODE15)
308                 >;
309         };
310
311         davinci_mdio_pins_default: davinci_mdio_pins_default {
312                 pinctrl-single,pins = <
313                         /* MDIO */
314                         0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0)   /* mdio_mclk */
315                         0x240 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mdio_d */
316                 >;
317         };
318
319         davinci_mdio_pins_sleep: davinci_mdio_pins_sleep {
320                 pinctrl-single,pins = <
321                         0x23c (PIN_INPUT | MUX_MODE15)
322                         0x240 (PIN_INPUT | MUX_MODE15)
323                 >;
324         };
325
326         tps659038_pins_default: tps659038_pins_default {
327                 pinctrl-single,pins = <
328                         0x418 (PIN_INPUT_PULLUP | MUX_MODE14)   /* wakeup0.gpio1_0 */
329                 >;
330         };
331
332         tmp102_pins_default: tmp102_pins_default {
333                 pinctrl-single,pins = <
334                         0x3C8 (PIN_INPUT_PULLUP | MUX_MODE14)   /* spi2_d0.gpio7_16 */
335                 >;
336         };
337
338         mcp79410_pins_default: mcp79410_pins_default {
339                 pinctrl-single,pins = <
340                         0x424 (PIN_INPUT_PULLUP | MUX_MODE1)    /* wakeup3.sys_nirq1 */
341                 >;
342         };
343
344         usb1_pins: pinmux_usb1_pins {
345                 pinctrl-single,pins = <
346                         0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
347                 >;
348         };
349
350         extcon_usb1_pins: extcon_usb1_pins {
351                 pinctrl-single,pins = <
352                         0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */
353                 >;
354         };
355
356         tpd12s015_pins: pinmux_tpd12s015_pins {
357                 pinctrl-single,pins = <
358                         0x3b0 (PIN_OUTPUT | MUX_MODE14)         /* gpio7_10 CT_CP_HPD */
359                         0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */
360                         0x370 (PIN_OUTPUT | MUX_MODE14)         /* gpio6_28 LS_OE */
361                 >;
362         };
363
364         clkout2_pins_default: clkout2_pins_default {
365                 pinctrl-single,pins = <
366                         0x294 (PIN_OUTPUT_PULLDOWN | MUX_MODE9) /* xref_clk0.clkout2 */
367                 >;
368         };
369
370         clkout2_pins_sleep: clkout2_pins_sleep {
371                 pinctrl-single,pins = <
372                         0x294 (PIN_INPUT | MUX_MODE15)  /* xref_clk0.clkout2 */
373                 >;
374         };
375
376         mcasp3_pins_default: mcasp3_pins_default {
377                 pinctrl-single,pins = <
378                         0x324 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_aclkx.mcasp3_aclkx */
379                         0x328 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_fsx.mcasp3_fsx */
380                         0x32c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr0.mcasp3_axr0 */
381                         0x330 (PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp3_axr1.mcasp3_axr1 */
382                 >;
383         };
384
385         mcasp3_pins_sleep: mcasp3_pins_sleep {
386                 pinctrl-single,pins = <
387                         0x324 (PIN_INPUT | MUX_MODE15)
388                         0x328 (PIN_INPUT | MUX_MODE15)
389                         0x32c (PIN_INPUT | MUX_MODE15)
390                         0x330 (PIN_INPUT | MUX_MODE15)
391                 >;
392         };
393 };
394
395 &i2c1 {
396         status = "okay";
397         pinctrl-names = "default";
398         pinctrl-0 = <&i2c1_pins_default>;
399         clock-frequency = <400000>;
400
401         tps659038: tps659038@58 {
402                 compatible = "ti,tps659038";
403                 reg = <0x58>;
404                 interrupt-parent = <&gpio1>;
405                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
406
407                 pinctrl-names = "default";
408                 pinctrl-0 = <&tps659038_pins_default>;
409
410                 #interrupt-cells = <2>;
411                 interrupt-controller;
412
413                 ti,system-power-controller;
414                 ti,palmas-override-powerhold;
415
416                 tps659038_pmic {
417                         compatible = "ti,tps659038-pmic";
418
419                         regulators {
420                                 smps12_reg: smps12 {
421                                         /* VDD_MPU */
422                                         regulator-name = "smps12";
423                                         regulator-min-microvolt = < 850000>;
424                                         regulator-max-microvolt = <1250000>;
425                                         regulator-always-on;
426                                         regulator-boot-on;
427                                 };
428
429                                 smps3_reg: smps3 {
430                                         /* VDD_DDR */
431                                         regulator-name = "smps3";
432                                         regulator-min-microvolt = <1350000>;
433                                         regulator-max-microvolt = <1350000>;
434                                         regulator-always-on;
435                                         regulator-boot-on;
436                                 };
437
438                                 smps45_reg: smps45 {
439                                         /* VDD_DSPEVE, VDD_IVA, VDD_GPU */
440                                         regulator-name = "smps45";
441                                         regulator-min-microvolt = < 850000>;
442                                         regulator-max-microvolt = <1150000>;
443                                         regulator-always-on;
444                                         regulator-boot-on;
445                                 };
446
447                                 smps6_reg: smps6 {
448                                         /* VDD_CORE */
449                                         regulator-name = "smps6";
450                                         regulator-min-microvolt = <850000>;
451                                         regulator-max-microvolt = <1030000>;
452                                         regulator-always-on;
453                                         regulator-boot-on;
454                                 };
455
456                                 /* SMPS7 unused */
457
458                                 smps8_reg: smps8 {
459                                         /* VDD_1V8 */
460                                         regulator-name = "smps8";
461                                         regulator-min-microvolt = <1800000>;
462                                         regulator-max-microvolt = <1800000>;
463                                         regulator-always-on;
464                                         regulator-boot-on;
465                                 };
466
467                                 /* SMPS9 unused */
468
469                                 ldo1_reg: ldo1 {
470                                         /* VDD_SD / VDDSHV8  */
471                                         regulator-name = "ldo1";
472                                         regulator-min-microvolt = <1800000>;
473                                         regulator-max-microvolt = <3300000>;
474                                         regulator-boot-on;
475                                         regulator-always-on;
476                                 };
477
478                                 ldo2_reg: ldo2 {
479                                         /* VDD_SHV5 */
480                                         regulator-name = "ldo2";
481                                         regulator-min-microvolt = <3300000>;
482                                         regulator-max-microvolt = <3300000>;
483                                         regulator-always-on;
484                                         regulator-boot-on;
485                                 };
486
487                                 ldo3_reg: ldo3 {
488                                         /* VDDA_1V8_PHYA */
489                                         regulator-name = "ldo3";
490                                         regulator-min-microvolt = <1800000>;
491                                         regulator-max-microvolt = <1800000>;
492                                         regulator-always-on;
493                                         regulator-boot-on;
494                                 };
495
496                                 ldo4_reg: ldo4 {
497                                         /* VDDA_1V8_PHYB */
498                                         regulator-name = "ldo4";
499                                         regulator-min-microvolt = <1800000>;
500                                         regulator-max-microvolt = <1800000>;
501                                         regulator-always-on;
502                                         regulator-boot-on;
503                                 };
504
505                                 ldo9_reg: ldo9 {
506                                         /* VDD_RTC */
507                                         regulator-name = "ldo9";
508                                         regulator-min-microvolt = <1050000>;
509                                         regulator-max-microvolt = <1050000>;
510                                         regulator-always-on;
511                                         regulator-boot-on;
512                                 };
513
514                                 ldoln_reg: ldoln {
515                                         /* VDDA_1V8_PLL */
516                                         regulator-name = "ldoln";
517                                         regulator-min-microvolt = <1800000>;
518                                         regulator-max-microvolt = <1800000>;
519                                         regulator-always-on;
520                                         regulator-boot-on;
521                                 };
522
523                                 ldousb_reg: ldousb {
524                                         /* VDDA_3V_USB: VDDA_USBHS33 */
525                                         regulator-name = "ldousb";
526                                         regulator-min-microvolt = <3300000>;
527                                         regulator-max-microvolt = <3300000>;
528                                         regulator-boot-on;
529                                 };
530
531                                 regen1: regen1 {
532                                         /* VDD_3V3_ON */
533                                         regulator-name = "regen1";
534                                         regulator-boot-on;
535                                         regulator-always-on;
536                                 };
537                         };
538                 };
539
540                 tps659038_rtc: tps659038_rtc {
541                         compatible = "ti,palmas-rtc";
542                         interrupt-parent = <&tps659038>;
543                         interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
544                         wakeup-source;
545                 };
546
547                 tps659038_pwr_button: tps659038_pwr_button {
548                         compatible = "ti,palmas-pwrbutton";
549                         interrupt-parent = <&tps659038>;
550                         interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
551                         wakeup-source;
552                         ti,palmas-long-press-seconds = <12>;
553                 };
554
555                 tps659038_gpio: tps659038_gpio {
556                         compatible = "ti,palmas-gpio";
557                         gpio-controller;
558                         #gpio-cells = <2>;
559                 };
560
561                 extcon_usb2: tps659038_usb {
562                         compatible = "ti,palmas-usb-vid";
563                         ti,enable-vbus-detection;
564                         ti,enable-id-detection;
565                         id-gpios = <&gpio7 24 GPIO_ACTIVE_HIGH>;
566                 };
567
568         };
569
570         tmp102: tmp102@48 {
571                 compatible = "ti,tmp102";
572                 reg = <0x48>;
573                 pinctrl-names = "default";
574                 pinctrl-0 = <&tmp102_pins_default>;
575                 interrupt-parent = <&gpio7>;
576                 interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
577                 #thermal-sensor-cells = <1>;
578         };
579
580         tlv320aic3104: tlv320aic3104@18 {
581                 #sound-dai-cells = <0>;
582                 compatible = "ti,tlv320aic3104";
583                 reg = <0x18>;
584                 pinctrl-names = "default", "sleep";
585                 pinctrl-0 = <&clkout2_pins_default>;
586                 pinctrl-1 = <&clkout2_pins_sleep>;
587                 status = "okay";
588                 adc-settle-ms = <40>;
589
590                 AVDD-supply = <&vdd_3v3>;
591                 IOVDD-supply = <&vdd_3v3>;
592                 DRVDD-supply = <&vdd_3v3>;
593                 DVDD-supply = <&aic_dvdd>;
594         };
595 };
596
597 &i2c3 {
598         status = "okay";
599         pinctrl-names = "default";
600         pinctrl-0 = <&i2c3_pins_default>;
601         clock-frequency = <400000>;
602
603         mcp_rtc: rtc@6f {
604                 compatible = "microchip,mcp7941x";
605                 reg = <0x6f>;
606                 interrupts-extended = <&crossbar_mpu GIC_SPI 2 IRQ_TYPE_EDGE_RISING>,
607                                       <&dra7_pmx_core 0x424>;
608                 interrupt-names = "irq", "wakeup";
609
610                 pinctrl-names = "default";
611                 pinctrl-0 = <&mcp79410_pins_default>;
612
613                 vcc-supply = <&vdd_3v3>;
614                 wakeup-source;
615         };
616 };
617
618 &gpio7 {
619         ti,no-reset-on-init;
620         ti,no-idle-on-init;
621 };
622
623 &cpu0 {
624         cpu0-supply = <&smps12_reg>;
625         voltage-tolerance = <1>;
626 };
627
628 &uart3 {
629         status = "okay";
630         interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
631                               <&dra7_pmx_core 0x3f8>;
632
633         pinctrl-names = "default";
634         pinctrl-0 = <&uart3_pins_default>;
635 };
636
637 &mac {
638         status = "okay";
639         pinctrl-names = "default", "sleep";
640         pinctrl-0 = <&cpsw_pins_default>;
641         pinctrl-1 = <&cpsw_pins_sleep>;
642         dual_emac;
643 };
644
645 &cpsw_emac0 {
646         phy_id = <&davinci_mdio>, <1>;
647         phy-mode = "rgmii";
648         dual_emac_res_vlan = <1>;
649 };
650
651 &cpsw_emac1 {
652         phy_id = <&davinci_mdio>, <2>;
653         phy-mode = "rgmii";
654         dual_emac_res_vlan = <2>;
655 };
656
657 &davinci_mdio {
658         pinctrl-names = "default", "sleep";
659         pinctrl-0 = <&davinci_mdio_pins_default>;
660         pinctrl-1 = <&davinci_mdio_pins_sleep>;
661 };
662
663 &mmc1 {
664         status = "okay";
665
666         pinctrl-names = "default";
667         pinctrl-0 = <&mmc1_pins_default>;
668
669         vmmc-supply = <&ldo1_reg>;
670         bus-width = <4>;
671         cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
672 };
673
674 &mmc2 {
675         status = "okay";
676
677         pinctrl-names = "default";
678         pinctrl-0 = <&mmc2_pins_default>;
679
680         vmmc-supply = <&vdd_3v3>;
681         bus-width = <8>;
682         ti,non-removable;
683         cap-mmc-dual-data-rate;
684 };
685
686 &sata {
687         status = "okay";
688 };
689
690 &usb2_phy1 {
691         phy-supply = <&ldousb_reg>;
692 };
693
694 &usb2_phy2 {
695         phy-supply = <&ldousb_reg>;
696 };
697
698 &usb1 {
699         dr_mode = "host";
700         pinctrl-names = "default";
701         pinctrl-0 = <&usb1_pins>;
702 };
703
704 &omap_dwc3_1 {
705         extcon = <&extcon_usb1>;
706 };
707
708 &omap_dwc3_2 {
709         extcon = <&extcon_usb2>;
710 };
711
712 &usb2 {
713         /*
714          * Stand alone usage is peripheral only.
715          * However, with some resistor modifications
716          * this port can be used via expansion connectors
717          * as "host" or "dual-role". If so, provide
718          * the necessary dr_mode override in the expansion
719          * board's DT.
720          */
721         dr_mode = "peripheral";
722 };
723
724 &cpu_trips {
725         cpu_alert1: cpu_alert1 {
726                 temperature = <50000>; /* millicelsius */
727                 hysteresis = <2000>; /* millicelsius */
728                 type = "active";
729         };
730 };
731
732 &cpu_cooling_maps {
733         map1 {
734                 trip = <&cpu_alert1>;
735                 cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
736         };
737 };
738
739 &thermal_zones {
740         board_thermal: board_thermal {
741                 polling-delay-passive = <1250>; /* milliseconds */
742                 polling-delay = <1500>; /* milliseconds */
743
744                                 /* sensor       ID */
745                 thermal-sensors = <&tmp102     0>;
746
747                 board_trips: trips {
748                         board_alert0: board_alert {
749                                 temperature = <40000>; /* millicelsius */
750                                 hysteresis = <2000>; /* millicelsius */
751                                 type = "active";
752                         };
753
754                         board_crit: board_crit {
755                                 temperature = <105000>; /* millicelsius */
756                                 hysteresis = <0>; /* millicelsius */
757                                 type = "critical";
758                         };
759                 };
760
761                 board_cooling_maps: cooling-maps {
762                         map0 {
763                                 trip = <&board_alert0>;
764                                 cooling-device =
765                                   <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
766                         };
767                 };
768        };
769 };
770
771 &dss {
772         status = "ok";
773
774         vdda_video-supply = <&ldoln_reg>;
775 };
776
777 &hdmi {
778         status = "ok";
779         vdda-supply = <&ldo4_reg>;
780
781         pinctrl-names = "default";
782         pinctrl-0 = <&hdmi_pins>;
783
784         port {
785                 hdmi_out: endpoint {
786                         remote-endpoint = <&tpd12s015_in>;
787                 };
788         };
789 };
790
791 &pcie1 {
792         gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
793 };
794
795 &mcasp3 {
796         #sound-dai-cells = <0>;
797         pinctrl-names = "default", "sleep";
798         pinctrl-0 = <&mcasp3_pins_default>;
799         pinctrl-1 = <&mcasp3_pins_sleep>;
800         status = "okay";
801
802         op-mode = <0>;  /* MCASP_IIS_MODE */
803         tdm-slots = <2>;
804         /* 4 serializers */
805         serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
806                 1 2 0 0
807         >;
808 };
809
810 &mailbox5 {
811         status = "okay";
812         mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
813                 status = "okay";
814         };
815         mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
816                 status = "okay";
817         };
818 };
819
820 &mailbox6 {
821         status = "okay";
822         mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
823                 status = "okay";
824         };
825         mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
826                 status = "okay";
827         };
828 };