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
};
};
+&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>;
};
};
};
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";
};
};
+&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";
};
};
};
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";
compatible = "glinet,gl-ax1800", "qcom,ipq6018";
aliases {
- label-mac-device = &dp1;
+ label-mac-device = &swport1;
};
};
};
};
-&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 {
compatible = "glinet,gl-axt1800", "qcom,ipq6018";
aliases {
- label-mac-device = &dp1;
+ label-mac-device = &swport1;
};
vcc_sd: regulator-vcc-sd {
status = "okay";
};
-&switch {
- switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3)>;
- switch_wan_bmp = <ESS_PORT1>;
+&swport2 {
+ label = "lan2";
};
-&dp1 {
- status = "okay";
- phy-handle = <&qca8075_0>;
- label = "wan";
- nvmem-cells = <&macaddr_wan>;
- nvmem-cell-names = "mac-address";
+&swport3 {
+ label = "lan1";
};
-&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";
- nvmem-cells = <&macaddr_lan>;
- nvmem-cell-names = "mac-address";
};
&wifi {
};
};
+&uniphy0 {
+ status = "okay";
+};
+
&switch {
status = "okay";
- 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>;
+ 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@2 {
- port_id = <2>;
- phy_address = <1>;
+
+ 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@3 {
- port_id = <3>;
- phy_address = <2>;
+
+ 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@4 {
- port_id = <4>;
- phy_address = <3>;
+
+ 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";
};
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+
+ 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";
};
};
};
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";
};
};
};
+&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";
};
};
};
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";
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";
};
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";
};
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;
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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>;
+ };
+
+ swport3: port@3 {
+ reg = <3>;
+ label = "lan2";
+ phy-handle = <&qca8075_2>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 2>;
};
- port@4 {
- port_id = <4>;
- phy_address = <3>;
+
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan3";
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
};
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+
+ swport5: port@5 {
+ reg = <5>;
+ label = "wan";
+ phy-handle = <&qca8075_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
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";
};
};
-&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";
};
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";
};
};
};
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;
};
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <24>;
+ 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>;
};
};
};
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";
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;
};
&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>;
};
};
};
&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";
-};
};
};
};
+
+&uniphy0 {
+ status = "okay";
+};
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;
};
};
-&dp3 {
- status = "okay";
-
- phy-handle = <&qca8072_4>;
- label = "lan";
-};
-
&edma {
status = "okay";
};
};
};
+&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>;
+
+ 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>;
+ swport3: port@3 {
+ reg = <3>;
+ label = "lan";
+ phy-handle = <&qca8072_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
/ {
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;
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>;
};
};
};
};
};
-&dp5 {
- status = "okay";
- phy-handle = <&qca8081_24>;
- label = "lan";
-};
-
&blsp1_uart3 {
pinctrl-0 = <&serial_3_pins>;
pinctrl-names = "default";
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;
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>;
+
+ 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>;
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan2";
+ phy-handle = <&qca8072>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <ð1addr 0>;
};
- port@5 {
- port_id = <5>;
- phy_address = <24>;
- port_mac_sel = "QGMAC_PORT";
+ 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 = <ðaddr 0>;
};
};
};
};
};
-&dp4 {
- status = "okay";
-
- phy-handle = <&qca8072>;
- nvmem-cell-names = "mac-address";
- nvmem-cells = <ð1addr 0>;
- label = "lan2";
-};
-
-&dp5 {
- status = "okay";
-
- phy-mode = "sgmii";
- phy-handle = <&qca8081>;
- nvmem-cell-names = "mac-address";
- nvmem-cells = <ðaddr 0>;
- label = "lan1";
-};
-
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
gpio-reserved-ranges = <20 1>;
};
-&switch {
- switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
+&swport5 {
+ phy-handle = <&rtl8211f_4>;
};
&wifi {
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;
};
};
+&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;
+ };
+ };
+
+ swport1: port@1 {
+ reg = <1>;
+ label = "lan1";
+ phy-handle = <&qca8075_0>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 0>;
};
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ swport2: port@2 {
+ reg = <2>;
+ label = "lan2";
+ phy-handle = <&qca8075_1>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 1>;
};
- port@3 {
- port_id = <3>;
- phy_address = <2>;
+ swport3: port@3 {
+ reg = <3>;
+ label = "lan3";
+ phy-handle = <&qca8075_2>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 2>;
};
- port@4 {
- port_id = <4>;
- phy_address = <3>;
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan4";
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
};
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+ swport5: port@5 {
+ reg = <5>;
+ label = "wan";
+ phy-handle = <&qca8075_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
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";
};
led-failsafe = &led_system_red;
led-upgrade = &led_system_green;
- label-mac-device = &dp5_syn;
+ label-mac-device = &swport5;
};
chosen {
};
};
-&dp1 {
+&edma {
status = "okay";
- label = "lan1";
- phy-handle = <&qca8075_0>;
- phy-mode = "qsgmii";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
};
-&dp2 {
+&uniphy0 {
status = "okay";
- label = "lan2";
- phy-handle = <&qca8075_1>;
- phy-mode = "qsgmii";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
};
-&dp3 {
+&uniphy1 {
status = "okay";
- label = "lan3";
- phy-handle = <&qca8075_2>;
- phy-mode = "qsgmii";
- nvmem-cells = <&hw_mac_addr 1>;
- nvmem-cell-names = "mac-address";
};
-&dp4 {
+&switch {
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";
-};
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
-&edma {
- status = "okay";
-};
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
-&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>;
+ 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";
};
};
};
compatible = "netgear,rbs350", "qcom,ipq6018";
};
-&dp2 {
+&swport2 {
status = "disabled";
};
-&dp3 {
+&swport3 {
status = "disabled";
};
led-failsafe = &led_status_red;
led-upgrade = &led_status_blue;
serial0 = &blsp1_uart3;
- label-mac-device = &dp5;
+ label-mac-device = &swport5;
};
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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <0>;
+ 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";
};
};
};
};
};
-&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";
};
};
-&dp5 {
- phy-handle = <&rtl8211f_4>;
- phy-mode = "sgmii";
- label = "lan";
- status = "okay";
-};
-
&edma {
status = "okay";
};
};
};
+&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>;
};
};
};
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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+
+ swport5: port@5 {
+ reg = <5>;
+ label = "lan";
+ phy-handle = <&qca8075_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
status = "okay";
};
-&dp5 {
- status = "okay";
- phy-handle = <&qca8075_4>;
- label = "lan";
-};
-
&wifi {
status = "okay";
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>;
* 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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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>;
+ };
+
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan";
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
};
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+
+ swport5: port@5 {
+ reg = <5>;
+ label = "wan";
+ phy-handle = <&qca8075_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
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";
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <24>;
- port_mac_sel = "QGMAC_PORT";
+ 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>;
};
};
};
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";
led-failsafe = &led_system_yellow;
led-running = &led_system_blue;
led-upgrade = &led_system_yellow;
- label-mac-device = &dp2;
+ label-mac-device = &swport2;
};
chosen {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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";
};
};
};
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";
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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <24>;
- port_mac_sel = "QGMAC_PORT";
+ 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>;
};
};
};
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";
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &dp6_syn;
+ label-mac-device = &swport6;
};
chosen {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <24>;
- port_mac_sel = "QGMAC_PORT";
+ 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>;
};
};
};
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";
compatible = "zyxel,nwa210ax", "qcom,ipq8074";
aliases {
- ethernet0 = &dp5;
- ethernet1 = &dp1;
- label-mac-device = &dp5;
+ ethernet0 = &swport5;
+ ethernet1 = &swport1;
+ label-mac-device = &swport5;
};
leds {
};
};
-&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";
};
};
-&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";
};
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 {
vqmmc-supply = <&l11>;
};
-&switch {
+&uniphy0 {
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*/
-
- qcom,port_phyinfo {
- port@0 {
- port_id = <1>;
- phy_address = <16>;
- };
- port@1 {
- port_id = <2>;
- phy_address = <17>;
- };
- port@2 {
- port_id = <3>;
- phy_address = <18>;
- };
- port@3 {
- port_id = <4>;
- phy_address = <19>;
- };
- port@4 {
- port_id = <5>;
- phy_address = <8>;
- compatible = "ethernet-phy-ieee802.3-c45";
- ethernet-phy-ieee802.3-c45;
- };
- port@5 {
- port_id = <6>;
- phy_address = <0>;
- compatible = "ethernet-phy-ieee802.3-c45";
- ethernet-phy-ieee802.3-c45;
- };
- };
};
-&edma {
+&uniphy1 {
status = "okay";
};
-&dp1 {
+&uniphy2 {
status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_16>;
- label = "lan4";
};
-&dp2 {
+&switch {
status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_17>;
- label = "lan3";
-};
-&dp3 {
- status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_18>;
- label = "lan2";
-};
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
-&dp4 {
- status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_19>;
- label = "lan1";
-};
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
-&dp5 {
- status = "okay";
- qcom,mactype = <1>;
- phy-mode = "usxgmii";
- phy-handle = <&aqr113c_8>;
- label = "10g-1";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+
+ lan4: port@1 {
+ reg = <1>;
+ label = "lan4";
+ phy-handle = <&qca8075_16>;
+ phy-mode = "qsgmii";
+ pcs-handle = <&uniphy0 0>;
+ };
+
+ lan3: port@2 {
+ reg = <2>;
+ label = "lan3";
+ phy-handle = <&qca8075_17>;
+ phy-mode = "qsgmii";
+ pcs-handle = <&uniphy0 1>;
+ };
+
+ lan2: port@3 {
+ reg = <3>;
+ label = "lan2";
+ phy-handle = <&qca8075_18>;
+ phy-mode = "qsgmii";
+ pcs-handle = <&uniphy0 2>;
+ };
+
+
+ lan1: port@4 {
+ reg = <4>;
+ label = "lan1";
+ phy-handle = <&qca8075_19>;
+ phy-mode = "qsgmii";
+ pcs-handle = <&uniphy0 3>;
+ };
+
+ 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>;
+ };
+ };
};
-&dp6_syn {
+&edma {
status = "okay";
- phy-mode = "usxgmii";
- phy-handle = <&aqr113c_0>;
- label = "10g-2";
};
&wifi {
* 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 {
};
};
+&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";
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <0>;
+ 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>;
};
};
};
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";
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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <24>;
- port_mac_sel = "QGMAC_PORT";
+ 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>;
};
};
};
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";
led-failsafe = &led_system_yellow;
led-running = &led_system_blue;
led-upgrade = &led_system_yellow;
- label-mac-device = &dp5;
+ label-mac-device = &wan;
};
chosen {
};
};
-&switch {
+&uniphy0 {
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*/
-
- 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 = <24>;
- port_mac_sel = "QGMAC_PORT";
- };
- };
};
-&edma {
+&uniphy1 {
status = "okay";
};
-&dp1 {
+&switch {
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";
-};
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
-&dp3 {
- status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_2>;
- label = "lan2";
- nvmem-cells = <&macaddr_dp3>;
- nvmem-cell-names = "mac-address";
-};
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
-&dp4 {
- status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_3>;
- label = "lan1";
- nvmem-cells = <&macaddr_dp4>;
- nvmem-cell-names = "mac-address";
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+
+ 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";
+ };
+
+ 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";
+ };
+
+ 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";
+ };
+
+ 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";
+ };
+ };
};
-&dp5 {
+&edma {
status = "okay";
- phy-mode = "sgmii";
- phy-handle = <&qca8081>;
- label = "wan";
- nvmem-cells = <&macaddr_dp5>;
- nvmem-cell-names = "mac-address";
};
&pcie_qmp0 {
};
};
+&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";
};
};
};
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";
};
};
-&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>;
};
};
};
};
};
-&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>;
};
};
};
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;
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>;
};
};
};
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";
};
};
};
+&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;
};
};
-};
-&edma {
- status = "okay";
-};
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan";
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
+ };
-&dp4 {
- status = "okay";
- phy-handle = <&qca8075_3>;
- label = "lan";
+ swport6: port@6 {
+ reg = <6>;
+ label = "wan";
+ phy-handle = <&qca8081>;
+ phy-mode = "2500base-x";
+ pcs-handle = <&uniphy2 0>;
+ };
+ };
};
-&dp6_syn {
+&edma {
status = "okay";
- phy-handle = <&qca8081>;
- label = "wan";
};
&pcie_qmp0 {
led-running = &led_system_blue;
led-failsafe = &led_system_red;
led-upgrade = &led_system_green;
- label-mac-device = &dp2;
+ label-mac-device = &swport2;
};
chosen {
};
};
+&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";
};
};
};
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";
};
};
};
+&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>;
+
+ 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>;
+ 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@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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@3 {
- port_id = <3>;
- phy_address = <2>;
+ 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@4 {
- port_id = <4>;
- phy_address = <3>;
+ 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";
};
- port@6 {
- port_id = <6>;
- phy_address = <8>;
- compatible = "ethernet-phy-ieee802.3-c45";
- ethernet-phy-ieee802.3-c45;
+ 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";
};
};
};
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";
};
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 {
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>;
};
};
};
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";
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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@6 {
- port_id = <6>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
+ 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";
};
};
};
};
};
-&dp6_syn {
- status = "okay";
- phy-handle = <&qca8081_28>;
- label = "lan";
- nvmem-cells = <&macaddr_ubootenv_ethaddr>;
- nvmem-cell-names = "mac-address";
-};
-
&qpic_bam {
status = "okay";
};
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;
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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
- qcom,port_phyinfo {
- port@6 {
- port_id = <6>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
+ swport6: port@6 {
+ reg = <6>;
+ label = "lan";
+ phy-handle = <&qca8081_28>;
+ phy-mode = "2500base-x";
+ pcs-handle = <&uniphy2 0>;
};
};
};
};
};
-&dp6 {
- status = "okay";
- phy-handle = <&qca8081_28>;
- label = "lan";
-};
-
&qpic_bam {
status = "okay";
};
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 {
};
};
+&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>;
};
};
};
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";
};
* 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 {
};
};
+&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>;
};
};
};
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";
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@5 {
- port_id = <5>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
+ 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>;
};
};
};
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";
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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <0>;
+ 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";
+ };
+
+ 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@4 {
- port_id = <4>;
- phy_address = <3>;
+ 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@5 {
- port_id = <5>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
+ 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";
};
- port@6 {
- port_id = <6>;
- ethernet-phy-ieee802.3-c45;
- phy_address = <8>;
+ 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";
};
};
};
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";
led-running = &led_system_white;
led-upgrade = &led_system_white;
led-internet = &led_wan_white;
- label-mac-device = &dp5;
+ label-mac-device = &swport5;
};
chosen {
};
};
+&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>;
+
+ 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>;
+ 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@2 {
- port_id = <2>;
- phy_address = <1>;
+
+ 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@3 {
- port_id = <3>;
- phy_address = <2>;
+
+ 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@4 {
- port_id = <4>;
- phy_address = <3>;
+
+ 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@5 {
- port_id = <5>;
- phy_address = <4>;
+
+ 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";
};
- port@6 {
- port_id = <6>;
- phy_address = <7>;
- compatible = "ethernet-phy-ieee802.3-c45";
- ethernet-phy-ieee802.3-c45;
+
+ 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";
};
};
};
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";
};
compatible = "netgear,rbs750", "qcom,ipq8074";
};
-&dp1 {
+&swport1 {
status = "disabled";
};
-&dp2 {
+&swport2 {
status = "disabled";
};
led-failsafe = &lp5562_red;
led-upgrade = &lp5562_blue;
serial0 = &blsp1_uart5;
- label-mac-device = &dp5;
+ label-mac-device = &swport5;
};
chosen {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@1 {
- port_id = <1>;
- phy_address = <0>;
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+
+ 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@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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@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";
};
};
};
};
};
-&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";
};
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;
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 {
partition@3e0000 {
label = "0:appsblenv";
reg = <0x003e0000 0x20000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_ubootenv_ethaddr: ethaddr {};
+ };
};
partition@400000 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10>;
+ dsa,member = <1 0>;
ports {
#address-cells = <1>;
port@0 {
reg = <0>;
label = "cpu";
- ethernet = <&dp1>;
+ ethernet = <&port_switch>;
phy-mode = "rgmii-rxid";
phy-handle = <&qca8035>;
};
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 {
phy-handle = <&qca8033>;
managed = "in-band-status";
qca,sgmii-enable-pll;
+ nvmem-cells = <&macaddr_ubootenv_ethaddr>;
+ nvmem-cell-names = "mac-address";
};
};
};
&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>;
- };
- port@1 {
- port_id = <2>;
- phy_address = <0x9>;
- };
- port@2 {
- port_id = <3>;
- phy_address = <0xa>;
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
};
- port@3 {
- port_id = <4>;
- phy_address = <0xb>;
+
+ 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";
};
- 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@2 {
+ 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";
};
- /* PCB R5.00, AQR113C */
- port@5_113c {
- status = "disabled";
- port_id = <6>;
- phy_address = <8>;
- ethernet-phy-ieee802.3-c45;
- mdiobus = <&mdio1>;
+ port@3 {
+ 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";
+ };
+
+ 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";
+ };
+
+ 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";
};
};
};
-&edma {
- status = "okay";
-};
-
-&dp1 {
+&uniphy0 {
status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_8>;
- label = "switch";
};
-&dp2 {
+&uniphy1 {
status = "okay";
- phy-mode = "qsgmii";
- phy-handle = <&qca8075_9>;
- label = "lan2";
};
-&dp3 {
+&uniphy2 {
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 {
+&edma {
status = "okay";
- phy-handle = <&aqr113c>;
- label = "10g-copper";
};
&wifi {
led-failsafe = &led_front_red;
led-running = &led_front_green;
led-upgrade = &led_front_white;
- label-mac-device = &dp2;
+ label-mac-device = &swport2;
};
chosen {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ 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";
};
};
};
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";
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;
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>;
+
+ 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>;
+ swport4: port@4 {
+ reg = <4>;
+ label = "lan2";
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
};
- port@6 {
- port_id = <6>;
- phy_address = <28>;
- port_mac_sel = "QGMAC_PORT";
+ swport6: port@6 {
+ reg = <6>;
+ label = "lan1";
+ phy-handle = <&qca8081>;
+ phy-mode = "2500base-x";
+ pcs-handle = <&uniphy2 0>;
};
};
};
};
};
-&dp4 {
- status = "okay";
- phy-handle = <&qca8075_3>;
- label = "lan2";
-};
-
-&dp6_syn {
- status = "okay";
- phy-handle = <&qca8081>;
- label = "lan1";
-};
-
&qpic_bam {
status = "okay";
};
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 {
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <0x19>;
+ 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@3 {
- port_id = <3>;
- phy_address = <0x1a>;
+ 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@4 {
- port_id = <4>;
- phy_address = <0x1b>;
+ 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@5 {
- port_id = <5>;
- ethernet-phy-ieee802.3-c45;
- phy_address = <0x0>;
+ 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";
};
- port@6 {
- port_id = <6>;
- ethernet-phy-ieee802.3-c45;
- phy_address = <0x8>;
+ 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";
};
};
};
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";
};
};
};
+&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>;
};
};
};
};
};
-&dp1 {
- status = "okay";
- phy-handle = <&ar8033>;
- phy-mode = "sgmii";
-};
-
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
};
};
-&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";
/ {
aliases {
- label-mac-device = &dp2;
+ label-mac-device = &swport2;
};
};
};
};
-&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";
};
aliases {
- label-mac-device = &dp2;
+ label-mac-device = &swport2;
};
};
};
};
-&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";
};
};
+&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>;
+
+ port@0 {
+ reg = <0>;
+ ethernet = <&edma>;
+ phy-mode = "internal";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
- qcom,port_phyinfo {
- port@2 {
- port_id = <2>;
- phy_address = <1>;
+ swport2: port@2 {
+ reg = <2>;
+ phy-handle = <&qca8075_1>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 1>;
};
- port@3 {
- port_id = <3>;
- phy_address = <2>;
+ swport3: port@3 {
+ reg = <3>;
+ phy-handle = <&qca8075_2>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 2>;
};
- port@4 {
- port_id = <4>;
- phy_address = <3>;
+ swport4: port@4 {
+ reg = <4>;
+ phy-handle = <&qca8075_3>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 3>;
};
- port@5 {
- port_id = <5>;
- phy_address = <4>;
+ swport5: port@5 {
+ reg = <5>;
+ phy-handle = <&qca8075_4>;
+ phy-mode = "psgmii";
+ pcs-handle = <&uniphy0 4>;
};
};
};
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
SUBTARGET:=ipq50xx
BOARDNAME:=Qualcomm Atheros IPQ50xx
+DEFAULT_PACKAGES += kmod-qca-nss-dp
define Target/Description
Build firmware images for Qualcomm Atheros IPQ50xx based boards.
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
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