Jump to content

Patches for M1+ dts file for wifi


luoyi

Recommended Posts

root@x1c:/tmp# diff -u m1plus.dts.orig  m1plus.dts
--- m1plus.dts.orig	2016-05-07 17:52:38.000000000 +0200
+++ m1plus.dts	2016-05-07 18:16:36.000000000 +0200
@@ -704,6 +704,13 @@
 			bus-width = <0x4>;
 			non-removable;
 			enable-sdio-wakeup;
+        brcmf: bcrmf@1 {
+                reg = <1>;
+                compatible = "brcm,bcm4329-fmac";
+                interrupt-parent = <0x3a>;
+                interrupts = <7 15 0x00000008>; /* PH15 / EINT15 */
+                interrupt-names = "host-wake";
+        };
 		};
 
 		usb@01c13000 {
@@ -1081,7 +1088,7 @@
 				allwinner,pins = "PI4", "PI5", "PI6", "PI7", "PI8", "PI9";
 				allwinner,function = "mmc3";
 				allwinner,drive = <0x2>;
-				allwinner,pull = <0x0>;
+				allwinner,pull = <0x1>;
 				linux,phandle = <0x25>;
 				phandle = <0x25>;
 			};

the Armbian_5.10_Bananapipro_Debian_jessie_4.5.2 install doesn't make my M1+'s wifi usable.

 

first, I use dtb -I dtb -O dts to get the m1-plus's dts source file. and then apply this patch. after apply this patch, my M1+ board's wifi is working well:

 

root@bananapi:/home/luoyi# ip addr

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

       valid_lft forever preferred_lft forever

    inet6 ::1/128 scope host

       valid_lft forever preferred_lft forever

2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000

    link/ether 02:48:0a:81:ca:65 brd ff:ff:ff:ff:ff:ff

3: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000

    link/ether 52:e1:7f:c0:a1:08 brd ff:ff:ff:ff:ff:ff

4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

    link/ether 98:3b:16:c7:cd:81 brd ff:ff:ff:ff:ff:ff

    inet 172.16.100.149/24 brd 172.16.100.255 scope global wlan0

       valid_lft forever preferred_lft forever

    inet6 fe80::9a3b:16ff:fec7:cd81/64 scope link

       valid_lft forever preferred_lft forever

root@bananapi:/home/luoyi# uname -a

Linux bananapi 4.5.2-sunxi #11 SMP Thu Apr 28 21:53:25 CEST 2016 armv7l GNU/Linux

root@bananapi:/home/luoyi# dmesg |grep -i mach

[    0.000000] Machine model: Banana Pi BPI-M1-Plus

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines