omap: start working on 3.18 support
[openwrt.git] / target / linux / omap / patches-3.18 / 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 @@ -26,6 +27,13 @@
12                 };
13         };
14  
15 +       wlan {
16 +               compatible = "wlcore";
17 +
18 +               gpio = <31>;
19 +               board-ref-clock = <4>;
20 +       };
21 +
22         memory {
23                 device_type = "memory";
24                 reg = <0x80000000 0x10000000>; /* 256 MB */
25 @@ -68,6 +76,16 @@
26                 enable-active-high;
27         };
28  
29 +       vmmc_wl: fixedregulator@2 {
30 +               compatible = "regulator-fixed";
31 +               regulator-name = "vmmc-wl";
32 +               regulator-min-microvolt = <1800000>;
33 +               regulator-max-microvolt = <1800000>;
34 +               gpio = <&gpio1 29 0>;
35 +               startup-delay-us = <70000>;
36 +               enable-active-high;
37 +       };
38 +
39         leds {
40                 pinctrl-names = "default";
41                 pinctrl-0 = <&user_leds_s0>;
42 @@ -445,6 +463,20 @@
43                         0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
44                 >;
45         };
46 +
47 +       wilink_pins: pinmux_wilink_pins {
48 +               pinctrl-single,pins = <
49 +                       0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
50 +                       0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
51 +                       0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
52 +                       0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
53 +                       0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
54 +                       0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
55 +                       0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
56 +                       0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
57 +               >;
58 +       };
59 +
60  };
61  
62  &uart0 {
63 @@ -682,6 +714,16 @@
64         pinctrl-0 = <&mmc2_pins>;
65  };
66  
67 +&mmc2 {
68 +       status = "okay";
69 +       vmmc-supply = <&vmmc_wl>;
70 +       bus-width = <4>;
71 +       pinctrl-names = "default";
72 +       pinctrl-0 = <&wilink_pins>;
73 +       ti,non-removable;
74 +       keep-power-in-suspend;
75 +};
76 +
77  &mcasp1 {
78                 pinctrl-names = "default";
79                 pinctrl-0 = <&mcasp1_pins>;