1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/interrupt-controller/arm-gic.h>
18 vmain: fixedregulator-vmain {
19 compatible = "regulator-fixed";
20 regulator-name = "vmain";
21 regulator-min-microvolt = <5000000>;
22 regulator-max-microvolt = <5000000>;
25 vsys_cobra: fixedregulator-vsys_cobra {
26 compatible = "regulator-fixed";
27 regulator-name = "vsys_cobra";
28 vin-supply = <&vmain>;
29 regulator-min-microvolt = <5000000>;
30 regulator-max-microvolt = <5000000>;
33 vmmcsd_fixed: fixedregulator-mmcsd {
34 compatible = "regulator-fixed";
35 regulator-name = "vmmcsd_fixed";
36 regulator-min-microvolt = <3000000>;
37 regulator-max-microvolt = <3000000>;
40 mmc3_pwrseq: sdhci0_pwrseq {
41 compatible = "mmc-pwrseq-simple";
42 clocks = <&clk32kgaudio>;
43 clock-names = "ext_clock";
46 vmmcsdio_fixed: fixedregulator-mmcsdio {
47 compatible = "regulator-fixed";
48 regulator-name = "vmmcsdio_fixed";
49 regulator-min-microvolt = <1800000>;
50 regulator-max-microvolt = <1800000>;
51 gpio = <&gpio5 12 GPIO_ACTIVE_HIGH>; /* gpio140 WLAN_EN */
53 startup-delay-us = <70000>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&wlan_pins>;
58 /* HS USB Host PHY on PORT 2 */
59 hsusb2_phy: hsusb2_phy {
60 compatible = "usb-nop-xceiv";
61 reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>; /* gpio3_80 HUB_NRESET */
62 clocks = <&auxclk1_ck>;
63 clock-names = "main_clk";
64 clock-frequency = <19200000>;
68 /* HS USB Host PHY on PORT 3 */
69 hsusb3_phy: hsusb3_phy {
70 compatible = "usb-nop-xceiv";
71 reset-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; /* gpio3_79 ETH_NRESET */
76 compatible = "ti,tpd12s015";
78 pinctrl-names = "default";
79 pinctrl-0 = <&tpd12s015_pins>;
81 /* gpios defined in the board specific dts */
90 tpd12s015_in: endpoint {
91 remote-endpoint = <&hdmi_out>;
98 tpd12s015_out: endpoint {
99 remote-endpoint = <&hdmi_connector_in>;
106 compatible = "hdmi-connector";
112 hdmi_connector_in: endpoint {
113 remote-endpoint = <&tpd12s015_out>;
119 compatible = "ti,abe-twl6040";
120 ti,model = "omap5-uevm";
123 ti,mclk-freq = <19200000>;
127 ti,twl6040 = <&twl6040>;
131 "Headset Stereophone", "HSOL",
132 "Headset Stereophone", "HSOR",
135 "HSMIC", "Headset Mic",
136 "Headset Mic", "Headset Mic Bias",
143 /* TI trees use GPIO instead of msecure, see also muxing */
146 gpios = <10 GPIO_ACTIVE_HIGH>;
148 line-name = "gpio8_234/msecure";
153 pinctrl-names = "default";
159 twl6040_pins: pinmux_twl6040_pins {
160 pinctrl-single,pins = <
161 OMAP5_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE6) /* mcspi1_somi.gpio5_141 */
165 mcpdm_pins: pinmux_mcpdm_pins {
166 pinctrl-single,pins = <
167 OMAP5_IOPAD(0x182, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abe_clks.abe_clks */
168 OMAP5_IOPAD(0x19c, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_ul_data.abemcpdm_ul_data */
169 OMAP5_IOPAD(0x19e, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_dl_data.abemcpdm_dl_data */
170 OMAP5_IOPAD(0x1a0, PIN_INPUT_PULLUP | MUX_MODE0) /* abemcpdm_frame.abemcpdm_frame */
171 OMAP5_IOPAD(0x1a2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcpdm_lb_clk.abemcpdm_lb_clk */
175 mcbsp1_pins: pinmux_mcbsp1_pins {
176 pinctrl-single,pins = <
177 OMAP5_IOPAD(0x18c, PIN_INPUT | MUX_MODE1) /* abedmic_clk2.abemcbsp1_fsx */
178 OMAP5_IOPAD(0x18e, PIN_OUTPUT_PULLDOWN | MUX_MODE1) /* abedmic_clk3.abemcbsp1_dx */
179 OMAP5_IOPAD(0x190, PIN_INPUT | MUX_MODE1) /* abeslimbus1_clock.abemcbsp1_clkx */
180 OMAP5_IOPAD(0x192, PIN_INPUT_PULLDOWN | MUX_MODE1) /* abeslimbus1_data.abemcbsp1_dr */
184 mcbsp2_pins: pinmux_mcbsp2_pins {
185 pinctrl-single,pins = <
186 OMAP5_IOPAD(0x194, PIN_INPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dr.abemcbsp2_dr */
187 OMAP5_IOPAD(0x196, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* abemcbsp2_dx.abemcbsp2_dx */
188 OMAP5_IOPAD(0x198, PIN_INPUT | MUX_MODE0) /* abemcbsp2_fsx.abemcbsp2_fsx */
189 OMAP5_IOPAD(0x19a, PIN_INPUT | MUX_MODE0) /* abemcbsp2_clkx.abemcbsp2_clkx */
193 i2c1_pins: pinmux_i2c1_pins {
194 pinctrl-single,pins = <
195 OMAP5_IOPAD(0x1f2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
196 OMAP5_IOPAD(0x1f4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
200 mcspi2_pins: pinmux_mcspi2_pins {
201 pinctrl-single,pins = <
202 OMAP5_IOPAD(0x0fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */
203 OMAP5_IOPAD(0x0fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */
204 OMAP5_IOPAD(0x100, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi2_somi */
205 OMAP5_IOPAD(0x102, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0 */
209 mcspi3_pins: pinmux_mcspi3_pins {
210 pinctrl-single,pins = <
211 OMAP5_IOPAD(0x0b8, PIN_INPUT | MUX_MODE1) /* mcspi3_somi */
212 OMAP5_IOPAD(0x0ba, PIN_INPUT | MUX_MODE1) /* mcspi3_cs0 */
213 OMAP5_IOPAD(0x0bc, PIN_INPUT | MUX_MODE1) /* mcspi3_simo */
214 OMAP5_IOPAD(0x0be, PIN_INPUT | MUX_MODE1) /* mcspi3_clk */
218 mmc3_pins: pinmux_mmc3_pins {
219 pinctrl-single,pins = <
220 OMAP5_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
221 OMAP5_IOPAD(0x01a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
222 OMAP5_IOPAD(0x01a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
223 OMAP5_IOPAD(0x01aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
224 OMAP5_IOPAD(0x01ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
225 OMAP5_IOPAD(0x01ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
229 wlan_pins: pinmux_wlan_pins {
230 pinctrl-single,pins = <
231 OMAP5_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE6) /* mcspi1_clk.gpio5_140 */
235 /* TI trees use GPIO mode; msecure mode does not work reliably? */
236 palmas_msecure_pins: palmas_msecure_pins {
237 pinctrl-single,pins = <
238 OMAP5_IOPAD(0x180, PIN_OUTPUT | MUX_MODE6) /* gpio8_234 */
242 usbhost_pins: pinmux_usbhost_pins {
243 pinctrl-single,pins = <
244 OMAP5_IOPAD(0x0c4, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_strobe */
245 OMAP5_IOPAD(0x0c6, PIN_INPUT | MUX_MODE0) /* usbb2_hsic_data */
247 OMAP5_IOPAD(0x1de, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_strobe */
248 OMAP5_IOPAD(0x1e0, PIN_INPUT | MUX_MODE0) /* usbb3_hsic_data */
250 OMAP5_IOPAD(0x0b0, PIN_OUTPUT | MUX_MODE6) /* gpio3_80 HUB_NRESET */
251 OMAP5_IOPAD(0x0ae, PIN_OUTPUT | MUX_MODE6) /* gpio3_79 ETH_NRESET */
255 led_gpio_pins: pinmux_led_gpio_pins {
256 pinctrl-single,pins = <
257 OMAP5_IOPAD(0x1d6, PIN_OUTPUT | MUX_MODE6) /* uart3_cts_rctx.gpio5_153 */
261 uart1_pins: pinmux_uart1_pins {
262 pinctrl-single,pins = <
263 OMAP5_IOPAD(0x0a0, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_cts */
264 OMAP5_IOPAD(0x0a2, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_tx.uart1_cts */
265 OMAP5_IOPAD(0x0a4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rx.uart1_rts */
266 OMAP5_IOPAD(0x0a6, PIN_OUTPUT | MUX_MODE0) /* uart1_rx.uart1_rts */
270 uart3_pins: pinmux_uart3_pins {
271 pinctrl-single,pins = <
272 OMAP5_IOPAD(0x1da, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_irsd.uart3_tx_irtx */
273 OMAP5_IOPAD(0x1dc, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_rx_irrx.uart3_usbb3_hsic */
277 uart5_pins: pinmux_uart5_pins {
278 pinctrl-single,pins = <
279 OMAP5_IOPAD(0x1b0, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_rx.uart5_rx */
280 OMAP5_IOPAD(0x1b2, PIN_OUTPUT | MUX_MODE0) /* uart5_tx.uart5_tx */
281 OMAP5_IOPAD(0x1b4, PIN_INPUT_PULLUP | MUX_MODE0) /* uart5_cts.uart5_rts */
282 OMAP5_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE0) /* uart5_cts.uart5_rts */
286 dss_hdmi_pins: pinmux_dss_hdmi_pins {
287 pinctrl-single,pins = <
288 OMAP5_IOPAD(0x13c, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
289 OMAP5_IOPAD(0x140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */
290 OMAP5_IOPAD(0x142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */
294 tpd12s015_pins: pinmux_tpd12s015_pins {
295 pinctrl-single,pins = <
296 OMAP5_IOPAD(0x13e, PIN_INPUT_PULLDOWN | MUX_MODE6) /* hdmi_hpd.gpio7_193 */
302 pinctrl-names = "default";
307 palmas_sys_nirq_pins: pinmux_palmas_sys_nirq_pins {
308 pinctrl-single,pins = <
309 /* sys_nirq1 is pulled down as the SoC is inverting it for GIC */
310 OMAP5_IOPAD(0x068, PIN_INPUT_PULLUP | MUX_MODE0)
314 usbhost_wkup_pins: pinmux_usbhost_wkup_pins {
315 pinctrl-single,pins = <
316 OMAP5_IOPAD(0x05a, PIN_OUTPUT | MUX_MODE0) /* fref_clk1_out, USB hub clk */
320 wlcore_irq_pin: pinmux_wlcore_irq_pin {
321 pinctrl-single,pins = <
322 OMAP5_IOPAD(0x40, PIN_INPUT | MUX_MODE6) /* llia_wakereqin.gpio1_wk14 */
328 vmmc-supply = <&ldo9_reg>;
333 vmmc-supply = <&vmmcsd_fixed>;
339 vmmc-supply = <&vmmcsdio_fixed>;
340 mmc-pwrseq = <&mmc3_pwrseq>;
344 pinctrl-names = "default";
345 pinctrl-0 = <&mmc3_pins>;
346 interrupts-extended = <&wakeupgen GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH
347 &omap5_pmx_core 0x16a>;
349 #address-cells = <1>;
352 compatible = "ti,wl1271";
354 pinctrl-names = "default";
355 pinctrl-0 = <&wlcore_irq_pin>;
356 interrupt-parent = <&gpio1>;
357 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; /* gpio 14 */
358 ref-clock-frequency = <26000000>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&i2c1_pins>;
374 clock-frequency = <400000>;
377 compatible = "ti,palmas";
378 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
379 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_LOW>;
381 interrupt-controller;
382 #interrupt-cells = <2>;
383 ti,system-power-controller;
384 ti,mux-pad1 = <0xa1>;
385 ti,mux-pad2 = <0x1b>;
386 pinctrl-names = "default";
387 pinctrl-0 = <&palmas_sys_nirq_pins &palmas_msecure_pins>;
390 compatible = "ti,palmas-gpio";
395 extcon_usb3: palmas_usb {
396 compatible = "ti,palmas-usb-vid";
397 ti,enable-vbus-detection;
398 ti,enable-id-detection;
400 id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
403 clk32kgaudio: palmas_clk32k@1 {
404 compatible = "ti,palmas-clk32kgaudio";
409 compatible = "ti,palmas-rtc";
410 interrupt-parent = <&palmas>;
411 interrupts = <8 IRQ_TYPE_NONE>;
412 ti,backup-battery-chargeable;
413 ti,backup-battery-charge-high-current;
417 compatible = "ti,palmas-gpadc";
421 #io-channel-cells = <1>;
422 ti,channel0-current-microamp = <5>;
423 ti,channel3-current-microamp = <10>;
427 compatible = "ti,palmas-pmic";
428 interrupt-parent = <&palmas>;
429 interrupts = <14 IRQ_TYPE_NONE>;
430 interrupt-names = "short-irq";
434 smps123-in-supply = <&vsys_cobra>;
435 smps45-in-supply = <&vsys_cobra>;
436 smps6-in-supply = <&vsys_cobra>;
437 smps7-in-supply = <&vsys_cobra>;
438 smps8-in-supply = <&vsys_cobra>;
439 smps9-in-supply = <&vsys_cobra>;
440 smps10_out2-in-supply = <&vsys_cobra>;
441 smps10_out1-in-supply = <&vsys_cobra>;
442 ldo1-in-supply = <&vsys_cobra>;
443 ldo2-in-supply = <&vsys_cobra>;
444 ldo3-in-supply = <&vdds_1v8_main>;
445 ldo4-in-supply = <&vdds_1v8_main>;
446 ldo5-in-supply = <&vsys_cobra>;
447 ldo6-in-supply = <&vdds_1v8_main>;
448 ldo7-in-supply = <&vsys_cobra>;
449 ldo8-in-supply = <&vsys_cobra>;
450 ldo9-in-supply = <&vmmcsd_fixed>;
451 ldoln-in-supply = <&vsys_cobra>;
452 ldousb-in-supply = <&vsys_cobra>;
455 smps123_reg: smps123 {
457 regulator-name = "smps123";
458 regulator-min-microvolt = < 600000>;
459 regulator-max-microvolt = <1500000>;
466 regulator-name = "smps45";
467 regulator-min-microvolt = < 600000>;
468 regulator-max-microvolt = <1310000>;
474 /* VDD_DDR3 - over VDD_SMPS6 */
475 regulator-name = "smps6";
476 regulator-min-microvolt = <1350000>;
477 regulator-max-microvolt = <1350000>;
484 /* VDDS_1v8_OMAP over VDDS_1v8_MAIN */
485 regulator-name = "smps7";
486 regulator-min-microvolt = <1800000>;
487 regulator-max-microvolt = <1800000>;
494 regulator-name = "smps8";
495 regulator-min-microvolt = < 600000>;
496 regulator-max-microvolt = <1310000>;
502 /* VDDA_2v1_AUD over VDD_2v1 */
503 regulator-name = "smps9";
504 regulator-min-microvolt = <2100000>;
505 regulator-max-microvolt = <2100000>;
506 ti,smps-range = <0x80>;
509 smps10_out2_reg: smps10_out2 {
511 regulator-name = "smps10_out2";
512 regulator-min-microvolt = <5000000>;
513 regulator-max-microvolt = <5000000>;
518 smps10_out1_reg: smps10_out1 {
520 regulator-name = "smps10_out1";
521 regulator-min-microvolt = <5000000>;
522 regulator-max-microvolt = <5000000>;
526 /* VDDAPHY_CAM: vdda_csiport */
527 regulator-name = "ldo1";
528 regulator-min-microvolt = <1800000>;
529 regulator-max-microvolt = <1800000>;
533 /* VCC_2V8_DISP: Does not go anywhere */
534 regulator-name = "ldo2";
535 regulator-min-microvolt = <2800000>;
536 regulator-max-microvolt = <2800000>;
542 /* VDDAPHY_MDM: vdda_lli */
543 regulator-name = "ldo3";
544 regulator-min-microvolt = <1500000>;
545 regulator-max-microvolt = <1500000>;
547 /* Only if Modem is used */
552 /* VDDAPHY_DISP: vdda_dsiport/hdmi */
553 regulator-name = "ldo4";
554 regulator-min-microvolt = <1800000>;
555 regulator-max-microvolt = <1800000>;
559 /* VDDA_1V8_PHY: usb/sata/hdmi.. */
560 regulator-name = "ldo5";
561 regulator-min-microvolt = <1800000>;
562 regulator-max-microvolt = <1800000>;
568 /* VDDS_1V2_WKUP: hsic/ldo_emu_wkup */
569 regulator-name = "ldo6";
570 regulator-min-microvolt = <1200000>;
571 regulator-max-microvolt = <1200000>;
578 regulator-name = "ldo7";
579 regulator-min-microvolt = <2000000>;
580 regulator-max-microvolt = <2000000>;
581 /* Only for efuse reprograming! */
586 /* VDD_3v0: Does not go anywhere */
587 regulator-name = "ldo8";
588 regulator-min-microvolt = <3000000>;
589 regulator-max-microvolt = <3000000>;
596 /* VCC_DV_SDIO: vdds_sdcard */
597 regulator-name = "ldo9";
598 regulator-min-microvolt = <1800000>;
599 regulator-max-microvolt = <3000000>;
604 /* VDDA_1v8_REF: vdds_osc/mm_l4per.. */
605 regulator-name = "ldoln";
606 regulator-min-microvolt = <1800000>;
607 regulator-max-microvolt = <1800000>;
613 /* VDDA_3V_USB: VDDA_USBHS33 */
614 regulator-name = "ldousb";
615 regulator-min-microvolt = <3250000>;
616 regulator-max-microvolt = <3250000>;
622 /* REGEN3 controls LDO9 supply to card */
623 regulator-name = "regen3";
630 palmas_power_button: palmas_power_button {
631 compatible = "ti,palmas-pwrbutton";
632 interrupt-parent = <&palmas>;
633 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
639 compatible = "ti,twl6040";
643 pinctrl-names = "default";
644 pinctrl-0 = <&twl6040_pins>;
646 /* sys_nirq/ext_sys_irq pins get inverted at mpuss wakeupgen */
647 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_LOW>;
649 /* audpwron gpio defined in the board specific dts */
651 vio-supply = <&smps7_reg>;
652 v2v1-supply = <&smps9_reg>;
655 clocks = <&clk32kgaudio>, <&fref_xtal_ck>;
656 clock-names = "clk32k", "mclk";
661 /* Module on the SoC needs external clock from the PMIC */
662 pinctrl-names = "default";
663 pinctrl-0 = <&mcpdm_pins>;
669 clock-names = "pdmclk";
673 pinctrl-names = "default";
674 pinctrl-0 = <&mcbsp1_pins>;
679 pinctrl-names = "default";
680 pinctrl-0 = <&mcbsp2_pins>;
685 port2-mode = "ehci-hsic";
686 port3-mode = "ehci-hsic";
690 phys = <0 &hsusb2_phy &hsusb3_phy>;
694 extcon = <&extcon_usb3>;
695 vbus-supply = <&smps10_out1_reg>;
699 extcon = <&extcon_usb3>;
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>;