933c059281751c9ae62f52586e917edfc4b0e65b
[openwrt.git] / target / linux / omap / patches-3.12 / 950-am335x-evmsk-wilink-dts.patch
1 --- a/arch/arm/boot/dts/am335x-evmsk.dts
2 +++ b/arch/arm/boot/dts/am335x-evmsk.dts
3 @@ -14,6 +14,7 @@
4  /dts-v1/;
5  
6  #include "am33xx.dtsi"
7 +#include <dt-bindings/interrupt-controller/irq.h>
8  #include <dt-bindings/pwm/pwm.h>
9  
10  / {
11 @@ -200,6 +201,26 @@
12                                 0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
13                         >;
14                 };
15 +
16 +               wilink_pins: pinmux_wilink_pins {
17 +                       pinctrl-single,pins = <
18 +                               0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
19 +                               0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
20 +                               0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
21 +                               0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
22 +                               0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
23 +                               0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
24 +                               0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
25 +                               0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
26 +                       >;
27 +               };
28 +       };
29 +       
30 +       wlan {
31 +               compatible = "wlcore";
32 +               gpio = <31>;
33 +
34 +               board-ref-clock = <4>;
35         };
36  
37         ocp {
38 @@ -335,6 +356,16 @@
39                 regulator-boot-on;
40         };
41  
42 +       vmmc_wl: fixedregulator@2 {
43 +               compatible = "regulator-fixed";
44 +               regulator-name = "vmmc-wl";
45 +               regulator-min-microvolt = <1800000>;
46 +               regulator-max-microvolt = <1800000>;
47 +               gpio = <&gpio1 29 0>;
48 +               startup-delay-us = <70000>;
49 +               enable-active-high;
50 +       };
51 +
52         leds {
53                 pinctrl-names = "default";
54                 pinctrl-0 = <&user_leds_s0>;
55 @@ -535,6 +566,16 @@
56         status = "okay";
57  };
58  
59 +&mmc2 {
60 +       status = "okay";
61 +       vmmc-supply = <&vmmc_wl>;
62 +       bus-width = <4>;
63 +       pinctrl-names = "default";
64 +       pinctrl-0 = <&wilink_pins>;
65 +       ti,non-removable;
66 +       keep-power-in-suspend;
67 +};
68 +
69  &mcasp1 {
70                 pinctrl-names = "default";
71                 pinctrl-0 = <&mcasp1_pins>;