~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/ti/omap/am335x-bonegreen-wireless.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*
  3  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
  4  */
  5 /dts-v1/;
  6 
  7 #include "am33xx.dtsi"
  8 #include "am335x-bone-common.dtsi"
  9 #include "am335x-bonegreen-common.dtsi"
 10 #include <dt-bindings/interrupt-controller/irq.h>
 11 
 12 / {
 13         model = "TI AM335x BeagleBone Green Wireless";
 14         compatible = "ti,am335x-bone-green-wireless", "ti,am335x-bone-green", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
 15 
 16         wlan_en_reg: fixedregulator@2 {
 17                 compatible = "regulator-fixed";
 18                 regulator-name = "wlan-en-regulator";
 19                 regulator-min-microvolt = <1800000>;
 20                 regulator-max-microvolt = <1800000>;
 21                 startup-delay-us = <70000>;
 22 
 23                 /* WL_EN */
 24                 gpio = <&gpio0 26 0>;
 25                 enable-active-high;
 26         };
 27 };
 28 
 29 &am33xx_pinmux {
 30         bt_pins: bt-pins {
 31                 pinctrl-single,pins = <
 32                         AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_OUTPUT_PULLUP, MUX_MODE7)      /* gpmc_ad12.gpio1_28 BT_EN */
 33                 >;
 34         };
 35 
 36         mmc3_pins: mmc3-pins {
 37                 pinctrl-single,pins = <
 38                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLUP, MUX_MODE3)       /* gpmc_ad12.mmc2_dat0 */
 39                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLUP, MUX_MODE3)       /* gpmc_ad13.mmc2_dat1 */
 40                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLUP, MUX_MODE3)       /* gpmc_ad14.mmc2_dat2 */
 41                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE3)       /* gpmc_ad15.mmc2_dat3 */
 42                         AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_INPUT_PULLUP, MUX_MODE3)       /* gpmc_csn3.mmc2_cmd */
 43                         AM33XX_PADCONF(AM335X_PIN_GPMC_CLK, PIN_INPUT_PULLUP, MUX_MODE3)        /* gpmc_clk.mmc2_clk */
 44                 >;
 45         };
 46 
 47         uart3_pins: uart3-pins {
 48                 pinctrl-single,pins = <
 49                         AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1)       /* gmii1_rxd3.uart3_rxd */
 50                         AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1)    /* gmii1_rxd2.uart3_txd */
 51                         AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT, MUX_MODE3)           /* mdio_data.uart3_ctsn */
 52                         AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLDOWN, MUX_MODE3)  /* mdio_clk.uart3_rtsn */
 53                 >;
 54         };
 55 
 56         wl18xx_pins: wl18xx-pins {
 57                 pinctrl-single,pins = <
 58                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT_PULLDOWN, MUX_MODE7)    /* gpmc_ad10.gpio0_26 WL_EN */
 59                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_INPUT_PULLDOWN, MUX_MODE7)     /* gpmc_ad11.gpio0_27 WL_IRQ */
 60                         AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT_PULLUP, MUX_MODE7)      /* gpmc_csn0.gpio1_29 LS_BUF_EN */
 61                 >;
 62         };
 63 };
 64 
 65 &mac_sw {
 66         status = "disabled";
 67 };
 68 
 69 &mmc3 {
 70         dmas = <&edma_xbar 12 0 1
 71                 &edma_xbar 13 0 2>;
 72         dma-names = "tx", "rx";
 73         status = "okay";
 74         vmmc-supply = <&wlan_en_reg>;
 75         bus-width = <4>;
 76         non-removable;
 77         cap-power-off-card;
 78         keep-power-in-suspend;
 79         pinctrl-names = "default";
 80         pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
 81 
 82         #address-cells = <1>;
 83         #size-cells = <0>;
 84         wlcore: wlcore@2 {
 85                 compatible = "ti,wl1835";
 86                 reg = <2>;
 87                 interrupt-parent = <&gpio0>;
 88                 interrupts = <27 IRQ_TYPE_EDGE_RISING>;
 89         };
 90 };
 91 
 92 &uart3 {
 93         pinctrl-names = "default";
 94         pinctrl-0 = <&uart3_pins &bt_pins>;
 95         status = "okay";
 96 
 97         bluetooth {
 98                 compatible = "ti,wl1835-st";
 99                 enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
100         };
101 };
102 
103 &gpio1 {
104         ls-buf-en-hog {
105                 gpio-hog;
106                 gpios = <29 GPIO_ACTIVE_HIGH>;
107                 output-high;
108                 line-name = "LS_BUF_EN";
109         };
110 };
111 
112 /* BT_AUD_OUT from wl1835 has to be pulled low when WL_EN is activated.*/
113 /* in case it isn't, wilink8 ends up in one of the test modes that     */
114 /* intruces various issues (elp wkaeup timeouts etc.)                  */
115 /* On the BBGW this pin is routed through the level shifter (U21) that */
116 /* introduces a pullup on the line and wilink8 ends up in a bad state. */
117 /* use a gpio hog to force this pin low. An alternative may be adding  */
118 /* an external pulldown on U21 pin 4.                                  */
119 
120 &gpio3 {
121         bt-aud-in-hog {
122                 gpio-hog;
123                 gpios = <16 GPIO_ACTIVE_HIGH>;
124                 output-low;
125                 line-name = "MCASP0_AHCLKR";
126         };
127 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php