Advertisement
Guest User

am335x-boneblack-wl1835mod-cape.dtsi

a guest
Dec 18th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.88 KB | None | 0 0
  1. /*
  2.  * Copyright 2014 Linaro Limited
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License version 2 as
  6.  * published by the Free Software Foundation.
  7.  */
  8. / {
  9.     wlan_en_reg: fixedregulator@2 {
  10.         compatible = "regulator-fixed";
  11.         regulator-name = "wlan-en-regulator";
  12.         regulator-min-microvolt = <1800000>;
  13.         regulator-max-microvolt = <1800000>;
  14.  
  15.         /* WL_EN */
  16.         gpio = <&gpio0 26 0>;
  17.  
  18.         /* Magic delay */
  19.         startup-delay-us = <70000>;
  20.         enable-active-high;
  21.     };
  22.  
  23.     wlcore {
  24.         compatible = "wlcore";
  25.         /*
  26.          * FIXME: The following is complete CRAP since
  27.          * the vendor driver doesn't follow the gpio
  28.          * binding. Passing in a magic Linux gpio number
  29.          * here until we fix the vendor driver.
  30.          */
  31.         /* WL_IRQ */
  32.         gpio = <27>;
  33.  
  34.         /* Use edge irqs for suspend/resume */
  35.         platform-quirks = <1>;
  36.  
  37.         /* WL12XX_REFCLOCK_38_XTAL */
  38.         board-ref-clock = <4>;
  39.     };
  40.  
  41.     kim {
  42.         compatible = "kim";
  43.         pinctrl-names = "default";
  44.         pinctrl-0 = <&bt_pins>;
  45.         /*
  46.          * FIXME: The following is complete CRAP since
  47.          * the vendor driver doesn't follow the gpio
  48.          * binding. Passing in a magic Linux gpio number
  49.          * here until we fix the vendor driver.
  50.          */
  51.         /* BT_EN */
  52.         nshutdown_gpio = <44>;
  53.         dev_name = "/dev/ttyO4";
  54.         flow_cntrl = <1>;
  55.         baud_rate = <3000000>;
  56.     };
  57.  
  58.     btwilink {
  59.         compatible = "btwilink";
  60.     };
  61. };
  62.  
  63. &am33xx_pinmux {
  64.     bt_pins: pinmux_bt_pins {
  65.         pinctrl-single,pins = <
  66.             0x30 (PIN_OUTPUT_PULLUP | MUX_MODE7)    /* gpmc_ad12.gpio1_12 */
  67.         >;
  68.     };
  69.  
  70.     wlan_pins: pinmux_wlan_pins {
  71.         pinctrl-single,pins = <
  72.             0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
  73.             0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
  74.             0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
  75.             0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
  76.             0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
  77.             0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
  78.         >;
  79.     };
  80.  
  81.     uart4_pins: uart4_pins {
  82.         pinctrl-single,pins = <
  83.             0x70 (PIN_INPUT | MUX_MODE6)        /* gpmc_wait0.uart4_rxd */
  84.             0x74 (PIN_OUTPUT | MUX_MODE6)       /* gpmc_wpn.uart4_txd */
  85.             0xd0 (PIN_OUTPUT | MUX_MODE6)       /* lcd_data12.uart4_ctsn */
  86.             0xd4 (PIN_INPUT | MUX_MODE6)        /* lcd_data13.uart4_rtsn */
  87.         >;
  88.     };
  89. };
  90.  
  91. &gpio1 {
  92.     gpio-hogs = <&emmc_rst &wlan_oe>;
  93.  
  94.     emmc_rst: emmc_rst {
  95.         gpios = <20 0>;
  96.         output-high;
  97.         line-name = "EMMC ResetN";
  98.     };
  99.  
  100.     wlan_oe: wlan_oe {
  101.         gpios = <29 0>;
  102.         output-high;
  103.         line-name = "WLAN OE";
  104.     };
  105. };
  106.  
  107. &mmc2 {
  108.     vmmc-supply = <&wlan_en_reg>;
  109.     pinctrl-names = "default";
  110.     pinctrl-0 = <&wlan_pins>;
  111.     bus-width = <4>;
  112.     cap-power-off-card;
  113.     keep-power-in-suspend;
  114.     ti,non-removable;
  115.     ti,needs-special-hs-handling;
  116.     status = "okay";
  117. };
  118.  
  119. &uart4 {
  120.     pinctrl-names = "default";
  121.     pinctrl-0 = <&uart4_pins>;
  122.     status = "okay";
  123. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement