qualcommax: ipq60xx/ipq807x: convert to PPE networking stack

Convert IPQ60xx and IPQ807x devices from the old NSS dataplane to the new
PPE stack.

IPQ50xx is not yet supported.

Link: https://github.com/openwrt/openwrt/pull/22381
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Robert Marko
2026-07-11 22:26:43 +02:00
parent 16d110aee3
commit f50435627d
66 changed files with 2466 additions and 2261 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ include $(INCLUDE_DIR)/target.mk
DEFAULT_PACKAGES += \
kmod-usb3 kmod-usb-dwc3 kmod-usb-dwc3-qcom \
kmod-leds-gpio kmod-gpio-button-hotplug \
kmod-qca-nss-dp kmod-ath11k-ahb \
kmod-ath11k-ahb \
wpad-basic-mbedtls uboot-envtools \
e2fsprogs kmod-fs-ext4 losetup
+41 -36
View File
@@ -156,29 +156,58 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3)>;
switch_wan_bmp = <ESS_PORT4>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
};
port@2 {
port_id = <2>;
phy_address = <1>;
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
reg = <4>;
label = "wan";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
};
};
@@ -187,30 +216,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "wan";
};
&wifi {
status = "okay";
@@ -349,23 +349,46 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT4>;
switch_wan_bmp = <ESS_PORT5>;
ports {
#address-cells = <1>;
#size-cells = <0>;
switch_mac_mode = <MAC_MODE_PSGMII>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
qcom,port_phyinfo {
port@4 {
port_id = <4>;
phy_address = <3>;
reg = <4>;
label = "lan";
phy-handle = <&qca8072_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
reg = <5>;
label = "wan";
phy-handle = <&qca8072_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -374,24 +397,6 @@
status = "okay";
};
&dp4 {
status = "okay";
phy-handle = <&qca8072_3>;
label = "lan";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8072_4>;
label = "wan";
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
&wifi {
status = "okay";
@@ -9,7 +9,7 @@
compatible = "glinet,gl-ax1800", "qcom,ipq6018";
aliases {
label-mac-device = &dp1;
label-mac-device = &swport1;
};
};
@@ -21,49 +21,20 @@
};
};
&switch {
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
switch_wan_bmp = <ESS_PORT1>;
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "wan";
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "lan1";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan2";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp4 {
&swport4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan3";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp5 {
&swport5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "lan4";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&wifi {
@@ -9,7 +9,7 @@
compatible = "glinet,gl-axt1800", "qcom,ipq6018";
aliases {
label-mac-device = &dp1;
label-mac-device = &swport1;
};
vcc_sd: regulator-vcc-sd {
@@ -136,33 +136,20 @@
status = "okay";
};
&switch {
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3)>;
switch_wan_bmp = <ESS_PORT1>;
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "wan";
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "lan2";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan1";
};
&swport2 {
label = "lan2";
};
&swport3 {
label = "lan1";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&wifi {
+62 -17
View File
@@ -276,31 +276,76 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "wan";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
status = "disabled";
};
swport5: port@5 {
reg = <5>;
label = "lan4";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
status = "disabled";
};
};
};
@@ -118,6 +118,107 @@
qcom,ath11k-calibration-variant = "Link-NN6000";
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
ethernet-phy-package@0 {
compatible = "qcom,qca8075-package";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
qca8075_0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
qca8075_1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
qca8075_2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
};
qca8075_3: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <3>;
};
qca8075_4: ethernet-phy@4 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <4>;
};
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport1: port@1 {
reg = <1>;
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
status = "disabled";
};
swport2: port@2 {
reg = <2>;
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
swport3: port@3 {
reg = <3>;
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
swport4: port@4 {
reg = <4>;
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
status = "disabled";
};
};
};
&edma {
status = "okay";
};
+57 -54
View File
@@ -347,33 +347,76 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@2 {
port_id = <2>;
phy_address = <1>;
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -382,46 +425,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&wifi {
status = "okay";
@@ -9,81 +9,20 @@
compatible = "link,nn6000-v1", "qcom,ipq6018";
aliases {
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
};
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
ethernet-phy-package@0 {
compatible = "qcom,qca8075-package";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
qca8075_1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
qca8075_2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
};
qca8075_3: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <3>;
};
};
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT2>;
switch_mac_mode = <MAC_MODE_PSGMII>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
};
};
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "wan";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan1";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
&swport4 {
label = "lan2";
};
@@ -9,115 +9,31 @@
compatible = "link,nn6000-v2", "qcom,ipq6018";
aliases {
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
ethernet0 = &swport1;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
ethernet4 = &swport5;
};
};
&mdio {
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
ethernet-phy-package@0 {
compatible = "qcom,qca8075-package";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
qca8075_0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
qca8075_1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
qca8075_2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <2>;
};
qca8075_3: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <3>;
};
qca8075_4: ethernet-phy@4 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <4>;
};
};
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
switch_wan_bmp = <ESS_PORT2>;
switch_mac_mode = <MAC_MODE_PSGMII>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
};
port@2 {
port_id = <2>;
phy_address = <1>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
};
};
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
&swport1 {
label = "lan1";
status = "okay";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "wan";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
&swport4 {
label = "lan3";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
&swport5 {
label = "lan4";
};
@@ -14,13 +14,13 @@
compatible = "jdcloud,re-ss-01", "qcom,ipq6018";
aliases {
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
ethernet4 = &swport5;
serial0 = &blsp1_uart3;
label-mac-device = &dp2;
label-mac-device = &swport2;
led-boot = &led_status_red;
led-failsafe = &led_status_red;
led-running = &led_status_green;
@@ -162,29 +162,58 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -193,30 +222,6 @@
status = "okay";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan1";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan3";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
};
&wifi {
status = "okay";
@@ -200,34 +200,6 @@
};
};
&dp3 {
status = "okay";
phy-handle = <&qca8072_1>;
nvmem-cells = <&macaddr_eth1>;
nvmem-cell-names = "mac-address";
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8072_0>;
nvmem-cells = <&macaddr_eth0>;
nvmem-cell-names = "mac-address";
label = "lan1";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081>;
nvmem-cells = <&macaddr_eth2>;
nvmem-cell-names = "mac-address";
label = "wan";
};
&edma {
status = "okay";
};
@@ -277,28 +249,60 @@
cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
port3_pcs_channel = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
qcom,port_phyinfo {
port@3 {
port_id = <3>;
phy_address = <4>;
reg = <3>;
label = "lan2";
phy-handle = <&qca8072_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_eth1>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
reg = <4>;
label = "lan1";
phy-handle = <&qca8072_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_eth0>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
reg = <5>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&macaddr_eth2>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -9,13 +9,13 @@
compatible = "jdcloud,re-cs-02", "qcom,ipq6018";
aliases {
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
ethernet0 = &swport1;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
ethernet4 = &swport5;
label-mac-device = &dp1;
label-mac-device = &swport1;
serial0 = &blsp1_uart3;
serial1 = &blsp1_uart6;
};
@@ -97,35 +97,66 @@
};
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <24>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <25>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
};
port@3 {
port_id = <3>;
phy_address = <26>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <27>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@5 {
port_id = <5>;
phy_address = <12>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
};
};
@@ -134,37 +165,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081>;
label = "wan";
};
&wifi {
status = "okay";
@@ -9,12 +9,12 @@
compatible = "jdcloud,re-cs-07", "qcom,ipq6018";
aliases {
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet0 = &swport1;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
label-mac-device = &dp2;
label-mac-device = &swport2;
serial0 = &blsp1_uart3;
};
@@ -45,26 +45,51 @@
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT1>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <24>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <25>;
swport1: port@1 {
reg = <1>;
label = "wan";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
};
port@3 {
port_id = <3>;
phy_address = <26>;
swport2: port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <27>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
swport4: port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
};
};
@@ -72,27 +97,3 @@
&edma {
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "wan";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan1";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan3";
};
@@ -137,3 +137,7 @@
};
};
};
&uniphy0 {
status = "okay";
};
+26 -16
View File
@@ -15,8 +15,8 @@
aliases {
serial0 = &blsp1_uart3;
ethernet0 = &dp3;
label-mac-device = &dp3;
ethernet0 = &swport3;
label-mac-device = &swport3;
led-boot = &pwr;
led-failsafe = &pwr;
led-running = &pwr;
@@ -95,13 +95,6 @@
};
};
&dp3 {
status = "okay";
phy-handle = <&qca8072_4>;
label = "lan";
};
&edma {
status = "okay";
};
@@ -129,17 +122,34 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT3>;
switch_mac_mode = <MAC_MODE_PSGMII>;
port3_pcs_channel = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@3 {
port_id = <3>;
phy_address = <4>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport3: port@3 {
reg = <3>;
label = "lan";
phy-handle = <&qca8072_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -8,8 +8,8 @@
/ {
aliases {
serial0 = &blsp1_uart3;
ethernet0 = &dp5;
label-mac-device = &dp5;
ethernet0 = &swport5;
label-mac-device = &swport5;
led-boot = &led_system_blue;
led-failsafe = &led_system_orange;
@@ -111,17 +111,34 @@
status = "okay";
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&qca8081_24>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
};
};
@@ -156,12 +173,6 @@
};
};
&dp5 {
status = "okay";
phy-handle = <&qca8081_24>;
label = "lan";
};
&blsp1_uart3 {
pinctrl-0 = <&serial_3_pins>;
pinctrl-names = "default";
+41 -33
View File
@@ -15,9 +15,9 @@
aliases {
serial0 = &blsp1_uart3;
ethernet0 = &dp5;
ethernet1 = &dp4;
label-mac-device = &dp5;
ethernet0 = &swport5;
ethernet1 = &swport4;
label-mac-device = &swport5;
led-boot = &led_status_amber;
led-failsafe = &led_status_amber;
@@ -183,23 +183,50 @@
status = "okay";
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT4 | ESS_PORT5)>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@4 {
port_id = <4>;
phy_address = <3>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&qca8072>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eth1addr 0>;
};
swport5: port@5 {
reg = <5>;
label = "lan1";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&ethaddr 0>;
};
};
};
@@ -235,25 +262,6 @@
};
};
&dp4 {
status = "okay";
phy-handle = <&qca8072>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&eth1addr 0>;
label = "lan2";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&ethaddr 0>;
label = "lan1";
};
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
@@ -40,8 +40,8 @@
gpio-reserved-ranges = <20 1>;
};
&switch {
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
&swport5 {
phy-handle = <&rtl8211f_4>;
};
&wifi {
+55 -56
View File
@@ -15,12 +15,12 @@
compatible = "yuncore,fap650", "qcom,ipq6018";
aliases {
ethernet0 = &dp5;
ethernet1 = &dp4;
ethernet2 = &dp3;
ethernet3 = &dp2;
ethernet4 = &dp1;
label-mac-device = &dp5;
ethernet0 = &swport5;
ethernet1 = &swport4;
ethernet2 = &swport3;
ethernet3 = &swport2;
ethernet4 = &swport1;
label-mac-device = &swport5;
serial0 = &blsp1_uart3;
led-boot = &led_system;
led-failsafe = &led_system;
@@ -133,36 +133,66 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1|ESS_PORT2|ESS_PORT3|ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -179,37 +209,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
label = "wan";
};
&qpic_bam {
status = "okay";
};
+68 -68
View File
@@ -23,7 +23,7 @@
led-failsafe = &led_system_red;
led-upgrade = &led_system_green;
label-mac-device = &dp5_syn;
label-mac-device = &swport5;
};
chosen {
@@ -347,84 +347,84 @@
};
};
&dp1 {
status = "okay";
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp5_syn {
status = "okay";
label = "wan";
phy-handle = <&aqr114c>;
phy-mode = "usxgmii";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&edma {
status = "okay";
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <( ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 )>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_QSGMII>;
switch_mac_mode1 = <MAC_MODE_USXGMII>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <8>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&aqr114c>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -9,10 +9,10 @@
compatible = "netgear,rbs350", "qcom,ipq6018";
};
&dp2 {
&swport2 {
status = "disabled";
};
&dp3 {
&swport3 {
status = "disabled";
};
+49 -52
View File
@@ -11,7 +11,7 @@
led-failsafe = &led_status_red;
led-upgrade = &led_status_blue;
serial0 = &blsp1_uart3;
label-mac-device = &dp5;
label-mac-device = &swport5;
};
@@ -84,37 +84,66 @@
status = "okay";
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
switch_wan_bmp = <ESS_PORT1>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport2: port@2 {
reg = <2>;
label = "wan";
phy-handle = <&phy1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_boarddata 3>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&phy2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_boarddata 2>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&phy3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_boarddata 1>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport5: port@5 {
reg = <5>;
label = "lan1";
phy-handle = <&phy4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_boarddata 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -181,38 +210,6 @@
};
};
&dp2 {
status = "okay";
phy-handle = <&phy1>;
label = "wan";
nvmem-cells = <&macaddr_boarddata 3>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&phy2>;
label = "lan3";
nvmem-cells = <&macaddr_boarddata 2>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&phy3>;
label = "lan2";
nvmem-cells = <&macaddr_boarddata 1>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&phy4>;
label = "lan1";
nvmem-cells = <&macaddr_boarddata 0>;
nvmem-cell-names = "mac-address";
};
&blsp1_uart3 {
pinctrl-0 = <&serial_3_pins>;
pinctrl-names = "default";
@@ -94,13 +94,6 @@
};
};
&dp5 {
phy-handle = <&rtl8211f_4>;
phy-mode = "sgmii";
label = "lan";
status = "okay";
};
&edma {
status = "okay";
};
@@ -120,15 +113,34 @@
};
};
&uniphy1 {
status = "okay";
};
&switch {
switch_lan_bmp = <ESS_PORT5>;
switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>;
status = "okay";
qcom,port_phyinfo {
port@4 {
port_id = <5>;
phy_address = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&rtl8211f_4>;
phy-mode = "sgmii";
pcs-handle = <&uniphy1 0>;
};
};
};
+26 -14
View File
@@ -20,8 +20,8 @@
led-running = &led_system_green;
led-upgrade = &led_system_red;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp5;
label-mac-device = &dp5;
ethernet0 = &swport5;
label-mac-device = &swport5;
};
chosen {
@@ -274,16 +274,34 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <4>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -292,12 +310,6 @@
status = "okay";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "lan";
};
&wifi {
status = "okay";
@@ -12,17 +12,12 @@
compatible = "zyxel,nwa110ax", "qcom,ipq8074";
aliases {
ethernet0 = &dp1;
label-mac-device = &dp1;
ethernet0 = &swport1;
label-mac-device = &swport1;
};
};
&switch {
switch_lan_bmp = <ESS_PORT1>;
switch_mac_mode = <MAC_MODE_SGMII0_RGMII4>;
};
&dp1 {
&swport1 {
label = "uplink";
nvmem-cell-names = "mac-address";
nvmem-cells = <&label_mac 0>;
+46 -39
View File
@@ -24,10 +24,10 @@
* Aliases as required by u-boot
* to patch MAC addresses
*/
ethernet0 = &dp4;
ethernet1 = &dp2;
ethernet2 = &dp5;
label-mac-device = &dp4;
ethernet0 = &swport4;
ethernet1 = &swport2;
ethernet2 = &swport5;
label-mac-device = &swport4;
};
chosen {
@@ -253,25 +253,54 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@4 {
port_id = <4>;
phy_address = <3>;
/*
* Directly connect to the Hi5630
* PLC (Power Line Communication)
*/
swport2: port@2 {
reg = <2>;
label = "plc";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -280,28 +309,6 @@
status = "okay";
};
/*
* Directly connect to the Hi5630
* PLC (Power Line Communication)
*/
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "plc";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
};
&wifi {
status = "okay";
+35 -26
View File
@@ -289,24 +289,46 @@
};
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>;
switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081_24>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -315,19 +337,6 @@
status = "okay";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081_24>;
label = "wan";
};
&dp6 {
status = "okay";
phy-handle = <&qca8081_28>;
label = "lan";
};
&wifi {
status = "okay";
+54 -49
View File
@@ -14,7 +14,7 @@
led-failsafe = &led_system_yellow;
led-running = &led_system_blue;
led-upgrade = &led_system_yellow;
label-mac-device = &dp2;
label-mac-device = &swport2;
};
chosen {
@@ -242,29 +242,66 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT2>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "wan";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_dp2>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_dp3>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_dp4>;
nvmem-cell-names = "mac-address";
};
swport5: port@5 {
reg = <5>;
label = "lan3";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_dp5>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -273,38 +310,6 @@
status = "okay";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "wan";
nvmem-cells = <&macaddr_dp2>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan1";
nvmem-cells = <&macaddr_dp3>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan2";
nvmem-cells = <&macaddr_dp4>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "lan3";
nvmem-cells = <&macaddr_dp5>;
nvmem-cell-names = "mac-address";
};
&wifi {
status = "okay";
+38 -29
View File
@@ -22,9 +22,9 @@
led-running = &led_system_green;
led-upgrade = &led_system_green;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp6;
ethernet1 = &dp5;
label-mac-device = &dp5;
ethernet0 = &swport6;
ethernet1 = &swport5;
label-mac-device = &swport5;
};
chosen {
@@ -342,24 +342,46 @@
};
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&qca8081_24>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -368,19 +390,6 @@
status = "okay";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081_24>;
label = "lan";
};
&dp6 {
status = "okay";
phy-handle = <&qca8081_28>;
label = "wan";
};
&wifi {
status = "okay";
+40 -30
View File
@@ -19,7 +19,7 @@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &dp6_syn;
label-mac-device = &swport6;
};
chosen {
@@ -401,24 +401,50 @@
};
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&qca8081_24>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0 1>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0 0>;
};
};
};
@@ -427,22 +453,6 @@
status = "okay";
};
&dp5_syn {
status = "okay";
phy-handle = <&qca8081_24>;
label = "lan";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0 1>;
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081_28>;
label = "wan";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_mac_0 0>;
};
&wifi {
status = "okay";
@@ -13,9 +13,9 @@
compatible = "zyxel,nwa210ax", "qcom,ipq8074";
aliases {
ethernet0 = &dp5;
ethernet1 = &dp1;
label-mac-device = &dp5;
ethernet0 = &swport5;
ethernet1 = &swport1;
label-mac-device = &swport5;
};
leds {
@@ -46,20 +46,28 @@
};
};
&switch {
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT5)>;
switch_mac_mode = <MAC_MODE_SGMII_CHANNEL0>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
&uniphy1 {
status = "okay";
};
&phyinfo {
port@5 {
port_id = <5>;
phy_address = <16>;
port_mac_sel = "QGMAC_PORT";
&swports {
swport5: port@5 {
reg = <5>;
label = "uplink";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&label_mac 0>;
};
};
&swport1 {
label = "lan1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&label_mac 1>;
};
&mdio {
qca8081: ethernet-phy@16 {
compatible = "ethernet-phy-id004d.d101";
@@ -69,21 +77,6 @@
};
};
&dp1 {
label = "lan1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&label_mac 1>;
};
&dp5 {
status = "okay";
phy-handle = <&qca8081>;
phy-mode = "sgmii";
label = "uplink";
nvmem-cell-names = "mac-address";
nvmem-cells = <&label_mac 0>;
};
&wifi {
qcom,ath11k-calibration-variant = "Zyxel-NWA210AX";
};
+74 -77
View File
@@ -24,13 +24,13 @@
led-failsafe = &led_system_red;
led-running = &led_pwr_green;
led-upgrade = &led_system_red;
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
ethernet5 = &dp6_syn;
label-mac-device = &dp1;
ethernet0 = &lan4;
ethernet1 = &lan3;
ethernet2 = &lan2;
ethernet3 = &lan1;
ethernet4 = &port_10g_1;
ethernet5 = &port_10g_2;
label-mac-device = &lan4;
};
chosen {
@@ -438,43 +438,83 @@
vqmmc-supply = <&l11>;
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@0 {
port_id = <1>;
phy_address = <16>;
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@1 {
port_id = <2>;
phy_address = <17>;
lan4: port@1 {
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_16>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
};
port@2 {
port_id = <3>;
phy_address = <18>;
lan3: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_17>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
};
port@3 {
port_id = <4>;
phy_address = <19>;
lan2: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_18>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
};
port@4 {
port_id = <5>;
phy_address = <8>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
lan1: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_19>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
};
port@5 {
port_id = <6>;
phy_address = <0>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
port_10g_1: port@5 {
reg = <5>;
label = "10g-1";
phy-handle = <&aqr113c_8>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy1 0>;
};
port_10g_2: port@6 {
reg = <6>;
label = "10g-2";
phy-handle = <&aqr113c_0>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -483,49 +523,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_16>;
label = "lan4";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_17>;
label = "lan3";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_18>;
label = "lan2";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_19>;
label = "lan1";
};
&dp5 {
status = "okay";
qcom,mactype = <1>;
phy-mode = "usxgmii";
phy-handle = <&aqr113c_8>;
label = "10g-1";
};
&dp6_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr113c_0>;
label = "10g-2";
};
&wifi {
status = "okay";
+62 -61
View File
@@ -24,12 +24,12 @@
* Aliases as required by u-boot
* to patch MAC addresses
*/
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp6_syn;
label-mac-device = &dp1;
ethernet0 = &swport1;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
ethernet4 = &swport6;
label-mac-device = &swport1;
};
chosen {
@@ -301,35 +301,70 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -338,40 +373,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_0>;
label = "lan1";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan3";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan4";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
};
&wifi {
status = "okay";
+38 -28
View File
@@ -22,9 +22,9 @@
led-running = &led_system;
led-upgrade = &led_system;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp5_syn;
ethernet1 = &dp6_syn;
label-mac-device = &dp5_syn;
ethernet0 = &swport5;
ethernet1 = &swport6;
label-mac-device = &swport5;
};
chosen {
@@ -349,24 +349,46 @@
};
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT6>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081_24>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -375,18 +397,6 @@
status = "okay";
};
&dp5_syn {
status = "okay";
phy-handle = <&qca8081_24>;
label = "wan";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081_28>;
label = "lan";
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "Yuncore-AX880";
+67 -67
View File
@@ -21,7 +21,7 @@
led-failsafe = &led_system_yellow;
led-running = &led_system_blue;
led-upgrade = &led_system_yellow;
label-mac-device = &dp5;
label-mac-device = &wan;
};
chosen {
@@ -460,35 +460,80 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance1*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
lan4: port@1 {
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_dp1>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
lan3: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_dp2>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
lan2: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_dp3>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <24>;
port_mac_sel = "QGMAC_PORT";
lan1: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_dp4>;
nvmem-cell-names = "mac-address";
};
wan: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&macaddr_dp5>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -497,51 +542,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_0>;
label = "lan4";
nvmem-cells = <&macaddr_dp1>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan3";
nvmem-cells = <&macaddr_dp2>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan2";
nvmem-cells = <&macaddr_dp3>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan1";
nvmem-cells = <&macaddr_dp4>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081>;
label = "wan";
nvmem-cells = <&macaddr_dp5>;
nvmem-cell-names = "mac-address";
};
&pcie_qmp0 {
status = "okay";
};
@@ -232,35 +232,80 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_art_18>;
nvmem-cell-names = "mac-address";
};
port@2 {
port_id = <2>;
phy_address = <1>;
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_art_12>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_art_c>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
reg = <6>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -269,50 +314,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_0>;
label = "lan4";
nvmem-cells = <&macaddr_art_18>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan3";
nvmem-cells = <&macaddr_art_12>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan2";
nvmem-cells = <&macaddr_art_c>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan1";
nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "Dynalink-DL-WRX36";
@@ -82,21 +82,34 @@
};
};
&dp6 {
&uniphy2 {
status = "okay";
phy-handle = <&ar8031>;
label = "lan";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT6>;
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>;
qcom,port_phyinfo {
port@6 {
phy_address = <4>;
port_id = <6>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&ar8031>;
phy-mode = "sgmii";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -81,23 +81,34 @@
};
};
&dp5 {
&uniphy1 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081_28>;
label = "lan";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT5>;
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
qcom,port_phyinfo {
port@5 {
phy_address = <28>;
port_id = <5>;
port_mac_sel = "QGMAC_PORT";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport5: port@5 {
reg = <5>;
label = "lan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
};
};
+62 -61
View File
@@ -16,11 +16,11 @@
aliases {
serial0 = &blsp1_uart5;
/* Aliases are required by U-Boot to patch MAC addresses */
ethernet0 = &dp6_syn;
ethernet1 = &dp4;
ethernet2 = &dp3;
ethernet3 = &dp2;
label-mac-device = &dp6_syn;
ethernet0 = &swport6;
ethernet1 = &swport4;
ethernet2 = &swport3;
ethernet3 = &swport2;
label-mac-device = &swport6;
led-boot = &led_system_blue;
led-failsafe = &led_system_red;
led-running = &led_system_green;
@@ -198,37 +198,71 @@
vqmmc-supply = <&l11>;
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <MAC_MODE_10GBASE_R>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
status = "disabled";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@6 {
port_id = <6>;
phy_address = <8>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
swport4: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&aqr113c>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -237,39 +271,6 @@
status = "okay";
};
/* Dummy LAN port */
&dp1 {
status = "disabled";
phy-handle = <&qca8075_0>;
label = "lan4";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan3";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan1";
};
&dp6_syn {
status = "okay";
qcom,mactype = <1>;
phy-mode = "usxgmii";
phy-handle = <&aqr113c>;
label = "wan";
};
&pcie_qmp0 {
status = "okay";
};
@@ -338,44 +338,54 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT4>;
switch_wan_bmp = <ESS_PORT6>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@4 {
phy_address = <3>;
port_id = <4>;
};
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
port@6 {
phy_address = <16>;
port_id = <6>;
port_mac_sel = "QGMAC_PORT";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport4: port@4 {
reg = <4>;
label = "lan";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
&edma {
status = "okay";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
};
&pcie_qmp0 {
status = "okay";
};
+63 -60
View File
@@ -19,7 +19,7 @@
led-running = &led_system_blue;
led-failsafe = &led_system_red;
led-upgrade = &led_system_green;
label-mac-device = &dp2;
label-mac-device = &swport2;
};
chosen {
@@ -438,33 +438,76 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -473,46 +516,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&ssphy_0 {
status = "okay";
};
+62 -67
View File
@@ -409,40 +409,80 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
phy_address = <8>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&aqr114c>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -451,51 +491,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_0>;
label = "lan1";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan2";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan4";
nvmem-cells = <&hw_mac_addr 1>;
nvmem-cell-names = "mac-address";
};
&dp6_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr114c>;
label = "wan";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&ssphy_0 {
status = "okay";
};
+52 -50
View File
@@ -20,11 +20,11 @@
led-upgrade = &led_system_red;
serial0 = &blsp1_uart5;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp6_syn;
ethernet1 = &dp4;
ethernet2 = &dp3;
ethernet3 = &dp2;
label-mac-device = &dp6_syn;
ethernet0 = &swport6;
ethernet1 = &swport4;
ethernet2 = &swport3;
ethernet3 = &swport2;
label-mac-device = &swport6;
};
chosen {
@@ -173,33 +173,62 @@
status = "okay";
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
status = "okay";
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -208,33 +237,6 @@
status = "okay";
};
&dp2 {
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan3";
status = "okay";
};
&dp3 {
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan2";
status = "okay";
};
&dp4 {
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan1";
status = "okay";
};
&dp6_syn {
phy-handle = <&qca8081>;
label = "wan";
status = "okay";
};
&wifi {
qcom,ath11k-calibration-variant = "Spectrum-SAX1V1K";
status = "okay";
+26 -16
View File
@@ -89,18 +89,36 @@
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT6>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -135,14 +153,6 @@
};
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081_28>;
label = "lan";
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&qpic_bam {
status = "okay";
};
+26 -16
View File
@@ -14,8 +14,8 @@
aliases {
serial0 = &blsp1_uart5;
ethernet0 = &dp6;
label-mac-device = &dp6;
ethernet0 = &swport6;
label-mac-device = &swport6;
led-boot = &led_system_blue;
led-failsafe = &led_system_red;
@@ -115,18 +115,34 @@
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <ESS_PORT6>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -161,12 +177,6 @@
};
};
&dp6 {
status = "okay";
phy-handle = <&qca8081_28>;
label = "lan";
};
&qpic_bam {
status = "okay";
};
+54 -48
View File
@@ -21,11 +21,11 @@
led-running = &led_system_green;
led-upgrade = &led_system_blue;
/* Aliases as required by u-boot to patch MAC addresses */
ethernet0 = &dp6;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
label-mac-device = &dp6;
ethernet0 = &swport6;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
label-mac-device = &swport6;
};
chosen {
@@ -384,32 +384,62 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan3";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -418,30 +448,6 @@
status = "okay";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan1";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan2";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan3";
};
&dp6 {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
};
&pcie_qmp0 {
status = "okay";
};
@@ -22,12 +22,12 @@
* Aliases as required by u-boot
* to patch MAC addresses
*/
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5;
label-mac-device = &dp1;
ethernet0 = &swport1;
ethernet1 = &swport2;
ethernet2 = &swport3;
ethernet3 = &swport4;
ethernet4 = &swport5;
label-mac-device = &swport1;
};
chosen {
@@ -379,33 +379,66 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
@@ -414,36 +447,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
};
&wifi {
status = "okay";
@@ -443,24 +443,46 @@ to suit the TP-Link Deco X80-5G target */
};
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_lan_bmp = <ESS_PORT6>; /* lan port bitmap */
switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@5 {
port_id = <5>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <4>;
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
};
swport6: port@6 {
reg = <6>;
label = "lan";
phy-handle = <&qca8033>;
phy-mode = "sgmii";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -469,18 +491,6 @@ to suit the TP-Link Deco X80-5G target */
status = "okay";
};
&dp5 {
status = "okay";
phy-handle = <&qca8081>;
label = "wan";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8033>;
label = "lan";
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "tplink_deco-x80-5g";
+75 -79
View File
@@ -20,9 +20,7 @@
aliases {
serial0 = &blsp1_uart5;
serial1 = &blsp1_uart3;
/* Alias as required by u-boot to patch MAC addresses */
ethernet0 = &dp1;
label-mac-device = &dp1;
label-mac-device = &swport1;
};
chosen {
@@ -300,46 +298,94 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>;
switch_mac_mode2 = <MAC_MODE_USXGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
ethernet-phy-ieee802.3-c45;
phy_address = <8>;
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&macaddr_lan 1>;
nvmem-cell-names = "mac-address";
};
swport6: port@6 {
reg = <6>;
label = "10g";
phy-handle = <&aqr113c>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -348,56 +394,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan1";
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&qca8081>;
label = "wan";
nvmem-cells = <&macaddr_lan 1>;
nvmem-cell-names = "mac-address";
};
&dp6_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr113c>;
label = "10g";
nvmem-cells = <&macaddr_lan 0>;
nvmem-cell-names = "mac-address";
};
&blsp1_i2c2 {
pinctrl-0 = <&i2c_0_pins>;
pinctrl-names = "default";
@@ -19,7 +19,7 @@
led-running = &led_system_white;
led-upgrade = &led_system_white;
led-internet = &led_wan_white;
label-mac-device = &dp5;
label-mac-device = &swport5;
};
chosen {
@@ -190,40 +190,90 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "lan4";
phy-handle = <&qca8075_0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan2";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan1";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
phy_address = <7>;
compatible = "ethernet-phy-ieee802.3-c45";
ethernet-phy-ieee802.3-c45;
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
swport6: port@6 {
reg = <6>;
label = "lan5";
phy-handle = <&aqr111b0>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -232,55 +282,6 @@
status = "okay";
};
&dp1 {
status = "okay";
phy-handle = <&qca8075_0>;
label = "lan4";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan3";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan2";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan1";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "wan";
nvmem-cells = <&macaddr_wan>;
nvmem-cell-names = "mac-address";
};
&dp6_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr111b0>;
label = "lan5";
nvmem-cells = <&macaddr_lan>;
nvmem-cell-names = "mac-address";
};
&blsp1_uart5 {
status = "okay";
};
@@ -12,10 +12,10 @@
compatible = "netgear,rbs750", "qcom,ipq8074";
};
&dp1 {
&swport1 {
status = "disabled";
};
&dp2 {
&swport2 {
status = "disabled";
};
+51 -49
View File
@@ -18,7 +18,7 @@
led-failsafe = &lp5562_red;
led-upgrade = &lp5562_blue;
serial0 = &blsp1_uart5;
label-mac-device = &dp5;
label-mac-device = &swport5;
};
chosen {
@@ -98,32 +98,66 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT4 | ESS_PORT5)>;
switch_wan_bmp = <ESS_PORT1>;
switch_mac_mode = <MAC_MODE_PSGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@2 {
port_id = <2>;
phy_address = <1>;
swport1: port@1 {
reg = <1>;
label = "wan";
phy-handle = <&phy0>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_boarddata 1>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport2: port@2 {
reg = <2>;
label = "lan3";
phy-handle = <&phy1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_boarddata 1>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&phy3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_boarddata 1>;
nvmem-cell-names = "mac-address";
};
swport5: port@5 {
reg = <5>;
label = "lan1";
phy-handle = <&phy4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_boarddata 0>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -162,38 +196,6 @@
};
};
&dp1 {
status = "okay";
phy-handle = <&phy0>;
label = "wan";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_boarddata 1>;
};
&dp2 {
status = "okay";
phy-handle = <&phy1>;
label = "lan3";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_boarddata 2>;
};
&dp4 {
status = "okay";
phy-handle = <&phy3>;
label = "lan2";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_boarddata 1>;
};
&dp5 {
status = "okay";
phy-handle = <&phy4>;
label = "lan1";
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_boarddata 0>;
};
&qpic_bam {
status = "okay";
};
+106 -77
View File
@@ -17,12 +17,6 @@
aliases {
serial0 = &blsp1_uart5;
mdio-gpio0 = &mdio1;
ethernet0 = &dp1;
ethernet1 = &dp2;
ethernet2 = &dp3;
ethernet3 = &dp4;
ethernet4 = &dp5_syn;
ethernet5 = &dp6_syn;
led-boot = &led_pwr;
led-failsafe = &led_pwr;
led-running = &led_pwr;
@@ -160,6 +154,16 @@
enable-active-high;
regulator-boot-on;
};
sfp: sfp {
compatible = "sff,sfp";
i2c-bus = <&blsp1_i2c2>;
mod-def0-gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
tx-disable-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
tx-fault-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
};
};
&cpu0_thermal {
@@ -455,6 +459,12 @@
partition@3e0000 {
label = "0:appsblenv";
reg = <0x003e0000 0x20000>;
nvmem-layout {
compatible = "u-boot,env";
macaddr_ubootenv_ethaddr: ethaddr {};
};
};
partition@400000 {
@@ -552,6 +562,7 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10>;
dsa,member = <1 0>;
ports {
#address-cells = <1>;
@@ -560,7 +571,7 @@
port@0 {
reg = <0>;
label = "cpu";
ethernet = <&dp1>;
ethernet = <&port_switch>;
phy-mode = "rgmii-rxid";
phy-handle = <&qca8035>;
};
@@ -569,30 +580,40 @@
reg = <1>;
label = "lan7";
phy-handle = <&qca8337_0>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@2 {
reg = <2>;
label = "lan6";
phy-handle = <&qca8337_1>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@3 {
reg = <3>;
label = "lan5";
phy-handle = <&qca8337_2>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8337_3>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@5 {
reg = <5>;
label = "lan3";
phy-handle = <&qca8337_4>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@6 {
@@ -602,6 +623,8 @@
phy-handle = <&qca8033>;
managed = "in-band-status";
qca,sgmii-enable-pll;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -639,99 +662,105 @@
&switch {
status = "okay";
dsa,member = <0 0>;
pinctrl-0 = <&uniphy_pins>;
pinctrl-names = "default";
switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT5 | ESS_PORT6)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT4>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode1 = <MAC_MODE_10GBASE_R>; /* mac mode for uniphy instance1*/
switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@0 {
port_id = <1>;
phy_address = <0x8>;
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@1 {
port_id = <2>;
phy_address = <0x9>;
port_switch: port@1 {
reg = <1>;
label = "switch";
phy-handle = <&qca8075_8>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 0>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@2 {
port_id = <3>;
phy_address = <0xa>;
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_9>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@3 {
port_id = <4>;
phy_address = <0xb>;
reg = <3>;
label = "lan1";
phy-handle = <&qca8075_a>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
sfp: port@4 {
port_id = <5>;
phy_address = <30>;
phy_i2c_address = <30>;
phy-i2c-mode; /*i2c access phy */
media-type = "sfp"; /* fiber mode */
sfp_tx_dis_pin = <&tlmm 48 GPIO_ACTIVE_HIGH>;
sfp_mod_present_pin = <&tlmm 46 GPIO_ACTIVE_LOW>;
port@4 {
reg = <4>;
label = "wan";
phy-handle = <&qca8075_b>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
/* PCB R5.00, AQR113C */
port@5_113c {
status = "disabled";
port_id = <6>;
phy_address = <8>;
ethernet-phy-ieee802.3-c45;
mdiobus = <&mdio1>;
port@5 {
reg = <5>;
label = "10g-sfp";
sfp = <&sfp>;
phy-mode = "10gbase-r";
managed = "in-band-status";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@6 {
reg = <6>;
label = "10g-copper";
phy-handle = <&aqr113c>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_ubootenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
};
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&edma {
status = "okay";
};
&dp1 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_8>;
label = "switch";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_9>;
label = "lan2";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_a>;
label = "lan1";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_b>;
label = "wan";
};
&dp5_syn {
status = "okay";
phy-handle = <&sfp>;
label = "10g-sfp";
};
&dp6_syn {
status = "okay";
phy-handle = <&aqr113c>;
label = "10g-copper";
};
&wifi {
status = "okay";
qcom,ath11k-calibration-variant = "Asus-RT-AX89X";
+67 -62
View File
@@ -20,7 +20,7 @@
led-failsafe = &led_front_red;
led-running = &led_front_green;
led-upgrade = &led_front_white;
label-mac-device = &dp2;
label-mac-device = &swport2;
};
chosen {
@@ -458,35 +458,80 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport5: port@5 {
reg = <5>;
label = "lan5";
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
swport6: port@6 {
reg = <6>;
label = "wan";
phy-handle = <&qca8081_28>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_boarddata1_6>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -495,46 +540,6 @@
status = "okay";
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
label = "lan2";
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan4";
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
label = "lan5";
nvmem-cells = <&macaddr_boarddata1_0>;
nvmem-cell-names = "mac-address";
};
&dp6 {
status = "okay";
phy-handle = <&qca8081_28>;
label = "wan";
nvmem-cells = <&macaddr_boarddata1_6>;
nvmem-cell-names = "mac-address";
};
&wifi {
status = "okay";
+37 -26
View File
@@ -16,9 +16,9 @@
aliases {
serial0 = &blsp1_uart5;
ethernet0 = &dp6_syn;
ethernet1 = &dp4;
label-mac-device = &dp6_syn;
ethernet0 = &swport6;
ethernet1 = &swport4;
label-mac-device = &swport6;
led-boot = &led_system_blue;
led-failsafe = &led_system_red;
@@ -148,23 +148,46 @@
status = "okay";
};
&uniphy0 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT4 | ESS_PORT6)>;
switch_mac_mode = <MAC_MODE_PSGMII>;
switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@4 {
port_id = <4>;
phy_address = <3>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
port_id = <6>;
phy_address = <28>;
port_mac_sel = "QGMAC_PORT";
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport6: port@6 {
reg = <6>;
label = "lan1";
phy-handle = <&qca8081>;
phy-mode = "2500base-x";
pcs-handle = <&uniphy2 0>;
};
};
};
@@ -214,18 +237,6 @@
};
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
label = "lan2";
};
&dp6_syn {
status = "okay";
phy-handle = <&qca8081>;
label = "lan1";
};
&qpic_bam {
status = "okay";
};
@@ -19,7 +19,7 @@
led-failsafe = &led_power_red;
led-running = &led_power_white;
led-upgrade = &led_power_white;
label-mac-device = &dp5_syn;
label-mac-device = &swport5;
};
chosen {
@@ -255,41 +255,84 @@
};
};
&uniphy0 {
status = "okay";
};
&uniphy1 {
status = "okay";
};
&uniphy2 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>;
switch_wan_bmp = <ESS_PORT5>;
switch_mac_mode = <MAC_MODE_QSGMII>;
switch_mac_mode1 = <MAC_MODE_USXGMII>;
switch_mac_mode2 = <MAC_MODE_USXGMII>;
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <0x19>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <0x1a>;
swport2: port@2 {
reg = <2>;
label = "lan4";
phy-handle = <&qca8075_1>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 1>;
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@4 {
port_id = <4>;
phy_address = <0x1b>;
swport3: port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&qca8075_2>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 2>;
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@5 {
port_id = <5>;
ethernet-phy-ieee802.3-c45;
phy_address = <0x0>;
swport4: port@4 {
reg = <4>;
label = "lan2";
phy-handle = <&qca8075_3>;
phy-mode = "qsgmii";
pcs-handle = <&uniphy0 3>;
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
port@6 {
port_id = <6>;
ethernet-phy-ieee802.3-c45;
phy_address = <0x8>;
swport5: port@5 {
reg = <5>;
label = "wan";
phy-handle = <&aqr113c_1>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy1 0>;
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
swport6: port@6 {
reg = <6>;
label = "lan1";
phy-handle = <&aqr113c_2>;
phy-mode = "usxgmii";
pcs-handle = <&uniphy2 0>;
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
};
};
@@ -298,51 +341,6 @@
status = "okay";
};
&dp2 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_1>;
label = "lan4";
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_2>;
label = "lan3";
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-mode = "qsgmii";
phy-handle = <&qca8075_3>;
label = "lan2";
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&dp5_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr113c_1>;
label = "wan";
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&dp6_syn {
status = "okay";
phy-mode = "usxgmii";
phy-handle = <&aqr113c_2>;
label = "lan1";
nvmem-cells = <&macaddr_appsblenv_ethaddr>;
nvmem-cell-names = "mac-address";
};
&ssphy_0 {
status = "okay";
};
@@ -89,13 +89,33 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
phyinfo: qcom,port_phyinfo {
port@1 {
port_id = <1>;
phy_address = <1>;
swports: ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
swport1: port@1 {
reg = <1>;
phy-handle = <&ar8033>;
phy-mode = "sgmii";
pcs-handle = <&uniphy0 0>;
};
};
};
@@ -112,12 +132,6 @@
};
};
&dp1 {
status = "okay";
phy-handle = <&ar8033>;
phy-mode = "sgmii";
};
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
@@ -46,33 +46,25 @@
};
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "wan";
nvmem-cells = <&mac_address 0>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan3";
nvmem-cells = <&mac_address 1>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
&swport4 {
label = "lan2";
nvmem-cells = <&mac_address 1>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
&swport5 {
label = "lan1";
nvmem-cells = <&mac_address 1>;
nvmem-cell-names = "mac-address";
@@ -5,7 +5,7 @@
/ {
aliases {
label-mac-device = &dp2;
label-mac-device = &swport2;
};
};
@@ -242,33 +242,25 @@
};
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
label = "wan";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
label = "lan1";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
&swport4 {
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
label = "lan2";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
&swport5 {
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
label = "lan3";
+5 -13
View File
@@ -22,7 +22,7 @@
};
aliases {
label-mac-device = &dp2;
label-mac-device = &swport2;
};
};
@@ -256,33 +256,25 @@
};
};
&dp2 {
status = "okay";
phy-handle = <&qca8075_1>;
&swport2 {
label = "wan";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp3 {
status = "okay";
phy-handle = <&qca8075_2>;
&swport3 {
label = "lan3";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp4 {
status = "okay";
phy-handle = <&qca8075_3>;
&swport4 {
label = "lan2";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
};
&dp5 {
status = "okay";
phy-handle = <&qca8075_4>;
&swport5 {
label = "lan1";
nvmem-cells = <&hw_mac_addr 0>;
nvmem-cell-names = "mac-address";
+38 -16
View File
@@ -151,32 +151,54 @@
};
};
&uniphy0 {
status = "okay";
};
&switch {
status = "okay";
switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
switch_wan_bmp = <ESS_PORT2>; /* wan port bitmap */
switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
ports {
#address-cells = <1>;
#size-cells = <0>;
qcom,port_phyinfo {
port@2 {
port_id = <2>;
phy_address = <1>;
port@0 {
reg = <0>;
ethernet = <&edma>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@3 {
port_id = <3>;
phy_address = <2>;
swport2: port@2 {
reg = <2>;
phy-handle = <&qca8075_1>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 1>;
};
port@4 {
port_id = <4>;
phy_address = <3>;
swport3: port@3 {
reg = <3>;
phy-handle = <&qca8075_2>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 2>;
};
port@5 {
port_id = <5>;
phy_address = <4>;
swport4: port@4 {
reg = <4>;
phy-handle = <&qca8075_3>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 3>;
};
swport5: port@5 {
reg = <5>;
phy-handle = <&qca8075_4>;
phy-mode = "psgmii";
pcs-handle = <&uniphy0 4>;
};
};
};
+1 -1
View File
@@ -86,7 +86,7 @@ define Device/asus_rt-ax89x
PAGESIZE := 2048
DEVICE_DTS_CONFIG := config@hk01
SOC := ipq8074
DEVICE_PACKAGES := kmod-hwmon-gpiofan ipq-wifi-asus_rt-ax89x
DEVICE_PACKAGES := kmod-hwmon-gpiofan kmod-sfp ipq-wifi-asus_rt-ax89x
KERNEL_NAME := vmlinux
KERNEL := kernel-bin | libdeflate-gzip
KERNEL_IN_UBI := 1
@@ -1,5 +1,6 @@
SUBTARGET:=ipq50xx
BOARDNAME:=Qualcomm Atheros IPQ50xx
DEFAULT_PACKAGES += kmod-qca-nss-dp
define Target/Description
Build firmware images for Qualcomm Atheros IPQ50xx based boards.
@@ -4,8 +4,10 @@ CONFIG_MTD_SPLIT_FIT_FW=y
CONFIG_PINCTRL_IPQ6018=y
CONFIG_PWM=y
CONFIG_PWM_IPQ=y
CONFIG_QCOM_80211AX_PPE=y
CONFIG_QCOM_APM=y
# CONFIG_QCOM_CLK_SMD_RPM is not set
CONFIG_QCOM_EDMA=y
# CONFIG_QCOM_RPMPD is not set
CONFIG_QCOM_SMD_RPM=y
CONFIG_REGULATOR_CPR3=y
@@ -16,8 +16,10 @@ CONFIG_PM_GENERIC_DOMAINS=y
CONFIG_PM_GENERIC_DOMAINS_OF=y
# CONFIG_POWER_RESET_QCOM_PON is not set
CONFIG_QCA83XX_PHY=y
CONFIG_QCOM_80211AX_PPE=y
CONFIG_QCOM_APM=y
# CONFIG_QCOM_COINCELL is not set
CONFIG_QCOM_EDMA=y
CONFIG_QCOM_GDSC=y
CONFIG_QCOM_SPMI_ADC5=y
# CONFIG_QCOM_SPMI_RRADC is not set