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