0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004 */
0005 /dts-v1/;
0006
0007 #include "am33xx.dtsi"
0008 #include "am335x-bone-common.dtsi"
0009 #include "am335x-boneblack-common.dtsi"
0010 #include "am335x-boneblack-hdmi.dtsi"
0011 #include <dt-bindings/interrupt-controller/irq.h>
0012
0013 / {
0014 model = "TI AM335x BeagleBone Black Wireless";
0015 compatible = "ti,am335x-bone-black-wireless", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
0016
0017 wlan_en_reg: fixedregulator@2 {
0018 compatible = "regulator-fixed";
0019 regulator-name = "wlan-en-regulator";
0020 regulator-min-microvolt = <1800000>;
0021 regulator-max-microvolt = <1800000>;
0022 startup-delay-us = <70000>;
0023
0024 /* WL_EN */
0025 gpio = <&gpio3 9 0>;
0026 enable-active-high;
0027 };
0028 };
0029
0030 &am33xx_pinmux {
0031 bt_pins: pinmux_bt_pins {
0032 pinctrl-single,pins = <
0033 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
0034 >;
0035 };
0036
0037 mmc3_pins: pinmux_mmc3_pins {
0038 pinctrl-single,pins = <
0039 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE6 ) /* (L15) gmii1_rxd1.mmc2_clk */
0040 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLUP, MUX_MODE6 ) /* (J16) gmii1_txen.mmc2_cmd */
0041 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (J17) gmii1_rxdv.mmc2_dat0 */
0042 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (J18) gmii1_txd3.mmc2_dat1 */
0043 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (K15) gmii1_txd2.mmc2_dat2 */
0044 AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLUP, MUX_MODE5 ) /* (H16) gmii1_col.mmc2_dat3 */
0045 >;
0046 };
0047
0048 uart3_pins: pinmux_uart3_pins {
0049 pinctrl-single,pins = <
0050 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1) /* gmii1_rxd3.uart3_rxd */
0051 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* gmii1_rxd2.uart3_txd */
0052 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT, MUX_MODE3) /* mdio_data.uart3_ctsn */
0053 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* mdio_clk.uart3_rtsn */
0054 >;
0055 };
0056
0057 wl18xx_pins: pinmux_wl18xx_pins {
0058 pinctrl-single,pins = <
0059 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gmii1_txclk.gpio3_9 WL_EN */
0060 AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7) /* rmii1_refclk.gpio0_29 WL_IRQ */
0061 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_rxclk.gpio3_10 LS_BUF_EN */
0062 >;
0063 };
0064 };
0065
0066 &mac_sw {
0067 status = "disabled";
0068 };
0069
0070 &mmc3 {
0071 dmas = <&edma_xbar 12 0 1
0072 &edma_xbar 13 0 2>;
0073 dma-names = "tx", "rx";
0074 status = "okay";
0075 vmmc-supply = <&wlan_en_reg>;
0076 bus-width = <4>;
0077 non-removable;
0078 cap-power-off-card;
0079 keep-power-in-suspend;
0080 pinctrl-names = "default";
0081 pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
0082
0083 #address-cells = <1>;
0084 #size-cells = <0>;
0085 wlcore: wlcore@2 {
0086 compatible = "ti,wl1835";
0087 reg = <2>;
0088 interrupt-parent = <&gpio0>;
0089 interrupts = <29 IRQ_TYPE_EDGE_RISING>;
0090 };
0091 };
0092
0093 &uart3 {
0094 pinctrl-names = "default";
0095 pinctrl-0 = <&uart3_pins &bt_pins>;
0096 status = "okay";
0097
0098 bluetooth {
0099 compatible = "ti,wl1835-st";
0100 enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
0101 };
0102 };
0103
0104 &gpio3 {
0105 ls-buf-en-hog {
0106 gpio-hog;
0107 gpios = <10 GPIO_ACTIVE_HIGH>;
0108 output-high;
0109 line-name = "LS_BUF_EN";
0110 };
0111 };