1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
4*724ba675SRob Herring */
5*724ba675SRob Herring
6*724ba675SRob Herring/ {
7*724ba675SRob Herring	/* regulator for wl12xx on sdio4 */
8*724ba675SRob Herring	wl12xx_vmmc: wl12xx_vmmc {
9*724ba675SRob Herring		pinctrl-names = "default";
10*724ba675SRob Herring		pinctrl-0 = <&wl12xx_ctrl_pins>;
11*724ba675SRob Herring		compatible = "regulator-fixed";
12*724ba675SRob Herring		regulator-name = "vwl1271";
13*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
14*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
15*724ba675SRob Herring		gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;	/* gpio 43 */
16*724ba675SRob Herring		startup-delay-us = <70000>;
17*724ba675SRob Herring		enable-active-high;
18*724ba675SRob Herring	};
19*724ba675SRob Herring};
20*724ba675SRob Herring
21*724ba675SRob Herring&omap4_pmx_core {
22*724ba675SRob Herring	uart2_pins: uart2-pins {
23*724ba675SRob Herring		pinctrl-single,pins = <
24*724ba675SRob Herring			OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart2_cts.uart2_cts */
25*724ba675SRob Herring			OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0)		/* uart2_rts.uart2_rts */
26*724ba675SRob Herring			OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart2_rx.uart2_rx */
27*724ba675SRob Herring			OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0)		/* uart2_tx.uart2_tx */
28*724ba675SRob Herring		>;
29*724ba675SRob Herring	};
30*724ba675SRob Herring
31*724ba675SRob Herring	wl12xx_ctrl_pins: wl12xx-ctrl-pins {
32*724ba675SRob Herring		pinctrl-single,pins = <
33*724ba675SRob Herring			OMAP4_IOPAD(0x062, PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a17.gpio_41 (WLAN_IRQ) */
34*724ba675SRob Herring			OMAP4_IOPAD(0x064, PIN_OUTPUT | MUX_MODE3)		/* gpmc_a18.gpio_42 (BT_EN) */
35*724ba675SRob Herring			OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3)		/* gpmc_a19.gpio_43 (WLAN_EN) */
36*724ba675SRob Herring		>;
37*724ba675SRob Herring	};
38*724ba675SRob Herring
39*724ba675SRob Herring	mmc4_pins: mmc4-pins {
40*724ba675SRob Herring		pinctrl-single,pins = <
41*724ba675SRob Herring			OMAP4_IOPAD(0x154, PIN_INPUT_PULLUP | MUX_MODE1)	/* mcspi4_clk.sdmmc4_clk */
42*724ba675SRob Herring			OMAP4_IOPAD(0x156, PIN_INPUT_PULLUP | MUX_MODE1)	/* mcspi4_simo.sdmmc4_cmd */
43*724ba675SRob Herring			OMAP4_IOPAD(0x158, PIN_INPUT_PULLUP | MUX_MODE1)	/* mcspi4_somi.sdmmc4_dat0 */
44*724ba675SRob Herring			OMAP4_IOPAD(0x15e, PIN_INPUT_PULLUP | MUX_MODE1)	/* uart4_tx.sdmmc4_dat1 */
45*724ba675SRob Herring			OMAP4_IOPAD(0x15c, PIN_INPUT_PULLUP | MUX_MODE1)	/* uart4_rx.sdmmc4_dat2 */
46*724ba675SRob Herring			OMAP4_IOPAD(0x15a, PIN_INPUT_PULLUP | MUX_MODE1)	/* mcspi4_cs0.sdmmc4_dat3 */
47*724ba675SRob Herring		>;
48*724ba675SRob Herring	};
49*724ba675SRob Herring};
50*724ba675SRob Herring
51*724ba675SRob Herring&uart2 {
52*724ba675SRob Herring	pinctrl-names = "default";
53*724ba675SRob Herring	pinctrl-0 = <&uart2_pins>;
54*724ba675SRob Herring	status = "okay";
55*724ba675SRob Herring};
56*724ba675SRob Herring
57*724ba675SRob Herring&mmc4 {
58*724ba675SRob Herring	pinctrl-names = "default";
59*724ba675SRob Herring	pinctrl-0 = <&mmc4_pins>;
60*724ba675SRob Herring	vmmc-supply = <&wl12xx_vmmc>;
61*724ba675SRob Herring	non-removable;
62*724ba675SRob Herring	bus-width = <4>;
63*724ba675SRob Herring	cap-power-off-card;
64*724ba675SRob Herring	status = "okay";
65*724ba675SRob Herring
66*724ba675SRob Herring	#address-cells = <1>;
67*724ba675SRob Herring	#size-cells = <0>;
68*724ba675SRob Herring	wlcore: wlcore@2 {
69*724ba675SRob Herring		compatible = "ti,wl1271";
70*724ba675SRob Herring		reg = <2>;
71*724ba675SRob Herring		interrupt-parent = <&gpio2>;
72*724ba675SRob Herring		interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; /* gpio 41 */
73*724ba675SRob Herring		ref-clock-frequency = <38400000>;
74*724ba675SRob Herring	};
75*724ba675SRob Herring};
76