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