mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
ipq40xx: Convert plasmacloud,pa2200 to DSA
* ethernet1: - physical port label "Ethernet 1" - its mac address is printed on the device label * ethernet2: - physical port label "Ethernet 2" - can be used to power the device Both ports are not marked by there role (because the vendor firmware automatically detects roles) but the "Ethernet 2" port was used in the past for "WAN" functionality in OpenWrt. Tested-by: Michaël BILCOT <michael.bilcot@gmail.com> Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
ce6c9e0328
commit
fc69532eb9
@ -77,7 +77,8 @@ ipq40xx_setup_interfaces()
|
|||||||
openmesh,a62)
|
openmesh,a62)
|
||||||
ucidef_set_interfaces_lan_wan "ethernet2" "ethernet1"
|
ucidef_set_interfaces_lan_wan "ethernet2" "ethernet1"
|
||||||
;;
|
;;
|
||||||
plasmacloud,pa1200)
|
plasmacloud,pa1200|\
|
||||||
|
plasmacloud,pa2200)
|
||||||
ucidef_set_interfaces_lan_wan "ethernet1" "ethernet2"
|
ucidef_set_interfaces_lan_wan "ethernet1" "ethernet2"
|
||||||
;;
|
;;
|
||||||
zte,mf286d)
|
zte,mf286d)
|
||||||
|
@ -17,10 +17,6 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio@90000 {
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
tcsr@1949000 {
|
tcsr@1949000 {
|
||||||
compatible = "qcom,tcsr";
|
compatible = "qcom,tcsr";
|
||||||
reg = <0x1949000 0x100>;
|
reg = <0x1949000 0x100>;
|
||||||
@ -63,6 +59,7 @@
|
|||||||
led-failsafe = &led_status_blue;
|
led-failsafe = &led_status_blue;
|
||||||
led-running = &led_power_orange;
|
led-running = &led_power_orange;
|
||||||
led-upgrade = &led_status_blue;
|
led-upgrade = &led_status_blue;
|
||||||
|
label-mac-device = &swport4;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
@ -207,6 +204,34 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&mdio {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport4 {
|
||||||
|
status = "okay";
|
||||||
|
label = "ethernet1";
|
||||||
|
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
nvmem-cells = <&macaddr_gmac0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport5 {
|
||||||
|
status = "okay";
|
||||||
|
label = "ethernet2";
|
||||||
|
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
nvmem-cells = <&macaddr_gmac1>;
|
||||||
|
};
|
||||||
|
|
||||||
&wifi0 {
|
&wifi0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
|
qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
|
||||||
|
@ -974,8 +974,7 @@ define Device/plasmacloud_pa2200
|
|||||||
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||||
DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
|
DEVICE_PACKAGES := ath10k-firmware-qca9888-ct
|
||||||
endef
|
endef
|
||||||
# Missing DSA Setup
|
TARGET_DEVICES += plasmacloud_pa2200
|
||||||
#TARGET_DEVICES += plasmacloud_pa2200
|
|
||||||
|
|
||||||
define Device/qcom_ap-dk01.1-c1
|
define Device/qcom_ap-dk01.1-c1
|
||||||
DEVICE_VENDOR := Qualcomm Atheros
|
DEVICE_VENDOR := Qualcomm Atheros
|
||||||
|
Loading…
x
Reference in New Issue
Block a user