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 vmmcsd_fixed: fixedregulator-mmcsd {
37 compatible = "regulator-fixed";
38 regulator-name = "vmmcsd_fixed";
39 regulator-min-microvolt = <3000000>;
40 regulator-max-microvolt = <3000000>;
43 mmc3_pwrseq: sdhci0_pwrseq {
44 compatible = "mmc-pwrseq-simple";
45 clocks = <&clk32kgaudio>;
46 clock-names = "ext_clock";
49 vmmcsdio_fixed: fixedregulator-mmcsdio {
50 compatible = "regulator-fixed";
51 regulator-name = "vmmcsdio_fixed";
52 regulator-min-microvolt = <1800000>;
53 regulator-max-microvolt = <1800000>;
54 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
56 startup-delay-us = <70000>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&wlan_pins>;
61 /* HS USB Host PHY on PORT 2 */
62 hsusb2_phy: hsusb2_phy {
63 compatible = "usb-nop-xceiv";
64 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
65 clocks = <&auxclk1_ck>;
66 clock-names = "main_clk";
67 clock-frequency = <19200000>;
71 /* HS USB Host PHY on PORT 3 */
72 hsusb3_phy: hsusb3_phy {
73 compatible = "usb-nop-xceiv";
74 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
79 compatible = "ti,tpd12s015";
81 pinctrl-names = "default";
82 pinctrl-0 = <&tpd12s015_pins>;
84 /* gpios defined in the board specific dts */
93 tpd12s015_in: endpoint {
94 remote-endpoint = <&hdmi_out>;
101 tpd12s015_out: endpoint {
102 remote-endpoint = <&hdmi_connector_in>;
109 compatible = "hdmi-connector";
115 hdmi_connector_in: endpoint {
116 remote-endpoint = <&tpd12s015_out>;
122 compatible = "ti,abe-twl6040";
123 ti,model = "omap5-uevm";
126 ti,mclk-freq = <19200000>;
130 ti,twl6040 = <&twl6040>;
134 "Headset Stereophone", "HSOL",
135 "Headset Stereophone", "HSOR",
138 "HSMIC", "Headset Mic",
139 "Headset Mic", "Headset Mic Bias",
146 /* TI trees use GPIO instead of msecure, see also muxing */
149 gpios = <10 GPIO_ACTIVE_HIGH>;
151 line-name = "gpio8_234/msecure";
156 pinctrl-names = "default";
162 twl6040_pins: pinmux_twl6040_pins {
163 pinctrl-single,pins = <
164 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
168 mcpdm_pins: pinmux_mcpdm_pins {
169 pinctrl-single,pins = <
170 OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
171 OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
172 OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
173 OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
174 OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
178 mcbsp1_pins: pinmux_mcbsp1_pins {
179 pinctrl-single,pins = <
180 OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
181 OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
182 OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
183 OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
187 mcbsp2_pins: pinmux_mcbsp2_pins {
188 pinctrl-single,pins = <
189 OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
190 OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
191 OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
192 OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
196 i2c1_pins: pinmux_i2c1_pins {
197 pinctrl-single,pins = <
198 OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
199 OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
203 mcspi2_pins: pinmux_mcspi2_pins {
204 pinctrl-single,pins = <
205 OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
206 OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
207 OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
208 OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
212 mcspi3_pins: pinmux_mcspi3_pins {
213 pinctrl-single,pins = <
214 OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
215 OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
216 OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
217 OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
221 mmc3_pins: pinmux_mmc3_pins {
222 pinctrl-single,pins = <
223 OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
224 OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
225 OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
226 OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
227 OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
228 OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
232 wlan_pins: pinmux_wlan_pins {
233 pinctrl-single,pins = <
234 OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
238 /* TI trees use GPIO mode; msecure mode does not work reliably? */
239 palmas_msecure_pins: palmas_msecure_pins {
240 pinctrl-single,pins = <
241 OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
245 usbhost_pins: pinmux_usbhost_pins {
246 pinctrl-single,pins = <
247 OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
248 OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
250 OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
251 OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
253 OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
254 OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
258 led_gpio_pins: pinmux_led_gpio_pins {
259 pinctrl-single,pins = <
260 OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
264 uart1_pins: pinmux_uart1_pins {
265 pinctrl-single,pins = <
266 OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
267 OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
268 OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
269 OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
273 uart3_pins: pinmux_uart3_pins {
274 pinctrl-single,pins = <
275 OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
276 OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
280 uart5_pins: pinmux_uart5_pins {
281 pinctrl-single,pins = <
282 OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
283 OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
284 OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
285 OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
289 dss_hdmi_pins: pinmux_dss_hdmi_pins {
290 pinctrl-single,pins = <
291 OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
292 OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
293 OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
297 tpd12s015_pins: pinmux_tpd12s015_pins {
298 pinctrl-single,pins = <
299 OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
305 pinctrl-names = "default";
310 palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
311 pinctrl-single,pins = <
312 /* sys_nirq1 is pulled down as the SoC is inverting it for GIC */
313 OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0)
317 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
318 pinctrl-single,pins = <
319 OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
323 wlcore_irq_pin: pinmux_wlcore_irq_pin {
324 pinctrl-single,pins = <
325 OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
331 vmmc-supply = <&ldo9_reg>;
336 vmmc-supply = <&vmmcsd_fixed>;
342 vmmc-supply = <&vmmcsdio_fixed>;
343 mmc-pwrseq = <&mmc3_pwrseq>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&mmc3_pins>;
349 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
350 &omap5_pmx_core 0x16a>;
352 #address-cells = <1>;
355 compatible = "ti,wl1271";
357 pinctrl-names = "default";
358 pinctrl-0 = <&wlcore_irq_pin>;
359 interrupt-parent = <&gpio1>;
360 interrupts = <14 IRQ_TYPE_EDGE_RISING>; /* gpio 14 */
361 ref-clock-frequency = <26000000>;
374 pinctrl-names = "default";
375 pinctrl-0 = <&i2c1_pins>;
377 clock-frequency = <400000>;
380 compatible = "ti,palmas";
381 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
382 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
384 interrupt-controller;
385 #interrupt-cells = <2>;
386 ti,system-power-controller;
387 ti,mux-pad1 = <0xa1>;
388 ti,mux-pad2 = <0x1b>;
389 pinctrl-names = "default";
390 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
393 compatible = "ti,palmas-gpio";
398 extcon_usb3: palmas_usb {
399 compatible = "ti,palmas-usb-vid";
400 ti,enable-vbus-detection;
401 ti,enable-id-detection;
403 id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
406 clk32kgaudio: palmas_clk32k@1 {
407 compatible = "ti,palmas-clk32kgaudio";
412 compatible = "ti,palmas-rtc";
413 interrupt-parent = <&palmas>;
414 interrupts = <8 IRQ_TYPE_NONE>;
415 ti,backup-battery-chargeable;
416 ti,backup-battery-charge-high-current;
420 compatible = "ti,palmas-gpadc";
424 #io-channel-cells = <1>;
425 ti,channel0-current-microamp = <5>;
426 ti,channel3-current-microamp = <10>;
430 compatible = "ti,palmas-pmic";
431 interrupt-parent = <&palmas>;
432 interrupts = <14 IRQ_TYPE_NONE>;
433 interrupt-names = "short-irq";
437 smps123-in-supply = <&vsys_cobra>;
438 smps45-in-supply = <&vsys_cobra>;
439 smps6-in-supply = <&vsys_cobra>;
440 smps7-in-supply = <&vsys_cobra>;
441 smps8-in-supply = <&vsys_cobra>;
442 smps9-in-supply = <&vsys_cobra>;
443 smps10_out2-in-supply = <&vsys_cobra>;
444 smps10_out1-in-supply = <&vsys_cobra>;
445 ldo1-in-supply = <&vsys_cobra>;
446 ldo2-in-supply = <&vsys_cobra>;
447 ldo3-in-supply = <&vdds_1v8_main>;
448 ldo4-in-supply = <&vdds_1v8_main>;
449 ldo5-in-supply = <&vsys_cobra>;
450 ldo6-in-supply = <&vdds_1v8_main>;
451 ldo7-in-supply = <&vsys_cobra>;
452 ldo8-in-supply = <&vsys_cobra>;
453 ldo9-in-supply = <&vmmcsd_fixed>;
454 ldoln-in-supply = <&vsys_cobra>;
455 ldousb-in-supply = <&vsys_cobra>;
458 smps123_reg: smps123 {
460 regulator-name = "smps123";
461 regulator-min-microvolt = < 600000>;
462 regulator-max-microvolt = <1500000>;
469 regulator-name = "smps45";
470 regulator-min-microvolt = < 600000>;
471 regulator-max-microvolt = <1310000>;
477 /* VDD_DDR3 - over VDD_SMPS6 */
478 regulator-name = "smps6";
479 regulator-min-microvolt = <1350000>;
480 regulator-max-microvolt = <1350000>;
487 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
488 regulator-name = "smps7";
489 regulator-min-microvolt = <1800000>;
490 regulator-max-microvolt = <1800000>;
497 regulator-name = "smps8";
498 regulator-min-microvolt = < 600000>;
499 regulator-max-microvolt = <1310000>;
505 /* VDDA_2v1_AUD over VDD_2v1 */
506 regulator-name = "smps9";
507 regulator-min-microvolt = <2100000>;
508 regulator-max-microvolt = <2100000>;
509 ti,smps-range = <0x80>;
512 smps10_out2_reg: smps10_out2 {
514 regulator-name = "smps10_out2";
515 regulator-min-microvolt = <5000000>;
516 regulator-max-microvolt = <5000000>;
521 smps10_out1_reg: smps10_out1 {
523 regulator-name = "smps10_out1";
524 regulator-min-microvolt = <5000000>;
525 regulator-max-microvolt = <5000000>;
529 /* VDDAPHY_CAM: vdda_csiport */
530 regulator-name = "ldo1";
531 regulator-min-microvolt = <1800000>;
532 regulator-max-microvolt = <1800000>;
536 /* VCC_2V8_DISP: Does not go anywhere */
537 regulator-name = "ldo2";
538 regulator-min-microvolt = <2800000>;
539 regulator-max-microvolt = <2800000>;
545 /* VDDAPHY_MDM: vdda_lli */
546 regulator-name = "ldo3";
547 regulator-min-microvolt = <1500000>;
548 regulator-max-microvolt = <1500000>;
550 /* Only if Modem is used */
555 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
556 regulator-name = "ldo4";
557 regulator-min-microvolt = <1800000>;
558 regulator-max-microvolt = <1800000>;
562 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
563 regulator-name = "ldo5";
564 regulator-min-microvolt = <1800000>;
565 regulator-max-microvolt = <1800000>;
571 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
572 regulator-name = "ldo6";
573 regulator-min-microvolt = <1200000>;
574 regulator-max-microvolt = <1200000>;
581 regulator-name = "ldo7";
582 regulator-min-microvolt = <2000000>;
583 regulator-max-microvolt = <2000000>;
584 /* Only for efuse reprograming! */
589 /* VDD_3v0: Does not go anywhere */
590 regulator-name = "ldo8";
591 regulator-min-microvolt = <3000000>;
592 regulator-max-microvolt = <3000000>;
599 /* VCC_DV_SDIO: vdds_sdcard */
600 regulator-name = "ldo9";
601 regulator-min-microvolt = <1800000>;
602 regulator-max-microvolt = <3000000>;
607 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
608 regulator-name = "ldoln";
609 regulator-min-microvolt = <1800000>;
610 regulator-max-microvolt = <1800000>;
616 /* VDDA_3V_USB: VDDA_USBHS33 */
617 regulator-name = "ldousb";
618 regulator-min-microvolt = <3250000>;
619 regulator-max-microvolt = <3250000>;
625 /* REGEN3 controls LDO9 supply to card */
626 regulator-name = "regen3";
633 palmas_power_button: palmas_power_button {
634 compatible = "ti,palmas-pwrbutton";
635 interrupt-parent = <&palmas>;
636 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
642 compatible = "ti,twl6040";
646 pinctrl-names = "default";
647 pinctrl-0 = <&twl6040_pins>;
649 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
650 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_LOW>;
652 /* audpwron gpio defined in the board specific dts */
654 vio-supply = <&smps7_reg>;
655 v2v1-supply = <&smps9_reg>;
658 clocks = <&clk32kgaudio>, <&fref_xtal_ck>;
659 clock-names = "clk32k", "mclk";
664 pinctrl-names = "default";
665 pinctrl-0 = <&mcpdm_pins>;
668 clock-names = "pdmclk";
674 pinctrl-names = "default";
675 pinctrl-0 = <&mcbsp1_pins>;
680 pinctrl-names = "default";
681 pinctrl-0 = <&mcbsp2_pins>;
686 port2-mode = "ehci-hsic";
687 port3-mode = "ehci-hsic";
691 phys = <0 &hsusb2_phy &hsusb3_phy>;
695 extcon = <&extcon_usb3>;
696 vbus-supply = <&smps10_out1_reg>;
700 extcon = <&extcon_usb3>;
709 pinctrl-names = "default";
710 pinctrl-0 = <&mcspi2_pins>;
714 pinctrl-names = "default";
715 pinctrl-0 = <&mcspi3_pins>;
719 pinctrl-names = "default";
720 pinctrl-0 = <&uart1_pins>;
724 pinctrl-names = "default";
725 pinctrl-0 = <&uart3_pins>;
726 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
727 <&omap5_pmx_core 0x19c>;
731 pinctrl-names = "default";
732 pinctrl-0 = <&uart5_pins>;
736 cpu0-supply = <&smps123_reg>;
746 /* vdda-supply populated in board specific dts file */
748 pinctrl-names = "default";
749 pinctrl-0 = <&dss_hdmi_pins>;
753 remote-endpoint = <&tpd12s015_in>;