0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
0004 */
0005
0006 / {
0007 /* regulator for wl12xx on sdio4 */
0008 wl12xx_vmmc: wl12xx_vmmc {
0009 pinctrl-names = "default";
0010 pinctrl-0 = <&wl12xx_ctrl_pins>;
0011 compatible = "regulator-fixed";
0012 regulator-name = "vwl1271";
0013 regulator-min-microvolt = <1800000>;
0014 regulator-max-microvolt = <1800000>;
0015 gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>; /* gpio 43 */
0016 startup-delay-us = <70000>;
0017 enable-active-high;
0018 };
0019 };
0020
0021 &omap4_pmx_core {
0022 uart2_pins: pinmux_uart2_pins {
0023 pinctrl-single,pins = <
0024 OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts */
0025 OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
0026 OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
0027 OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
0028 >;
0029 };
0030
0031 wl12xx_ctrl_pins: pinmux_wl12xx_ctrl_pins {
0032 pinctrl-single,pins = <
0033 OMAP4_IOPAD(0x062, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a17.gpio_41 (WLAN_IRQ) */
0034 OMAP4_IOPAD(0x064, PIN_OUTPUT | MUX_MODE3) /* gpmc_a18.gpio_42 (BT_EN) */
0035 OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 (WLAN_EN) */
0036 >;
0037 };
0038
0039 mmc4_pins: pinmux_mmc4_pins {
0040 pinctrl-single,pins = <
0041 OMAP4_IOPAD(0x154, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_clk.sdmmc4_clk */
0042 OMAP4_IOPAD(0x156, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_simo.sdmmc4_cmd */
0043 OMAP4_IOPAD(0x158, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_somi.sdmmc4_dat0 */
0044 OMAP4_IOPAD(0x15e, PIN_INPUT_PULLUP | MUX_MODE1) /* uart4_tx.sdmmc4_dat1 */
0045 OMAP4_IOPAD(0x15c, PIN_INPUT_PULLUP | MUX_MODE1) /* uart4_rx.sdmmc4_dat2 */
0046 OMAP4_IOPAD(0x15a, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi4_cs0.sdmmc4_dat3 */
0047 >;
0048 };
0049 };
0050
0051 &uart2 {
0052 pinctrl-names = "default";
0053 pinctrl-0 = <&uart2_pins>;
0054 status = "okay";
0055 };
0056
0057 &mmc4 {
0058 pinctrl-names = "default";
0059 pinctrl-0 = <&mmc4_pins>;
0060 vmmc-supply = <&wl12xx_vmmc>;
0061 non-removable;
0062 bus-width = <4>;
0063 cap-power-off-card;
0064 status = "okay";
0065
0066 #address-cells = <1>;
0067 #size-cells = <0>;
0068 wlcore: wlcore@2 {
0069 compatible = "ti,wl1271";
0070 reg = <2>;
0071 interrupt-parent = <&gpio2>;
0072 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; /* gpio 41 */
0073 ref-clock-frequency = <38400000>;
0074 };
0075 };