board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / board / lemaker / bananapro / patches / linux / 0002-ARM-dts-sun7i-Add-wifi-dt-node-on-Banana-Pro.patch
blob7d514a808cacbd87b6abf8e4dbcd4fd41dc734b5
1 From f2cb904f074bc7e90be475488872a82270e9bae7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3 Date: Mon, 9 Jan 2017 21:36:38 +0100
4 Subject: [PATCH 2/2] ARM: dts: sun7i: Add wifi dt node on Banana Pro
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The Banana Pro has an AMPAK AP6181 WiFi+Bluetooth module. The WiFi part
10 is a BCM43362 IC connected to MMC3 of the A20 SoC via SDIO. The IC also
11 takes a power enable signal via GPIO.
13 This commit adds a device-tree node to power it up, so the mmc subsys
14 can scan it, and enables the mmc controller which is connected to it.
16 As the wifi enable pin of the AP6181 module is not really a regulator,
17 switch the mmc3 node to the mmc-pwrseq framework for controlling it.
18 This more accurately reflectes how the hardware actually works.
20 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
21 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
22 ---
23 arch/arm/boot/dts/sun7i-a20-bananapro.dts | 29 +++++++++++++++++------------
24 1 file changed, 17 insertions(+), 12 deletions(-)
26 diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
27 index 03799c647e13..83516bc81225 100644
28 --- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts
29 +++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
30 @@ -76,6 +76,13 @@
34 + wifi_pwrseq: wifi-pwrseq {
35 + compatible = "mmc-pwrseq-simple";
36 + pinctrl-names = "default";
37 + pinctrl-0 = <&vmmc3_pin_bananapro>;
38 + reset-gpios = <&pio 7 22 GPIO_ACTIVE_LOW>;
39 + };
41 reg_gmac_3v3: gmac-3v3 {
42 compatible = "regulator-fixed";
43 pinctrl-names = "default";
44 @@ -87,17 +94,6 @@
45 enable-active-high;
46 gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
49 - reg_vmmc3: vmmc3 {
50 - compatible = "regulator-fixed";
51 - pinctrl-names = "default";
52 - pinctrl-0 = <&vmmc3_pin_bananapro>;
53 - regulator-name = "vmmc3";
54 - regulator-min-microvolt = <3300000>;
55 - regulator-max-microvolt = <3300000>;
56 - enable-active-high;
57 - gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>;
58 - };
61 &ahci {
62 @@ -170,10 +166,19 @@
63 &mmc3 {
64 pinctrl-names = "default";
65 pinctrl-0 = <&mmc3_pins_a>;
66 - vmmc-supply = <&reg_vmmc3>;
67 + vmmc-supply = <&reg_vcc3v3>;
68 + mmc-pwrseq = <&wifi_pwrseq>;
69 bus-width = <4>;
70 non-removable;
71 status = "okay";
73 + brcmf: bcrmf@1 {
74 + reg = <1>;
75 + compatible = "brcm,bcm4329-fmac";
76 + interrupt-parent = <&pio>;
77 + interrupts = <7 15 IRQ_TYPE_LEVEL_LOW>;
78 + interrupt-names = "host-wake";
79 + };
82 &ohci0 {
83 --
84 2.11.0