qualcommax: convert qca807x PHY to PHY package implementation
[openwrt/staging/robimarko.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8070-cax1800.dts
index 6dbd0e95f513aa61c49c678523c550d3efb6990a..e62ae314fb5d82be09c51643f782e34166941b08 100644 (file)
        pinctrl-0 = <&spi_0_pins>;
        pinctrl-names = "default";
        cs-select = <0>;
-       status = "ok";
+       status = "okay";
 
        m25p80@0 {
                #address-cells = <1>;
 
        reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
 
-       qca8075: ethernet-phy@4 {
-               compatible = "ethernet-phy-ieee802.3-c22";
-               reg = <4>;
+       ethernet-phy-package@0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "qcom,qca8075-package";
+               reg = <0>;
+
+               qca8075_4: ethernet-phy@4 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <4>;
+               };
        };
 };
 
 &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_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
        switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
 
        qcom,port_phyinfo {
-               port@0 {
-                       port_id = <1>;
-                       phy_address = <0>;
-               };
-               port@1 {
-                       port_id = <2>;
-                       phy_address = <1>;
-               };
-               port@2 {
-                       port_id = <3>;
-                       phy_address = <2>;
-               };
-               port@3 {
-                       port_id = <4>;
-                       phy_address = <3>;
-               };
-               port@4 {
+               port@5 {
                        port_id = <5>;
                        phy_address = <4>;
                };
 
 &dp5 {
        status = "okay";
-       phy-handle = <&qca8075>;
+       phy-handle = <&qca8075_4>;
        label = "lan";
 };