Skip to content

Commit 6fd69ff

Browse files
sjoerdsimonsAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
Enable Dual-band WiFI 6 functionality on the Openwrt One Signed-off-by: Sjoerd Simons <sjoerd@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent c0379b6 commit 6fd69ff

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,22 @@
180180
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
181181
};
182182
};
183+
184+
wifi_dbdc_pins: wifi-dbdc-pins {
185+
mux {
186+
function = "eth";
187+
groups = "wf0_mode1";
188+
};
189+
190+
conf {
191+
pins = "WF_HB1", "WF_HB2", "WF_HB3", "WF_HB4",
192+
"WF_HB0", "WF_HB0_B", "WF_HB5", "WF_HB6",
193+
"WF_HB7", "WF_HB8", "WF_HB9", "WF_HB10",
194+
"WF_TOP_CLK", "WF_TOP_DATA", "WF_XO_REQ",
195+
"WF_CBA_RESETB", "WF_DIG_RESETB";
196+
drive-strength = <4>;
197+
};
198+
};
183199
};
184200

185201
&pwm {
@@ -257,6 +273,14 @@
257273
status = "okay";
258274
};
259275

276+
&wifi {
277+
nvmem-cells = <&wifi_factory_calibration>;
278+
nvmem-cell-names = "eeprom";
279+
pinctrl-names = "dbdc";
280+
pinctrl-0 = <&wifi_dbdc_pins>;
281+
status = "okay";
282+
};
283+
260284
&xhci {
261285
phys = <&u2port0 PHY_TYPE_USB2>;
262286
vusb33-supply = <&reg_3p3v>;

arch/arm64/boot/dts/mediatek/mt7981b.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>;
489489
};
490490

491-
wifi@18000000 {
491+
wifi: wifi@18000000 {
492492
compatible = "mediatek,mt7981-wmac";
493493
reg = <0 0x18000000 0 0x1000000>,
494494
<0 0x10003000 0 0x1000>,

0 commit comments

Comments
 (0)