Merge branch '4.14-features' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / omap3-cm-t3730.dts
1 /*
2  * Support for CompuLab CM-T3730
3  */
4 /dts-v1/;
5
6 #include "omap36xx.dtsi"
7 #include "omap3-cm-t3x30.dtsi"
8
9 / {
10         model = "CompuLab CM-T3730";
11         compatible = "compulab,omap3-cm-t3730", "ti,omap36xx", "ti,omap3";
12
13         wl12xx_vmmc2: wl12xx_vmmc2 {
14                 compatible = "regulator-fixed";
15                 regulator-name = "vw1271";
16                 pinctrl-names = "default";
17                 pinctrl-0 = <&wl12xx_gpio>;
18                 regulator-min-microvolt = <1800000>;
19                 regulator-max-microvolt = <1800000>;
20                 gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>;   /* gpio73 */
21                 startup-delay-us = <20000>;
22                 enable-active-high;
23         };
24
25         wl12xx_vaux2: wl12xx_vaux2 {
26                 compatible = "regulator-fixed";
27                 regulator-name = "vwl1271_vaux2";
28                 regulator-min-microvolt = <1800000>;
29                 regulator-max-microvolt = <1800000>;
30                 vin-supply = <&vaux2>;
31         };
32 };
33
34 &omap3_pmx_wkup {
35         dss_dpi_pins_cm_t3730: pinmux_dss_dpi_pins_cm_t3730 {
36                 pinctrl-single,pins = <
37                         OMAP3_WKUP_IOPAD(0x2a08, PIN_OUTPUT | MUX_MODE3)   /* sys_boot0.dss_data18 */
38                         OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE3)   /* sys_boot1.dss_data19 */
39                         OMAP3_WKUP_IOPAD(0x2a10, PIN_OUTPUT | MUX_MODE3)   /* sys_boot3.dss_data20 */
40                         OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE3)   /* sys_boot4.dss_data21 */
41                         OMAP3_WKUP_IOPAD(0x2a14, PIN_OUTPUT | MUX_MODE3)   /* sys_boot5.dss_data22 */
42                         OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | MUX_MODE3)   /* sys_boot6.dss_data23 */
43                 >;
44         };
45 };
46
47 &omap3_pmx_core {
48
49         mmc2_pins: pinmux_mmc2_pins {
50                 pinctrl-single,pins = <
51                         OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
52                         OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
53                         OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
54                         OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
55                         OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
56                         OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
57                 >;
58         };
59
60         wl12xx_gpio: pinmux_wl12xx_gpio {
61                 pinctrl-single,pins = <
62                         OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE4)       /* dss_data3.gpio_73 */
63                         OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE4)        /* sdmmc2_dat4.gpio_136 */
64                 >;
65         };
66 };
67
68 &mmc2 {
69         pinctrl-names = "default";
70         pinctrl-0 = <&mmc2_pins>;
71         vmmc-supply = <&wl12xx_vmmc2>;
72         vqmmc-supply = <&wl12xx_vaux2>;
73         non-removable;
74         bus-width = <4>;
75         cap-power-off-card;
76
77         #address-cells = <1>;
78         #size-cells = <0>;
79         wlcore: wlcore@2 {
80                 compatible = "ti,wl1271";
81                 reg = <2>;
82                 interrupt-parent = <&gpio5>;
83                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; /* gpio 136 */
84                 ref-clock-frequency = <38400000>;
85         };
86 };
87
88 &dss {
89         status = "ok";
90
91         pinctrl-names = "default";
92         pinctrl-0 = <
93                 &dss_dpi_pins_common
94                 &dss_dpi_pins_cm_t3730
95         >;
96 };
97