e5143abf58ef848832a53976007debdfa5891e20
[openwrt/staging/xback.git] /
1 From 8960f095de3b80beb3639075f0c8161b6ea98c61 Mon Sep 17 00:00:00 2001
2 From: Dan Haab <dan.haab@luxul.com>
3 Date: Wed, 5 Jul 2023 09:32:51 -0600
4 Subject: [PATCH] ARM: dts: BCM5301X: Add Wi-Fi regulatory mappings for Luxul
5 devices
6
7 This allows setting FullMAC firmware regulatory domain.
8
9 Signed-off-by: Dan Haab <dan.haab@luxul.com>
10 Link: https://lore.kernel.org/r/20230705153251.739236-1-riproute@gmail.com
11 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
12 ---
13 .../dts/broadcom/bcm47094-luxul-xap-1610.dts | 37 +++++++++++++++++++
14 .../broadcom/bcm47094-luxul-xwr-3150-v1.dts | 36 ++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 --- a/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
18 +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
19 @@ -64,6 +64,43 @@
20 nvmem-cell-names = "mac-address";
21 };
22
23 +
24 +&pcie0 {
25 + #address-cells = <3>;
26 + #size-cells = <2>;
27 +
28 + bridge@0,0 {
29 + reg = <0x0000 0 0 0 0>;
30 +
31 + #address-cells = <3>;
32 + #size-cells = <2>;
33 +
34 + wifi@0,0 {
35 + compatible = "brcm,bcm4366-fmac", "brcm,bcm4329-fmac";
36 + reg = <0x0000 0 0 0 0>;
37 + brcm,ccode-map = "AU-AU-920", "CA-CA-892", "GB-DE-964", "NZ-AU-920", "US-US-825";
38 + };
39 + };
40 +};
41 +
42 +&pcie1 {
43 + #address-cells = <3>;
44 + #size-cells = <2>;
45 +
46 + bridge@0,0 {
47 + reg = <0x0000 0 0 0 0>;
48 +
49 + #address-cells = <3>;
50 + #size-cells = <2>;
51 +
52 + wifi@0,0 {
53 + compatible = "brcm,bcm4366-fmac", "brcm,bcm4329-fmac";
54 + reg = <0x0000 0 0 0 0>;
55 + brcm,ccode-map = "AU-AU-920", "CA-CA-892", "GB-DE-964", "NZ-AU-920", "US-US-825";
56 + };
57 + };
58 +};
59 +
60 &spi_nor {
61 status = "okay";
62 };
63 --- a/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
64 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
65 @@ -81,6 +81,42 @@
66 nvmem-cell-names = "mac-address";
67 };
68
69 +&pcie0 {
70 + #address-cells = <3>;
71 + #size-cells = <2>;
72 +
73 + bridge@0,0 {
74 + reg = <0x0000 0 0 0 0>;
75 +
76 + #address-cells = <3>;
77 + #size-cells = <2>;
78 +
79 + wifi@0,0 {
80 + compatible = "brcm,bcm4366-fmac", "brcm,bcm4329-fmac";
81 + reg = <0x0000 0 0 0 0>;
82 + brcm,ccode-map = "AU-AU-953", "CA-CA-946", "GB-E0-846", "NZ-AU-953", "US-Q2-930";
83 + };
84 + };
85 +};
86 +
87 +&pcie1 {
88 + #address-cells = <3>;
89 + #size-cells = <2>;
90 +
91 + bridge@0,0 {
92 + reg = <0x0000 0 0 0 0>;
93 +
94 + #address-cells = <3>;
95 + #size-cells = <2>;
96 +
97 + wifi@0,0 {
98 + compatible = "brcm,bcm4366-fmac", "brcm,bcm4329-fmac";
99 + reg = <0x0000 0 0 0 0>;
100 + brcm,ccode-map = "AU-AU-953", "CA-CA-946", "GB-E0-846", "NZ-AU-953", "US-Q2-930";
101 + };
102 + };
103 +};
104 +
105 &usb3 {
106 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
107 };