blob: 8c63ac5bbb12297911324d5df0efb687c4ced6e6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Tony Lindgren0f0cfc62013-12-18 13:13:21 -08002/*
3 * Support for CompuLab CM-T3730
4 */
5/dts-v1/;
6
7#include "omap36xx.dtsi"
8#include "omap3-cm-t3x30.dtsi"
9
10/ {
11 model = "CompuLab CM-T3730";
12 compatible = "compulab,omap3-cm-t3730", "ti,omap36xx", "ti,omap3";
13
14 wl12xx_vmmc2: wl12xx_vmmc2 {
15 compatible = "regulator-fixed";
16 regulator-name = "vw1271";
17 pinctrl-names = "default";
18 pinctrl-0 = <&wl12xx_gpio>;
19 regulator-min-microvolt = <1800000>;
20 regulator-max-microvolt = <1800000>;
21 gpio = <&gpio3 9 GPIO_ACTIVE_HIGH>; /* gpio73 */
22 startup-delay-us = <20000>;
23 enable-active-high;
24 };
25
26 wl12xx_vaux2: wl12xx_vaux2 {
27 compatible = "regulator-fixed";
28 regulator-name = "vwl1271_vaux2";
29 regulator-min-microvolt = <1800000>;
30 regulator-max-microvolt = <1800000>;
31 vin-supply = <&vaux2>;
32 };
33};
34
Dmitry Lifshitze5ee0422014-11-02 13:19:58 +020035&omap3_pmx_wkup {
36 dss_dpi_pins_cm_t3730: pinmux_dss_dpi_pins_cm_t3730 {
37 pinctrl-single,pins = <
38 OMAP3_WKUP_IOPAD(0x2a08, PIN_OUTPUT | MUX_MODE3) /* sys_boot0.dss_data18 */
39 OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE3) /* sys_boot1.dss_data19 */
40 OMAP3_WKUP_IOPAD(0x2a10, PIN_OUTPUT | MUX_MODE3) /* sys_boot3.dss_data20 */
41 OMAP3_WKUP_IOPAD(0x2a12, PIN_OUTPUT | MUX_MODE3) /* sys_boot4.dss_data21 */
42 OMAP3_WKUP_IOPAD(0x2a14, PIN_OUTPUT | MUX_MODE3) /* sys_boot5.dss_data22 */
43 OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | MUX_MODE3) /* sys_boot6.dss_data23 */
44 >;
45 };
46};
47
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080048&omap3_pmx_core {
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080049
50 mmc2_pins: pinmux_mmc2_pins {
51 pinctrl-single,pins = <
Dmitry Lifshitzfb5f8952014-01-12 15:22:44 +020052 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
53 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
54 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
55 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
56 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
57 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080058 >;
59 };
60
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080061 wl12xx_gpio: pinmux_wl12xx_gpio {
62 pinctrl-single,pins = <
Dmitry Lifshitzfb5f8952014-01-12 15:22:44 +020063 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE4) /* dss_data3.gpio_73 */
64 OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE4) /* sdmmc2_dat4.gpio_136 */
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080065 >;
66 };
67};
68
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080069&mmc2 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&mmc2_pins>;
72 vmmc-supply = <&wl12xx_vmmc2>;
Kishon Vijay Abraham I45ea75e2017-06-09 17:38:18 +053073 vqmmc-supply = <&wl12xx_vaux2>;
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080074 non-removable;
75 bus-width = <4>;
76 cap-power-off-card;
Eliad Peller99f84ca2015-03-18 18:38:29 +020077
78 #address-cells = <1>;
79 #size-cells = <0>;
80 wlcore: wlcore@2 {
81 compatible = "ti,wl1271";
82 reg = <2>;
83 interrupt-parent = <&gpio5>;
84 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; /* gpio 136 */
85 ref-clock-frequency = <38400000>;
86 };
Tony Lindgren0f0cfc62013-12-18 13:13:21 -080087};
Dmitry Lifshitze5ee0422014-11-02 13:19:58 +020088
89&dss {
90 status = "ok";
91
92 pinctrl-names = "default";
93 pinctrl-0 = <
94 &dss_dpi_pins_common
95 &dss_dpi_pins_cm_t3730
96 >;
97};
98