]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/omap5-uevm.dts
arm: dts: tx6: use generic names for regulator nodes
[karo-tx-linux.git] / arch / arm / boot / dts / omap5-uevm.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 /dts-v1/;
9
10 #include "omap5.dtsi"
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13
14 / {
15         model = "TI OMAP5 uEVM board";
16         compatible = "ti,omap5-uevm", "ti,omap5";
17
18         memory {
19                 device_type = "memory";
20                 reg = <0x80000000 0x7F000000>; /* 2032 MB */
21         };
22
23         vmmcsd_fixed: fixedregulator-mmcsd {
24                 compatible = "regulator-fixed";
25                 regulator-name = "vmmcsd_fixed";
26                 regulator-min-microvolt = <3000000>;
27                 regulator-max-microvolt = <3000000>;
28         };
29
30         /* HS USB Host PHY on PORT 2 */
31         hsusb2_phy: hsusb2_phy {
32                 compatible = "usb-nop-xceiv";
33                 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
34         /**
35           * FIXME
36           * Put the right clock phandle here when available
37           *     clocks = <&auxclk1>;
38           *     clock-names = "main_clk";
39           */
40                 clock-frequency = <19200000>;
41         };
42
43         /* HS USB Host PHY on PORT 3 */
44         hsusb3_phy: hsusb3_phy {
45                 compatible = "usb-nop-xceiv";
46                 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
47         };
48
49         leds {
50                 compatible = "gpio-leds";
51                 led@1 {
52                         label = "omap5:blue:usr1";
53                         gpios = <&gpio5 25 GPIO_ACTIVE_HIGH>; /* gpio5_153 D1 LED */
54                         linux,default-trigger = "heartbeat";
55                         default-state = "off";
56                 };
57         };
58 };
59
60 &omap5_pmx_core {
61         pinctrl-names = "default";
62         pinctrl-0 = <
63                         &twl6040_pins
64                         &mcpdm_pins
65                         &dmic_pins
66                         &mcbsp1_pins
67                         &mcbsp2_pins
68                         &usbhost_pins
69                         &led_gpio_pins
70         >;
71
72         twl6040_pins: pinmux_twl6040_pins {
73                 pinctrl-single,pins = <
74                         0x18a (PIN_OUTPUT | MUX_MODE6)  /* perslimbus2_clock.gpio5_145 */
75                 >;
76         };
77
78         mcpdm_pins: pinmux_mcpdm_pins {
79                 pinctrl-single,pins = <
80                         0x142 (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* abe_clks.abe_clks */
81                         0x15c (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* abemcpdm_ul_data.abemcpdm_ul_data */
82                         0x15e (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* abemcpdm_dl_data.abemcpdm_dl_data */
83                         0x160 (PIN_INPUT_PULLUP | MUX_MODE0)    /* abemcpdm_frame.abemcpdm_frame */
84                         0x162 (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* abemcpdm_lb_clk.abemcpdm_lb_clk */
85                 >;
86         };
87
88         dmic_pins: pinmux_dmic_pins {
89                 pinctrl-single,pins = <
90                         0x144 (PIN_INPUT | MUX_MODE0)           /* abedmic_din1.abedmic_din1 */
91                         0x146 (PIN_INPUT | MUX_MODE0)           /* abedmic_din2.abedmic_din2 */
92                         0x148 (PIN_INPUT | MUX_MODE0)           /* abedmic_din3.abedmic_din3 */
93                         0x14a (PIN_OUTPUT | MUX_MODE0)          /* abedmic_clk1.abedmic_clk1 */
94                 >;
95         };
96
97         mcbsp1_pins: pinmux_mcbsp1_pins {
98                 pinctrl-single,pins = <
99                         0x14c (PIN_INPUT | MUX_MODE1)           /* abedmic_clk2.abemcbsp1_fsx */
100                         0x14e (PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
101                         0x150 (PIN_INPUT | MUX_MODE1)           /* abeslimbus1_clock.abemcbsp1_clkx */
102                         0x152 (PIN_INPUT_PULLDOWN | MUX_MODE1)  /* abeslimbus1_data.abemcbsp1_dr */
103                 >;
104         };
105
106         mcbsp2_pins: pinmux_mcbsp2_pins {
107                 pinctrl-single,pins = <
108                         0x154 (PIN_INPUT_PULLDOWN | MUX_MODE0)  /* abemcbsp2_dr.abemcbsp2_dr */
109                         0x156 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
110                         0x158 (PIN_INPUT | MUX_MODE0)           /* abemcbsp2_fsx.abemcbsp2_fsx */
111                         0x15a (PIN_INPUT | MUX_MODE0)           /* abemcbsp2_clkx.abemcbsp2_clkx */
112                 >;
113         };
114
115         i2c1_pins: pinmux_i2c1_pins {
116                 pinctrl-single,pins = <
117                         0x1b2 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_scl */
118                         0x1b4 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c1_sda */
119                 >;
120         };
121
122         i2c5_pins: pinmux_i2c5_pins {
123                 pinctrl-single,pins = <
124                         0x184 (PIN_INPUT | MUX_MODE0)           /* i2c5_scl */
125                         0x186 (PIN_INPUT | MUX_MODE0)           /* i2c5_sda */
126                 >;
127         };
128
129         mcspi2_pins: pinmux_mcspi2_pins {
130                 pinctrl-single,pins = <
131                         0xbc (PIN_INPUT | MUX_MODE0)            /*  mcspi2_clk */
132                         0xbe (PIN_INPUT | MUX_MODE0)            /*  mcspi2_simo */
133                         0xc0 (PIN_INPUT_PULLUP | MUX_MODE0)     /*  mcspi2_somi */
134                         0xc2 (PIN_OUTPUT | MUX_MODE0)           /*  mcspi2_cs */
135                 >;
136         };
137
138         mcspi3_pins: pinmux_mcspi3_pins {
139                 pinctrl-single,pins = <
140                         0x78 (PIN_INPUT | MUX_MODE1)            /*  mcspi2_somi */
141                         0x7a (PIN_INPUT | MUX_MODE1)            /*  mcspi2_cs */
142                         0x7c (PIN_INPUT | MUX_MODE1)            /*  mcspi2_simo */
143                         0x7e (PIN_INPUT | MUX_MODE1)            /*  mcspi2_clk */
144                 >;
145         };
146
147         mcspi4_pins: pinmux_mcspi4_pins {
148                 pinctrl-single,pins = <
149                         0x164 (PIN_INPUT | MUX_MODE1)           /*  mcspi2_clk */
150                         0x168 (PIN_INPUT | MUX_MODE1)           /*  mcspi2_simo */
151                         0x16a (PIN_INPUT | MUX_MODE1)           /*  mcspi2_somi */
152                         0x16c (PIN_INPUT | MUX_MODE1)           /*  mcspi2_cs */
153                 >;
154         };
155
156         usbhost_pins: pinmux_usbhost_pins {
157                 pinctrl-single,pins = <
158                         0x84 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
159                         0x86 (PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
160
161                         0x19e (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
162                         0x1a0 (PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
163
164                         0x70 (PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
165                         0x6e (PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
166                 >;
167         };
168
169         led_gpio_pins: pinmux_led_gpio_pins {
170                 pinctrl-single,pins = <
171                         0x196 (PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
172                 >;
173         };
174
175         uart1_pins: pinmux_uart1_pins {
176                 pinctrl-single,pins = <
177                         0x60 (PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
178                         0x62 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
179                         0x64 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
180                         0x66 (PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
181                 >;
182         };
183
184         uart3_pins: pinmux_uart3_pins {
185                 pinctrl-single,pins = <
186                         0x19a (PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
187                         0x19c (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
188                 >;
189         };
190
191         uart5_pins: pinmux_uart5_pins {
192                 pinctrl-single,pins = <
193                         0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
194                         0x172 (PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
195                         0x174 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
196                         0x176 (PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
197                 >;
198         };
199
200 };
201
202 &omap5_pmx_wkup {
203         pinctrl-names = "default";
204         pinctrl-0 = <
205                         &usbhost_wkup_pins
206         >;
207
208         usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
209                 pinctrl-single,pins = <
210                         0x1A (PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
211                 >;
212         };
213 };
214
215 &mmc1 {
216         vmmc-supply = <&ldo9_reg>;
217         bus-width = <4>;
218 };
219
220 &mmc2 {
221         vmmc-supply = <&vmmcsd_fixed>;
222         bus-width = <8>;
223         ti,non-removable;
224 };
225
226 &mmc3 {
227         bus-width = <4>;
228         ti,non-removable;
229 };
230
231 &mmc4 {
232         status = "disabled";
233 };
234
235 &mmc5 {
236         status = "disabled";
237 };
238
239 &i2c1 {
240         pinctrl-names = "default";
241         pinctrl-0 = <&i2c1_pins>;
242
243         clock-frequency = <400000>;
244
245         palmas: palmas@48 {
246                 compatible = "ti,palmas";
247                 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
248                 interrupt-parent = <&gic>;
249                 reg = <0x48>;
250                 interrupt-controller;
251                 #interrupt-cells = <2>;
252                 ti,system-power-controller;
253
254                 extcon_usb3: palmas_usb {
255                         compatible = "ti,palmas-usb-vid";
256                         ti,enable-vbus-detection;
257                         ti,enable-id-detection;
258                         ti,wakeup;
259                 };
260
261                 palmas_pmic {
262                         compatible = "ti,palmas-pmic";
263                         interrupt-parent = <&palmas>;
264                         interrupts = <14 IRQ_TYPE_NONE>;
265                         interrupt-name = "short-irq";
266
267                         ti,ldo6-vibrator;
268
269                         regulators {
270                                 smps123_reg: smps123 {
271                                         /* VDD_OPP_MPU */
272                                         regulator-name = "smps123";
273                                         regulator-min-microvolt = < 600000>;
274                                         regulator-max-microvolt = <1500000>;
275                                         regulator-always-on;
276                                         regulator-boot-on;
277                                 };
278
279                                 smps45_reg: smps45 {
280                                         /* VDD_OPP_MM */
281                                         regulator-name = "smps45";
282                                         regulator-min-microvolt = < 600000>;
283                                         regulator-max-microvolt = <1310000>;
284                                         regulator-always-on;
285                                         regulator-boot-on;
286                                 };
287
288                                 smps6_reg: smps6 {
289                                         /* VDD_DDR3 - over VDD_SMPS6 */
290                                         regulator-name = "smps6";
291                                         regulator-min-microvolt = <1200000>;
292                                         regulator-max-microvolt = <1200000>;
293                                         regulator-always-on;
294                                         regulator-boot-on;
295                                 };
296
297                                 smps7_reg: smps7 {
298                                         /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
299                                         regulator-name = "smps7";
300                                         regulator-min-microvolt = <1800000>;
301                                         regulator-max-microvolt = <1800000>;
302                                         regulator-always-on;
303                                         regulator-boot-on;
304                                 };
305
306                                 smps8_reg: smps8 {
307                                         /* VDD_OPP_CORE */
308                                         regulator-name = "smps8";
309                                         regulator-min-microvolt = < 600000>;
310                                         regulator-max-microvolt = <1310000>;
311                                         regulator-always-on;
312                                         regulator-boot-on;
313                                 };
314
315                                 smps9_reg: smps9 {
316                                         /* VDDA_2v1_AUD over VDD_2v1 */
317                                         regulator-name = "smps9";
318                                         regulator-min-microvolt = <2100000>;
319                                         regulator-max-microvolt = <2100000>;
320                                         ti,smps-range = <0x80>;
321                                 };
322
323                                 smps10_out2_reg: smps10_out2 {
324                                         /* VBUS_5V_OTG */
325                                         regulator-name = "smps10_out2";
326                                         regulator-min-microvolt = <5000000>;
327                                         regulator-max-microvolt = <5000000>;
328                                         regulator-always-on;
329                                         regulator-boot-on;
330                                 };
331
332                                 smps10_out1_reg: smps10_out1 {
333                                         /* VBUS_5V_OTG */
334                                         regulator-name = "smps10_out1";
335                                         regulator-min-microvolt = <5000000>;
336                                         regulator-max-microvolt = <5000000>;
337                                         regulator-always-on;
338                                         regulator-boot-on;
339                                 };
340
341                                 ldo1_reg: ldo1 {
342                                         /* VDDAPHY_CAM: vdda_csiport */
343                                         regulator-name = "ldo1";
344                                         regulator-min-microvolt = <1500000>;
345                                         regulator-max-microvolt = <1800000>;
346                                 };
347
348                                 ldo2_reg: ldo2 {
349                                         /* VCC_2V8_DISP: Does not go anywhere */
350                                         regulator-name = "ldo2";
351                                         regulator-min-microvolt = <2800000>;
352                                         regulator-max-microvolt = <2800000>;
353                                         /* Unused */
354                                         status = "disabled";
355                                 };
356
357                                 ldo3_reg: ldo3 {
358                                         /* VDDAPHY_MDM: vdda_lli */
359                                         regulator-name = "ldo3";
360                                         regulator-min-microvolt = <1500000>;
361                                         regulator-max-microvolt = <1500000>;
362                                         regulator-boot-on;
363                                         /* Only if Modem is used */
364                                         status = "disabled";
365                                 };
366
367                                 ldo4_reg: ldo4 {
368                                         /* VDDAPHY_DISP: vdda_dsiport/hdmi */
369                                         regulator-name = "ldo4";
370                                         regulator-min-microvolt = <1500000>;
371                                         regulator-max-microvolt = <1800000>;
372                                 };
373
374                                 ldo5_reg: ldo5 {
375                                         /* VDDA_1V8_PHY: usb/sata/hdmi.. */
376                                         regulator-name = "ldo5";
377                                         regulator-min-microvolt = <1800000>;
378                                         regulator-max-microvolt = <1800000>;
379                                         regulator-always-on;
380                                         regulator-boot-on;
381                                 };
382
383                                 ldo6_reg: ldo6 {
384                                         /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
385                                         regulator-name = "ldo6";
386                                         regulator-min-microvolt = <1200000>;
387                                         regulator-max-microvolt = <1200000>;
388                                         regulator-always-on;
389                                         regulator-boot-on;
390                                 };
391
392                                 ldo7_reg: ldo7 {
393                                         /* VDD_VPP: vpp1 */
394                                         regulator-name = "ldo7";
395                                         regulator-min-microvolt = <2000000>;
396                                         regulator-max-microvolt = <2000000>;
397                                         /* Only for efuse reprograming! */
398                                         status = "disabled";
399                                 };
400
401                                 ldo8_reg: ldo8 {
402                                         /* VDD_3v0: Does not go anywhere */
403                                         regulator-name = "ldo8";
404                                         regulator-min-microvolt = <3000000>;
405                                         regulator-max-microvolt = <3000000>;
406                                         regulator-boot-on;
407                                         /* Unused */
408                                         status = "disabled";
409                                 };
410
411                                 ldo9_reg: ldo9 {
412                                         /* VCC_DV_SDIO: vdds_sdcard */
413                                         regulator-name = "ldo9";
414                                         regulator-min-microvolt = <1800000>;
415                                         regulator-max-microvolt = <3000000>;
416                                         regulator-boot-on;
417                                 };
418
419                                 ldoln_reg: ldoln {
420                                         /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
421                                         regulator-name = "ldoln";
422                                         regulator-min-microvolt = <1800000>;
423                                         regulator-max-microvolt = <1800000>;
424                                         regulator-always-on;
425                                         regulator-boot-on;
426                                 };
427
428                                 ldousb_reg: ldousb {
429                                         /* VDDA_3V_USB: VDDA_USBHS33 */
430                                         regulator-name = "ldousb";
431                                         regulator-min-microvolt = <3250000>;
432                                         regulator-max-microvolt = <3250000>;
433                                         regulator-always-on;
434                                         regulator-boot-on;
435                                 };
436
437                                 regen3_reg: regen3 {
438                                         /* REGEN3 controls LDO9 supply to card */
439                                         regulator-name = "regen3";
440                                         regulator-always-on;
441                                         regulator-boot-on;
442                                 };
443                         };
444                 };
445         };
446 };
447
448 &i2c5 {
449         pinctrl-names = "default";
450         pinctrl-0 = <&i2c5_pins>;
451
452         clock-frequency = <400000>;
453 };
454
455 &mcbsp3 {
456         status = "disabled";
457 };
458
459 &usbhshost {
460         port2-mode = "ehci-hsic";
461         port3-mode = "ehci-hsic";
462 };
463
464 &usbhsehci {
465         phys = <0 &hsusb2_phy &hsusb3_phy>;
466 };
467
468 &usb3 {
469         extcon = <&extcon_usb3>;
470         vbus-supply = <&smps10_out1_reg>;
471 };
472
473 &mcspi1 {
474
475 };
476
477 &mcspi2 {
478         pinctrl-names = "default";
479         pinctrl-0 = <&mcspi2_pins>;
480 };
481
482 &mcspi3 {
483         pinctrl-names = "default";
484         pinctrl-0 = <&mcspi3_pins>;
485 };
486
487 &mcspi4 {
488         pinctrl-names = "default";
489         pinctrl-0 = <&mcspi4_pins>;
490 };
491
492 &uart1 {
493         pinctrl-names = "default";
494         pinctrl-0 = <&uart1_pins>;
495 };
496
497 &uart3 {
498         pinctrl-names = "default";
499         pinctrl-0 = <&uart3_pins>;
500 };
501
502 &uart5 {
503         pinctrl-names = "default";
504         pinctrl-0 = <&uart5_pins>;
505 };