summaryrefslogtreecommitdiff
path: root/target/linux/sunxi/patches-4.1/201-dt-sun7i-add-oob-irq-to-bcm-sdio-wifi.patch
blob: 0322387aa706ccfd863154e1decef3215632a82a (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
From e4127db9b980a5684c537d9010ed2aaa05a1e79a Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Sat, 24 May 2014 20:53:49 +0200
Subject: [PATCH] ARM: dts: sun7i: Add OOB irq support to boards with broadcom
 sdio wifi

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 11 +++++++++++
 arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts  | 11 +++++++++++
 2 files changed, 22 insertions(+)

--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -71,12 +71,23 @@
 		};
 
 		mmc3: mmc@01c12000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
 			pinctrl-names = "default";
 			pinctrl-0 = <&mmc3_pins_a>;
 			vmmc-supply = <&reg_vmmc3>;
 			bus-width = <4>;
 			non-removable;
 			status = "okay";
+
+			brcmf: bcrmf@1 {
+				reg = <1>;
+				compatible = "brcm,bcm4329-fmac";
+				interrupt-parent = <&pio>;
+				interrupts = <10 8>; /* PH10 / EINT10 */
+				interrupt-names = "host-wake";
+			};
 		};
 
 		usbphy: phy@01c13400 {
--- a/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
+++ b/arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
@@ -69,12 +69,23 @@
 		};
 
 		mmc3: mmc@01c12000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
 			pinctrl-names = "default";
 			pinctrl-0 = <&mmc3_pins_a>;
 			vmmc-supply = <&reg_vmmc3>;
 			bus-width = <4>;
 			non-removable;
 			status = "okay";
+
+			brcmf: bcrmf@1 {
+				reg = <1>;
+				compatible = "brcm,bcm4329-fmac";
+				interrupt-parent = <&pio>;
+				interrupts = <10 8>; /* PH10 / EINT10 */
+				interrupt-names = "host-wake";
+			};
 		};
 
 		usbphy: phy@01c13400 {