luci works and ethernet works

This commit is contained in:
Meshing 2024-12-06 03:07:09 -08:00
parent bf91a871fa
commit 1cded7fc64
2 changed files with 25 additions and 31 deletions

View File

@ -131,7 +131,6 @@ ipq40xx_setup_interfaces()
;;
tplink,deco-m9plus-v2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" "1" "1"
;;
netgear,lbr20)
ucidef_set_interface_lan "lan1 lan2"

View File

@ -197,26 +197,11 @@
label = "0:ART";
reg = <0x000880000 0x00080000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
precal_art_1000: precal@1000 {
reg = <0x1000 0x2f20>;
};
precal_art_5000: precal@5000 {
reg = <0x5000 0x2f20>;
};
};
partition@900000 {
label = "rootfs";
reg = <0x00900000 0x002d00000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_config_0: macaddr@0 {
reg = <0x8 0x6>;
};
};
partition@3600000 {
label = "rootfs_1";
@ -236,6 +221,24 @@
};
};
};
&pcie0 {
status = "okay";
perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
bridge@0,0 {
reg = <0x00000000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi2: wifi@1,0 {
compatible = "qcom,ath10k";
reg = <0x00010000 0 0 0 0>;
};
};
};
&crypto {
status = "okay";
};
@ -272,29 +275,21 @@
&swport4 {
status = "okay";
label = "lan";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_config_0>;
};
&swport5 {
status = "okay";
label = "wan";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_config_0>;
mac-address-increment = <1>;
};
&wifi0 {
pinctrl-0 = <&wifi_pins>;
pinctrl-names = "default";
qcom,ath10k-calibration-variant = "TP-Link_Deco_M9Plus_v2.0";
status = "okay";
nvmem-cell-names = "pre-calibration", "mac-address";
nvmem-cells = <&precal_art_1000>, <&macaddr_config_0>;
mac-address-increment = <2>;
};
&wifi1 {
qcom,ath10k-calibration-variant = "TP-Link_Deco_M9Plus_v2.0";
status = "okay";
nvmem-cell-names = "pre-calibration", "mac-address";
nvmem-cells = <&precal_art_5000>, <&macaddr_config_0>;
mac-address-increment = <3>;
ieee80211-freq-limit = <5170000 5330000>;
};
&wifi2 {
status = "okay";
ieee80211-freq-limit = <5490000 5835000>;
};