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>
17 vmain: fixedregulator-vmain {
18 compatible = "regulator-fixed";
19 regulator-name = "vmain";
20 regulator-min-microvolt = <5000000>;
21 regulator-max-microvolt = <5000000>;
24 vsys_cobra: fixedregulator-vsys_cobra {
25 compatible = "regulator-fixed";
26 regulator-name = "vsys_cobra";
27 vin-supply = <&vmain>;
28 regulator-min-microvolt = <5000000>;
29 regulator-max-microvolt = <5000000>;
32 vmmcsd_fixed: fixedregulator-mmcsd {
33 compatible = "regulator-fixed";
34 regulator-name = "vmmcsd_fixed";
35 regulator-min-microvolt = <3000000>;
36 regulator-max-microvolt = <3000000>;
39 mmc3_pwrseq: sdhci0_pwrseq {
40 compatible = "mmc-pwrseq-simple";
41 clocks = <&clk32kgaudio>;
42 clock-names = "ext_clock";
45 vmmcsdio_fixed: fixedregulator-mmcsdio {
46 compatible = "regulator-fixed";
47 regulator-name = "vmmcsdio_fixed";
48 regulator-min-microvolt = <1800000>;
49 regulator-max-microvolt = <1800000>;
50 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
52 startup-delay-us = <70000>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&wlan_pins>;
57 /* HS USB Host PHY on PORT 2 */
58 hsusb2_phy: hsusb2_phy {
59 compatible = "usb-nop-xceiv";
60 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
61 clocks = <&auxclk1_ck>;
62 clock-names = "main_clk";
63 clock-frequency = <19200000>;
66 /* HS USB Host PHY on PORT 3 */
67 hsusb3_phy: hsusb3_phy {
68 compatible = "usb-nop-xceiv";
69 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
73 compatible = "ti,tpd12s015";
75 pinctrl-names = "default";
76 pinctrl-0 = <&tpd12s015_pins>;
78 /* gpios defined in the board specific dts */
87 tpd12s015_in: endpoint {
88 remote-endpoint = <&hdmi_out>;
95 tpd12s015_out: endpoint {
96 remote-endpoint = <&hdmi_connector_in>;
103 compatible = "hdmi-connector";
109 hdmi_connector_in: endpoint {
110 remote-endpoint = <&tpd12s015_out>;
116 compatible = "ti,abe-twl6040";
117 ti,model = "omap5-uevm";
120 ti,mclk-freq = <19200000>;
124 ti,twl6040 = <&twl6040>;
128 "Headset Stereophone", "HSOL",
129 "Headset Stereophone", "HSOR",
132 "HSMIC", "Headset Mic",
133 "Headset Mic", "Headset Mic Bias",
140 /* TI trees use GPIO instead of msecure, see also muxing */
143 gpios = <10 GPIO_ACTIVE_HIGH>;
145 line-name = "gpio8_234/msecure";
150 pinctrl-names = "default";
156 twl6040_pins: pinmux_twl6040_pins {
157 pinctrl-single,pins = <
158 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
162 mcpdm_pins: pinmux_mcpdm_pins {
163 pinctrl-single,pins = <
164 OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
165 OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
166 OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
167 OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
168 OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
172 mcbsp1_pins: pinmux_mcbsp1_pins {
173 pinctrl-single,pins = <
174 OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
175 OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
176 OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
177 OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
181 mcbsp2_pins: pinmux_mcbsp2_pins {
182 pinctrl-single,pins = <
183 OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
184 OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
185 OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
186 OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
190 i2c1_pins: pinmux_i2c1_pins {
191 pinctrl-single,pins = <
192 OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
193 OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
197 mcspi2_pins: pinmux_mcspi2_pins {
198 pinctrl-single,pins = <
199 OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
200 OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
201 OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
202 OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
206 mcspi3_pins: pinmux_mcspi3_pins {
207 pinctrl-single,pins = <
208 OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
209 OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
210 OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
211 OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
215 mmc3_pins: pinmux_mmc3_pins {
216 pinctrl-single,pins = <
217 OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
218 OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
219 OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
220 OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
221 OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
222 OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
226 wlan_pins: pinmux_wlan_pins {
227 pinctrl-single,pins = <
228 OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
232 /* TI trees use GPIO mode; msecure mode does not work reliably? */
233 palmas_msecure_pins: palmas_msecure_pins {
234 pinctrl-single,pins = <
235 OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
239 usbhost_pins: pinmux_usbhost_pins {
240 pinctrl-single,pins = <
241 OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
242 OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
244 OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
245 OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
247 OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
248 OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
252 led_gpio_pins: pinmux_led_gpio_pins {
253 pinctrl-single,pins = <
254 OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
258 uart1_pins: pinmux_uart1_pins {
259 pinctrl-single,pins = <
260 OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
261 OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
262 OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
263 OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
267 uart3_pins: pinmux_uart3_pins {
268 pinctrl-single,pins = <
269 OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
270 OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
274 uart5_pins: pinmux_uart5_pins {
275 pinctrl-single,pins = <
276 OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
277 OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
278 OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
279 OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
283 dss_hdmi_pins: pinmux_dss_hdmi_pins {
284 pinctrl-single,pins = <
285 OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
286 OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
287 OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
291 tpd12s015_pins: pinmux_tpd12s015_pins {
292 pinctrl-single,pins = <
293 OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
299 pinctrl-names = "default";
304 palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
305 pinctrl-single,pins = <
306 OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0) /* sys_nirq1 */
310 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
311 pinctrl-single,pins = <
312 OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
316 wlcore_irq_pin: pinmux_wlcore_irq_pin {
317 pinctrl-single,pins = <
318 OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
324 vmmc-supply = <&ldo9_reg>;
329 vmmc-supply = <&vmmcsd_fixed>;
335 vmmc-supply = <&vmmcsdio_fixed>;
336 mmc-pwrseq = <&mmc3_pwrseq>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&mmc3_pins>;
342 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
343 &omap5_pmx_core 0x16a>;
345 #address-cells = <1>;
348 compatible = "ti,wl1271";
350 pinctrl-names = "default";
351 pinctrl-0 = <&wlcore_irq_pin>;
352 interrupt-parent = <&gpio1>;
353 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; /* gpio 14 */
354 ref-clock-frequency = <26000000>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&i2c1_pins>;
370 clock-frequency = <400000>;
373 compatible = "ti,palmas";
374 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
376 interrupt-controller;
377 #interrupt-cells = <2>;
378 ti,system-power-controller;
379 ti,mux-pad1 = <0xa1>;
380 ti,mux-pad2 = <0x1b>;
381 pinctrl-names = "default";
382 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
385 compatible = "ti,palmas-gpio";
390 extcon_usb3: palmas_usb {
391 compatible = "ti,palmas-usb-vid";
392 ti,enable-vbus-detection;
393 ti,enable-id-detection;
395 id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
398 clk32kgaudio: palmas_clk32k@1 {
399 compatible = "ti,palmas-clk32kgaudio";
404 compatible = "ti,palmas-rtc";
405 interrupt-parent = <&palmas>;
406 interrupts = <8 IRQ_TYPE_NONE>;
407 ti,backup-battery-chargeable;
408 ti,backup-battery-charge-high-current;
412 compatible = "ti,palmas-gpadc";
416 #io-channel-cells = <1>;
417 ti,channel0-current-microamp = <5>;
418 ti,channel3-current-microamp = <10>;
422 compatible = "ti,palmas-pmic";
423 interrupt-parent = <&palmas>;
424 interrupts = <14 IRQ_TYPE_NONE>;
425 interrupt-names = "short-irq";
429 smps123-in-supply = <&vsys_cobra>;
430 smps45-in-supply = <&vsys_cobra>;
431 smps6-in-supply = <&vsys_cobra>;
432 smps7-in-supply = <&vsys_cobra>;
433 smps8-in-supply = <&vsys_cobra>;
434 smps9-in-supply = <&vsys_cobra>;
435 smps10_out2-in-supply = <&vsys_cobra>;
436 smps10_out1-in-supply = <&vsys_cobra>;
437 ldo1-in-supply = <&vsys_cobra>;
438 ldo2-in-supply = <&vsys_cobra>;
439 ldo3-in-supply = <&vdds_1v8_main>;
440 ldo4-in-supply = <&vdds_1v8_main>;
441 ldo5-in-supply = <&vsys_cobra>;
442 ldo6-in-supply = <&vdds_1v8_main>;
443 ldo7-in-supply = <&vsys_cobra>;
444 ldo8-in-supply = <&vsys_cobra>;
445 ldo9-in-supply = <&vmmcsd_fixed>;
446 ldoln-in-supply = <&vsys_cobra>;
447 ldousb-in-supply = <&vsys_cobra>;
450 smps123_reg: smps123 {
452 regulator-name = "smps123";
453 regulator-min-microvolt = < 600000>;
454 regulator-max-microvolt = <1500000>;
461 regulator-name = "smps45";
462 regulator-min-microvolt = < 600000>;
463 regulator-max-microvolt = <1310000>;
469 /* VDD_DDR3 - over VDD_SMPS6 */
470 regulator-name = "smps6";
471 regulator-min-microvolt = <1350000>;
472 regulator-max-microvolt = <1350000>;
479 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
480 regulator-name = "smps7";
481 regulator-min-microvolt = <1800000>;
482 regulator-max-microvolt = <1800000>;
489 regulator-name = "smps8";
490 regulator-min-microvolt = < 600000>;
491 regulator-max-microvolt = <1310000>;
497 /* VDDA_2v1_AUD over VDD_2v1 */
498 regulator-name = "smps9";
499 regulator-min-microvolt = <2100000>;
500 regulator-max-microvolt = <2100000>;
501 ti,smps-range = <0x80>;
504 smps10_out2_reg: smps10_out2 {
506 regulator-name = "smps10_out2";
507 regulator-min-microvolt = <5000000>;
508 regulator-max-microvolt = <5000000>;
513 smps10_out1_reg: smps10_out1 {
515 regulator-name = "smps10_out1";
516 regulator-min-microvolt = <5000000>;
517 regulator-max-microvolt = <5000000>;
521 /* VDDAPHY_CAM: vdda_csiport */
522 regulator-name = "ldo1";
523 regulator-min-microvolt = <1800000>;
524 regulator-max-microvolt = <1800000>;
528 /* VCC_2V8_DISP: Does not go anywhere */
529 regulator-name = "ldo2";
530 regulator-min-microvolt = <2800000>;
531 regulator-max-microvolt = <2800000>;
537 /* VDDAPHY_MDM: vdda_lli */
538 regulator-name = "ldo3";
539 regulator-min-microvolt = <1500000>;
540 regulator-max-microvolt = <1500000>;
542 /* Only if Modem is used */
547 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
548 regulator-name = "ldo4";
549 regulator-min-microvolt = <1800000>;
550 regulator-max-microvolt = <1800000>;
554 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
555 regulator-name = "ldo5";
556 regulator-min-microvolt = <1800000>;
557 regulator-max-microvolt = <1800000>;
563 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
564 regulator-name = "ldo6";
565 regulator-min-microvolt = <1200000>;
566 regulator-max-microvolt = <1200000>;
573 regulator-name = "ldo7";
574 regulator-min-microvolt = <2000000>;
575 regulator-max-microvolt = <2000000>;
576 /* Only for efuse reprograming! */
581 /* VDD_3v0: Does not go anywhere */
582 regulator-name = "ldo8";
583 regulator-min-microvolt = <3000000>;
584 regulator-max-microvolt = <3000000>;
591 /* VCC_DV_SDIO: vdds_sdcard */
592 regulator-name = "ldo9";
593 regulator-min-microvolt = <1800000>;
594 regulator-max-microvolt = <3000000>;
599 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
600 regulator-name = "ldoln";
601 regulator-min-microvolt = <1800000>;
602 regulator-max-microvolt = <1800000>;
608 /* VDDA_3V_USB: VDDA_USBHS33 */
609 regulator-name = "ldousb";
610 regulator-min-microvolt = <3250000>;
611 regulator-max-microvolt = <3250000>;
617 /* REGEN3 controls LDO9 supply to card */
618 regulator-name = "regen3";
625 palmas_power_button: palmas_power_button {
626 compatible = "ti,palmas-pwrbutton";
627 interrupt-parent = <&palmas>;
628 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
634 compatible = "ti,twl6040";
638 pinctrl-names = "default";
639 pinctrl-0 = <&twl6040_pins>;
641 interrupts = <GIC_SPI 119 IRQ_TYPE_NONE>; /* IRQ_SYS_2N cascaded to gic */
643 /* audpwron gpio defined in the board specific dts */
645 vio-supply = <&smps7_reg>;
646 v2v1-supply = <&smps9_reg>;
649 clocks = <&clk32kgaudio>;
650 clock-names = "clk32k";
655 pinctrl-names = "default";
656 pinctrl-0 = <&mcpdm_pins>;
659 clock-names = "pdmclk";
665 pinctrl-names = "default";
666 pinctrl-0 = <&mcbsp1_pins>;
671 pinctrl-names = "default";
672 pinctrl-0 = <&mcbsp2_pins>;
677 port2-mode = "ehci-hsic";
678 port3-mode = "ehci-hsic";
682 phys = <0 &hsusb2_phy &hsusb3_phy>;
686 extcon = <&extcon_usb3>;
687 vbus-supply = <&smps10_out1_reg>;
691 extcon = <&extcon_usb3>;
700 pinctrl-names = "default";
701 pinctrl-0 = <&mcspi2_pins>;
705 pinctrl-names = "default";
706 pinctrl-0 = <&mcspi3_pins>;
710 pinctrl-names = "default";
711 pinctrl-0 = <&uart1_pins>;
715 pinctrl-names = "default";
716 pinctrl-0 = <&uart3_pins>;
717 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
718 <&omap5_pmx_core 0x19c>;
722 pinctrl-names = "default";
723 pinctrl-0 = <&uart5_pins>;
727 cpu0-supply = <&smps123_reg>;
737 /* vdda-supply populated in board specific dts file */
739 pinctrl-names = "default";
740 pinctrl-0 = <&dss_hdmi_pins>;
744 remote-endpoint = <&tpd12s015_in>;