]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt7981b-openwrt-one: Enable wifi
authorSjoerd Simons <sjoerd@collabora.com>
Tue, 23 Dec 2025 12:37:58 +0000 (13:37 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 8 Jan 2026 12:41:54 +0000 (13:41 +0100)
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>
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
arch/arm64/boot/dts/mediatek/mt7981b.dtsi

index 2aea8990064532c03225fbc031ae93642040d482..3de368c73bc8126c177b6c3389ab52fa451a51c7 100644 (file)
                        pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
                };
        };
+
+       wifi_dbdc_pins: wifi-dbdc-pins {
+               mux {
+                       function = "eth";
+                       groups = "wf0_mode1";
+               };
+
+               conf {
+                       pins = "WF_HB1", "WF_HB2", "WF_HB3", "WF_HB4",
+                              "WF_HB0", "WF_HB0_B", "WF_HB5", "WF_HB6",
+                              "WF_HB7", "WF_HB8", "WF_HB9", "WF_HB10",
+                              "WF_TOP_CLK", "WF_TOP_DATA", "WF_XO_REQ",
+                              "WF_CBA_RESETB", "WF_DIG_RESETB";
+                       drive-strength = <4>;
+               };
+       };
 };
 
 &pwm {
        status = "okay";
 };
 
+&wifi {
+       nvmem-cells = <&wifi_factory_calibration>;
+       nvmem-cell-names = "eeprom";
+       pinctrl-names = "dbdc";
+       pinctrl-0 = <&wifi_dbdc_pins>;
+       status = "okay";
+};
+
 &xhci {
        phys = <&u2port0 PHY_TYPE_USB2>;
        vusb33-supply = <&reg_3p3v>;
index 324ae1395b3b62811f620d91d37c62153aba1078..4084f4dfa3e5e3114b674eab57e17dcda5cf5a3a 100644 (file)
                        interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>;
                };
 
-               wifi@18000000 {
+               wifi: wifi@18000000 {
                        compatible = "mediatek,mt7981-wmac";
                        reg = <0 0x18000000 0 0x1000000>,
                              <0 0x10003000 0 0x1000>,