]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: Add PCIe sub-nodes for NPU wifi offloading 22516/head
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 19 Mar 2026 10:42:37 +0000 (11:42 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 20 Mar 2026 10:08:54 +0000 (11:08 +0100)
Introduce missing PCIe sub-nodes required to enable NPU wifi offloading
on Airoha AN7581 SoC.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://github.com/openwrt/openwrt/pull/22516
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/dts/an7581-evb-emmc.dts
target/linux/airoha/dts/an7581-evb.dts

index d78bbb1bd2256e709c9cfefbdf17adc82cf62d3d..25aca81e2242e6015bbc19d167453fbb9a1b380a 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pcie0_rst_pins>;
        status = "okay";
+
+       pcie@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               wifi@0,0 {
+                       compatible = "mediatek,mt76";
+                       reg = <0x0000 0 0 0 0>;
+                       airoha,npu = <&npu>;
+                       airoha,eth = <&eth>;
+               };
+       };
 };
 
 &pcie1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pcie1_rst_pins>;
        status = "okay";
+
+       pcie@1,0 {
+               reg = <0x0000 0 0 0 0>;
+               wifi@0,0 {
+                       compatible = "mediatek,mt76";
+                       reg = <0x0000 0 0 0 0>;
+                       airoha,npu = <&npu>;
+                       airoha,eth = <&eth>;
+               };
+       };
 };
 
 &pcie2 {
index 8d52b92636ec5a68704ada050cd1c289417f3f22..eea7bea586027ebc775d5fc103bc35b7afdcac45 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pcie0_rst_pins>;
        status = "okay";
+
+       pcie@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               wifi@0,0 {
+                       compatible = "mediatek,mt76";
+                       reg = <0x0000 0 0 0 0>;
+                       airoha,npu = <&npu>;
+                       airoha,eth = <&eth>;
+               };
+       };
 };
 
 &pcie1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pcie1_rst_pins>;
        status = "okay";
+
+       pcie@1,0 {
+               reg = <0x0000 0 0 0 0>;
+               wifi@0,0 {
+                       compatible = "mediatek,mt76";
+                       reg = <0x0000 0 0 0 0>;
+                       airoha,npu = <&npu>;
+                       airoha,eth = <&eth>;
+               };
+       };
 };
 
 &npu {