2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
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.
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
21 vmain: fixedregulator-vmain {
22 compatible = "regulator-fixed";
23 regulator-name = "vmain";
24 regulator-min-microvolt = <5000000>;
25 regulator-max-microvolt = <5000000>;
28 vsys_cobra: fixedregulator-vsys_cobra {
29 compatible = "regulator-fixed";
30 regulator-name = "vsys_cobra";
31 vin-supply = <&vmain>;
32 regulator-min-microvolt = <5000000>;
33 regulator-max-microvolt = <5000000>;
36 vdds_1v8_main: fixedregulator-vdds_1v8_main {
37 compatible = "regulator-fixed";
38 regulator-name = "vdds_1v8_main";
39 vin-supply = <&smps7_reg>;
40 regulator-min-microvolt = <1800000>;
41 regulator-max-microvolt = <1800000>;
44 vmmcsd_fixed: fixedregulator-mmcsd {
45 compatible = "regulator-fixed";
46 regulator-name = "vmmcsd_fixed";
47 regulator-min-microvolt = <3000000>;
48 regulator-max-microvolt = <3000000>;
51 mmc3_pwrseq: sdhci0_pwrseq {
52 compatible = "mmc-pwrseq-simple";
53 clocks = <&clk32kgaudio>;
54 clock-names = "ext_clock";
57 vmmcsdio_fixed: fixedregulator-mmcsdio {
58 compatible = "regulator-fixed";
59 regulator-name = "vmmcsdio_fixed";
60 regulator-min-microvolt = <1800000>;
61 regulator-max-microvolt = <1800000>;
62 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
64 startup-delay-us = <70000>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&wlan_pins>;
69 /* HS USB Host PHY on PORT 2 */
70 hsusb2_phy: hsusb2_phy {
71 compatible = "usb-nop-xceiv";
72 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
73 clocks = <&auxclk1_ck>;
74 clock-names = "main_clk";
75 clock-frequency = <19200000>;
79 /* HS USB Host PHY on PORT 3 */
80 hsusb3_phy: hsusb3_phy {
81 compatible = "usb-nop-xceiv";
82 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
87 compatible = "ti,tpd12s015";
89 pinctrl-names = "default";
90 pinctrl-0 = <&tpd12s015_pins>;
92 /* gpios defined in the board specific dts */
101 tpd12s015_in: endpoint {
102 remote-endpoint = <&hdmi_out>;
109 tpd12s015_out: endpoint {
110 remote-endpoint = <&hdmi_connector_in>;
117 compatible = "hdmi-connector";
123 hdmi_connector_in: endpoint {
124 remote-endpoint = <&tpd12s015_out>;
130 compatible = "ti,abe-twl6040";
131 ti,model = "omap5-uevm";
134 ti,mclk-freq = <19200000>;
138 ti,twl6040 = <&twl6040>;
142 "Headset Stereophone", "HSOL",
143 "Headset Stereophone", "HSOR",
146 "HSMIC", "Headset Mic",
147 "Headset Mic", "Headset Mic Bias",
154 /* TI trees use GPIO instead of msecure, see also muxing */
157 gpios = <10 GPIO_ACTIVE_HIGH>;
159 line-name = "gpio8_234/msecure";
164 pinctrl-names = "default";
170 twl6040_pins: pinmux_twl6040_pins {
171 pinctrl-single,pins = <
172 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
176 mcpdm_pins: pinmux_mcpdm_pins {
177 pinctrl-single,pins = <
178 OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
179 OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
180 OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
181 OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
182 OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
186 mcbsp1_pins: pinmux_mcbsp1_pins {
187 pinctrl-single,pins = <
188 OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
189 OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
190 OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
191 OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
195 mcbsp2_pins: pinmux_mcbsp2_pins {
196 pinctrl-single,pins = <
197 OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
198 OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
199 OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
200 OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
204 i2c1_pins: pinmux_i2c1_pins {
205 pinctrl-single,pins = <
206 OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
207 OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
211 mcspi2_pins: pinmux_mcspi2_pins {
212 pinctrl-single,pins = <
213 OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
214 OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
215 OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
216 OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
220 mcspi3_pins: pinmux_mcspi3_pins {
221 pinctrl-single,pins = <
222 OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
223 OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
224 OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
225 OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
229 mmc3_pins: pinmux_mmc3_pins {
230 pinctrl-single,pins = <
231 OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
232 OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
233 OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
234 OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
235 OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
236 OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
240 wlan_pins: pinmux_wlan_pins {
241 pinctrl-single,pins = <
242 OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
246 /* TI trees use GPIO mode; msecure mode does not work reliably? */
247 palmas_msecure_pins: palmas_msecure_pins {
248 pinctrl-single,pins = <
249 OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
253 usbhost_pins: pinmux_usbhost_pins {
254 pinctrl-single,pins = <
255 OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
256 OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
258 OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
259 OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
261 OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
262 OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
266 led_gpio_pins: pinmux_led_gpio_pins {
267 pinctrl-single,pins = <
268 OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
272 uart1_pins: pinmux_uart1_pins {
273 pinctrl-single,pins = <
274 OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
275 OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
276 OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
277 OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
281 uart3_pins: pinmux_uart3_pins {
282 pinctrl-single,pins = <
283 OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
284 OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
288 uart5_pins: pinmux_uart5_pins {
289 pinctrl-single,pins = <
290 OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
291 OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
292 OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
293 OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
297 dss_hdmi_pins: pinmux_dss_hdmi_pins {
298 pinctrl-single,pins = <
299 OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
300 OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
301 OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
305 tpd12s015_pins: pinmux_tpd12s015_pins {
306 pinctrl-single,pins = <
307 OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
313 pinctrl-names = "default";
318 palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
319 pinctrl-single,pins = <
320 OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1 */
324 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
325 pinctrl-single,pins = <
326 OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
330 wlcore_irq_pin: pinmux_wlcore_irq_pin {
331 pinctrl-single,pins = <
332 OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
338 vmmc-supply = <&ldo9_reg>;
343 vmmc-supply = <&vmmcsd_fixed>;
349 vmmc-supply = <&vmmcsdio_fixed>;
350 mmc-pwrseq = <&mmc3_pwrseq>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&mmc3_pins>;
356 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
357 &omap5_pmx_core 0x16a>;
359 #address-cells = <1>;
362 compatible = "ti,wl1271";
364 pinctrl-names = "default";
365 pinctrl-0 = <&wlcore_irq_pin>;
366 interrupt-parent = <&gpio1>;
367 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; /* gpio 14 */
368 ref-clock-frequency = <26000000>;
381 pinctrl-names = "default";
382 pinctrl-0 = <&i2c1_pins>;
384 clock-frequency = <400000>;
387 compatible = "ti,palmas";
388 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
390 interrupt-controller;
391 #interrupt-cells = <2>;
392 ti,system-power-controller;
393 ti,mux-pad1 = <0xa1>;
394 ti,mux-pad2 = <0x1b>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
399 compatible = "ti,palmas-gpio";
404 extcon_usb3: palmas_usb {
405 compatible = "ti,palmas-usb-vid";
406 ti,enable-vbus-detection;
407 ti,enable-id-detection;
409 id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
412 clk32kgaudio: palmas_clk32k@1 {
413 compatible = "ti,palmas-clk32kgaudio";
418 compatible = "ti,palmas-rtc";
419 interrupt-parent = <&palmas>;
420 interrupts = <8 IRQ_TYPE_NONE>;
421 ti,backup-battery-chargeable;
422 ti,backup-battery-charge-high-current;
426 compatible = "ti,palmas-gpadc";
430 #io-channel-cells = <1>;
431 ti,channel0-current-microamp = <5>;
432 ti,channel3-current-microamp = <10>;
436 compatible = "ti,palmas-pmic";
437 interrupt-parent = <&palmas>;
438 interrupts = <14 IRQ_TYPE_NONE>;
439 interrupt-names = "short-irq";
443 smps123-in-supply = <&vsys_cobra>;
444 smps45-in-supply = <&vsys_cobra>;
445 smps6-in-supply = <&vsys_cobra>;
446 smps7-in-supply = <&vsys_cobra>;
447 smps8-in-supply = <&vsys_cobra>;
448 smps9-in-supply = <&vsys_cobra>;
449 smps10_out2-in-supply = <&vsys_cobra>;
450 smps10_out1-in-supply = <&vsys_cobra>;
451 ldo1-in-supply = <&vsys_cobra>;
452 ldo2-in-supply = <&vsys_cobra>;
453 ldo3-in-supply = <&vdds_1v8_main>;
454 ldo4-in-supply = <&vdds_1v8_main>;
455 ldo5-in-supply = <&vsys_cobra>;
456 ldo6-in-supply = <&vdds_1v8_main>;
457 ldo7-in-supply = <&vsys_cobra>;
458 ldo8-in-supply = <&vsys_cobra>;
459 ldo9-in-supply = <&vmmcsd_fixed>;
460 ldoln-in-supply = <&vsys_cobra>;
461 ldousb-in-supply = <&vsys_cobra>;
464 smps123_reg: smps123 {
466 regulator-name = "smps123";
467 regulator-min-microvolt = < 600000>;
468 regulator-max-microvolt = <1500000>;
475 regulator-name = "smps45";
476 regulator-min-microvolt = < 600000>;
477 regulator-max-microvolt = <1310000>;
483 /* VDD_DDR3 - over VDD_SMPS6 */
484 regulator-name = "smps6";
485 regulator-min-microvolt = <1350000>;
486 regulator-max-microvolt = <1350000>;
492 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
493 regulator-name = "smps7";
494 regulator-min-microvolt = <1800000>;
495 regulator-max-microvolt = <1800000>;
502 regulator-name = "smps8";
503 regulator-min-microvolt = < 600000>;
504 regulator-max-microvolt = <1310000>;
510 /* VDDA_2v1_AUD over VDD_2v1 */
511 regulator-name = "smps9";
512 regulator-min-microvolt = <2100000>;
513 regulator-max-microvolt = <2100000>;
514 ti,smps-range = <0x80>;
517 smps10_out2_reg: smps10_out2 {
519 regulator-name = "smps10_out2";
520 regulator-min-microvolt = <5000000>;
521 regulator-max-microvolt = <5000000>;
526 smps10_out1_reg: smps10_out1 {
528 regulator-name = "smps10_out1";
529 regulator-min-microvolt = <5000000>;
530 regulator-max-microvolt = <5000000>;
534 /* VDDAPHY_CAM: vdda_csiport */
535 regulator-name = "ldo1";
536 regulator-min-microvolt = <1800000>;
537 regulator-max-microvolt = <1800000>;
541 /* VCC_2V8_DISP: Does not go anywhere */
542 regulator-name = "ldo2";
543 regulator-min-microvolt = <2800000>;
544 regulator-max-microvolt = <2800000>;
550 /* VDDAPHY_MDM: vdda_lli */
551 regulator-name = "ldo3";
552 regulator-min-microvolt = <1500000>;
553 regulator-max-microvolt = <1500000>;
555 /* Only if Modem is used */
560 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
561 regulator-name = "ldo4";
562 regulator-min-microvolt = <1800000>;
563 regulator-max-microvolt = <1800000>;
567 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
568 regulator-name = "ldo5";
569 regulator-min-microvolt = <1800000>;
570 regulator-max-microvolt = <1800000>;
576 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
577 regulator-name = "ldo6";
578 regulator-min-microvolt = <1200000>;
579 regulator-max-microvolt = <1200000>;
586 regulator-name = "ldo7";
587 regulator-min-microvolt = <2000000>;
588 regulator-max-microvolt = <2000000>;
589 /* Only for efuse reprograming! */
594 /* VDD_3v0: Does not go anywhere */
595 regulator-name = "ldo8";
596 regulator-min-microvolt = <3000000>;
597 regulator-max-microvolt = <3000000>;
604 /* VCC_DV_SDIO: vdds_sdcard */
605 regulator-name = "ldo9";
606 regulator-min-microvolt = <1800000>;
607 regulator-max-microvolt = <3000000>;
612 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
613 regulator-name = "ldoln";
614 regulator-min-microvolt = <1800000>;
615 regulator-max-microvolt = <1800000>;
621 /* VDDA_3V_USB: VDDA_USBHS33 */
622 regulator-name = "ldousb";
623 regulator-min-microvolt = <3250000>;
624 regulator-max-microvolt = <3250000>;
630 /* REGEN3 controls LDO9 supply to card */
631 regulator-name = "regen3";
638 palmas_power_button: palmas_power_button {
639 compatible = "ti,palmas-pwrbutton";
640 interrupt-parent = <&palmas>;
641 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
647 compatible = "ti,twl6040";
651 pinctrl-names = "default";
652 pinctrl-0 = <&twl6040_pins>;
654 interrupts = <GIC_SPI 119 IRQ_TYPE_NONE>; /* IRQ_SYS_2N cascaded to gic */
656 /* audpwron gpio defined in the board specific dts */
658 vio-supply = <&smps7_reg>;
659 v2v1-supply = <&smps9_reg>;
662 clocks = <&clk32kgaudio>;
663 clock-names = "clk32k";
668 pinctrl-names = "default";
669 pinctrl-0 = <&mcpdm_pins>;
672 clock-names = "pdmclk";
678 pinctrl-names = "default";
679 pinctrl-0 = <&mcbsp1_pins>;
684 pinctrl-names = "default";
685 pinctrl-0 = <&mcbsp2_pins>;
690 port2-mode = "ehci-hsic";
691 port3-mode = "ehci-hsic";
695 phys = <0 &hsusb2_phy &hsusb3_phy>;
699 extcon = <&extcon_usb3>;
700 vbus-supply = <&smps10_out1_reg>;
708 pinctrl-names = "default";
709 pinctrl-0 = <&mcspi2_pins>;
713 pinctrl-names = "default";
714 pinctrl-0 = <&mcspi3_pins>;
718 pinctrl-names = "default";
719 pinctrl-0 = <&uart1_pins>;
723 pinctrl-names = "default";
724 pinctrl-0 = <&uart3_pins>;
725 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
726 <&omap5_pmx_core 0x19c>;
730 pinctrl-names = "default";
731 pinctrl-0 = <&uart5_pins>;
735 cpu0-supply = <&smps123_reg>;
745 /* vdda-supply populated in board specific dts file */
747 pinctrl-names = "default";
748 pinctrl-0 = <&dss_hdmi_pins>;
752 remote-endpoint = <&tpd12s015_in>;