1 From d3af86018715ebb19f4111f80e545405b208f09b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Sat, 14 Jan 2017 00:58:57 +0100
4 Subject: [PATCH] ARM: BCM5301X: Set 5 GHz wireless frequency limits on Netgear
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Netgear R8000 is a tri-band home router. It has three BCM43602 chipsets
11 two of them for 5 GHz band. Both seem the same and their firmwares
12 report the same set of channels. The problem is due to hardware / board
13 design there are extra limitations that should be respected.
15 First PHY should be used for U-NII-2 and U-NII-3. Third PHY should be
16 used for U-NII-1. Using them in a different way may result in wireless
17 not working or in noticeably reduced performance. Basic version of this
18 info was provided by Broadcom employee, then it has been verified by me
19 using original vendor firmware (which has limitations hardcoded in UI).
21 This patch uses recently introduced ieee80211-freq-limit property to
22 describe these limitations at DT level.
24 Referencing PCIe devices in DT required specifying all related bridges.
25 Below you can see (a bit complex) PCI tree from R8000 that explains all
26 entries that I needed to put in DT.
28 0000:00:00.0 14e4:8012 Bridge Device
29 └─ 0000:01:00.0 14e4:aa52 Network Controller
31 0001:00:00.0 14e4:8012 Bridge Device
32 └─ 0001:01:00.0 10b5:8603 Bridge Device
33 ├─ 0001:02:01.0 10b5:8603 Bridge Device
34 │ └─ 0001:03:00.0 14e4:aa52 Network Controller
35 ├─ 0001:02:02.0 10b5:8603 Bridge Device
36 │ └─ 0001:04:00.0 14e4:aa52 Network Controller
37 ├─ 0001:02:03.0 000d:0000 0x000000
38 ├─ 0001:02:04.0 000d:0000 0x000000
39 ├─ 0001:02:05.0 000d:0000 0x000000
40 ├─ 0001:02:06.0 000d:0000 0x000000
42 ├─ 0001:02:1d.0 000d:0000 0x000000
43 ├─ 0001:02:1e.0 000d:0000 0x000000
44 └─ 0001:02:1f.0 000d:0000 0x000000
46 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
47 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
49 arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 48 +++++++++++++++++++++++++++++
50 arch/arm/boot/dts/bcm5301x.dtsi | 8 +++++
51 2 files changed, 56 insertions(+)
53 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
54 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
60 + #address-cells = <3>;
64 + reg = <0x0000 0 0 0 0>;
66 + #address-cells = <3>;
70 + reg = <0x0000 0 0 0 0>;
71 + ieee80211-freq-limit = <5735000 5835000>;
77 + #address-cells = <3>;
81 + reg = <0x0000 0 0 0 0>;
83 + #address-cells = <3>;
87 + reg = <0x0000 0 0 0 0>;
89 + #address-cells = <3>;
93 + reg = <0x1000 0 0 0 0>;
95 + #address-cells = <3>;
99 + reg = <0x0000 0 0 0 0>;
100 + ieee80211-freq-limit = <5170000 5730000>;
108 vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
110 --- a/arch/arm/boot/dts/bcm5301x.dtsi
111 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
116 + pcie0: pcie@12000 {
117 + reg = <0x00012000 0x1000>;
120 + pcie1: pcie@13000 {
121 + reg = <0x00013000 0x1000>;
125 reg = <0x00021000 0x1000>;