xref: /linux/arch/arm/boot/dts/ti/omap/am335x-boneblack-wireless.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4*724ba675SRob Herring */
5*724ba675SRob Herring/dts-v1/;
6*724ba675SRob Herring
7*724ba675SRob Herring#include "am33xx.dtsi"
8*724ba675SRob Herring#include "am335x-bone-common.dtsi"
9*724ba675SRob Herring#include "am335x-boneblack-common.dtsi"
10*724ba675SRob Herring#include "am335x-boneblack-hdmi.dtsi"
11*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
12*724ba675SRob Herring
13*724ba675SRob Herring/ {
14*724ba675SRob Herring	model = "TI AM335x BeagleBone Black Wireless";
15*724ba675SRob Herring	compatible = "ti,am335x-bone-black-wireless", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
16*724ba675SRob Herring
17*724ba675SRob Herring	wlan_en_reg: fixedregulator@2 {
18*724ba675SRob Herring		compatible = "regulator-fixed";
19*724ba675SRob Herring		regulator-name = "wlan-en-regulator";
20*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
21*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
22*724ba675SRob Herring		startup-delay-us = <70000>;
23*724ba675SRob Herring
24*724ba675SRob Herring		/* WL_EN */
25*724ba675SRob Herring		gpio = <&gpio3 9 0>;
26*724ba675SRob Herring		enable-active-high;
27*724ba675SRob Herring	};
28*724ba675SRob Herring};
29*724ba675SRob Herring
30*724ba675SRob Herring&am33xx_pinmux {
31*724ba675SRob Herring	bt_pins: bt-pins {
32*724ba675SRob Herring		pinctrl-single,pins = <
33*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7)	/* gmii1_txd0.gpio0_28 - BT_EN */
34*724ba675SRob Herring		>;
35*724ba675SRob Herring	};
36*724ba675SRob Herring
37*724ba675SRob Herring	mmc3_pins: mmc3-pins {
38*724ba675SRob Herring		pinctrl-single,pins = <
39*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE6 ) /* (L15) gmii1_rxd1.mmc2_clk */
40*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLUP, MUX_MODE6 ) /* (J16) gmii1_txen.mmc2_cmd */
41*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (J17) gmii1_rxdv.mmc2_dat0 */
42*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (J18) gmii1_txd3.mmc2_dat1 */
43*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (K15) gmii1_txd2.mmc2_dat2 */
44*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (H16) gmii1_col.mmc2_dat3 */
45*724ba675SRob Herring		>;
46*724ba675SRob Herring	};
47*724ba675SRob Herring
48*724ba675SRob Herring	uart3_pins: uart3-pins {
49*724ba675SRob Herring		pinctrl-single,pins = <
50*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1)	/* gmii1_rxd3.uart3_rxd */
51*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1)	/* gmii1_rxd2.uart3_txd */
52*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT, MUX_MODE3)		/* mdio_data.uart3_ctsn */
53*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLDOWN, MUX_MODE3)	/* mdio_clk.uart3_rtsn */
54*724ba675SRob Herring		>;
55*724ba675SRob Herring	};
56*724ba675SRob Herring
57*724ba675SRob Herring	wl18xx_pins: wl18xx-pins {
58*724ba675SRob Herring		pinctrl-single,pins = <
59*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* gmii1_txclk.gpio3_9 WL_EN */
60*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* rmii1_refclk.gpio0_29 WL_IRQ */
61*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7)	/* gmii1_rxclk.gpio3_10 LS_BUF_EN */
62*724ba675SRob Herring		>;
63*724ba675SRob Herring	};
64*724ba675SRob Herring};
65*724ba675SRob Herring
66*724ba675SRob Herring&mac_sw {
67*724ba675SRob Herring	status = "disabled";
68*724ba675SRob Herring};
69*724ba675SRob Herring
70*724ba675SRob Herring&mmc3 {
71*724ba675SRob Herring	dmas = <&edma_xbar 12 0 1
72*724ba675SRob Herring		&edma_xbar 13 0 2>;
73*724ba675SRob Herring	dma-names = "tx", "rx";
74*724ba675SRob Herring	status = "okay";
75*724ba675SRob Herring	vmmc-supply = <&wlan_en_reg>;
76*724ba675SRob Herring	bus-width = <4>;
77*724ba675SRob Herring	non-removable;
78*724ba675SRob Herring	cap-power-off-card;
79*724ba675SRob Herring	keep-power-in-suspend;
80*724ba675SRob Herring	pinctrl-names = "default";
81*724ba675SRob Herring	pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
82*724ba675SRob Herring
83*724ba675SRob Herring	#address-cells = <1>;
84*724ba675SRob Herring	#size-cells = <0>;
85*724ba675SRob Herring	wlcore: wlcore@2 {
86*724ba675SRob Herring		compatible = "ti,wl1835";
87*724ba675SRob Herring		reg = <2>;
88*724ba675SRob Herring		interrupt-parent = <&gpio0>;
89*724ba675SRob Herring		interrupts = <29 IRQ_TYPE_EDGE_RISING>;
90*724ba675SRob Herring	};
91*724ba675SRob Herring};
92*724ba675SRob Herring
93*724ba675SRob Herring&uart3 {
94*724ba675SRob Herring	pinctrl-names = "default";
95*724ba675SRob Herring	pinctrl-0 = <&uart3_pins &bt_pins>;
96*724ba675SRob Herring	status = "okay";
97*724ba675SRob Herring
98*724ba675SRob Herring	bluetooth {
99*724ba675SRob Herring		compatible = "ti,wl1835-st";
100*724ba675SRob Herring		enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
101*724ba675SRob Herring	};
102*724ba675SRob Herring};
103*724ba675SRob Herring
104*724ba675SRob Herring&gpio3 {
105*724ba675SRob Herring	ls-buf-en-hog {
106*724ba675SRob Herring		gpio-hog;
107*724ba675SRob Herring		gpios = <10 GPIO_ACTIVE_HIGH>;
108*724ba675SRob Herring		output-high;
109*724ba675SRob Herring		line-name = "LS_BUF_EN";
110*724ba675SRob Herring	};
111*724ba675SRob Herring};
112