ipq40xx: add e2600ac c2 to dsa

Convert E2600ac c2 to DSA and enable it.

Signed-off-by: 张 鹏 <sd20@qxwlan.com>
[ rename port to more generic name ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
张 鹏 2023-02-22 20:55:44 +08:00 committed by Christian Marangi
parent 7f2ecab0f4
commit 0dca52cf59
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
3 changed files with 44 additions and 2 deletions

View File

@ -100,6 +100,9 @@ ipq40xx_setup_interfaces()
qxwlan,e2600ac-c1) qxwlan,e2600ac-c1)
ucidef_set_interfaces_lan_wan "sw-eth1" "sw-eth2" ucidef_set_interfaces_lan_wan "sw-eth1" "sw-eth2"
;; ;;
qxwlan,e2600ac-c2)
ucidef_set_interfaces_lan_wan "sw-eth1 sw-eth2" "sw-eth3"
;;
zte,mf286d) zte,mf286d)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" "wan" ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" "wan"
;; ;;

View File

@ -79,6 +79,14 @@
precal_art_5000: precal@5000 { precal_art_5000: precal@5000 {
reg = <0x5000 0x2f20>; reg = <0x5000 0x2f20>;
}; };
macaddr_gmac0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_gmac1: macaddr@6 {
reg = <0x6 0x6>;
};
}; };
}; };
}; };
@ -137,3 +145,35 @@
nvmem-cells = <&precal_art_5000>; nvmem-cells = <&precal_art_5000>;
qcom,ath10k-calibration-variant = "Qxwlan-E2600AC-C2"; qcom,ath10k-calibration-variant = "Qxwlan-E2600AC-C2";
}; };
&gmac {
status = "okay";
};
&switch {
status = "okay";
};
&swport2 {
status = "okay";
label = "sw-eth1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_gmac0>;
};
&swport4 {
status = "okay";
label = "sw-eth2";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_gmac0>;
};
&swport5 {
status = "okay";
label = "sw-eth3";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_gmac1>;
};

View File

@ -1046,8 +1046,7 @@ define Device/qxwlan_e2600ac-c2
BLOCKSIZE := 128k BLOCKSIZE := 128k
PAGESIZE := 2048 PAGESIZE := 2048
endef endef
# Missing DSA Setup TARGET_DEVICES += qxwlan_e2600ac-c2
#TARGET_DEVICES += qxwlan_e2600ac-c2
define Device/sony_ncp-hg100-cellular define Device/sony_ncp-hg100-cellular
$(call Device/FitImage) $(call Device/FitImage)