ARM: dts: am5729: beagleboneai: switch to new cpsw switch drv
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 7 Sep 2020 20:21:20 +0000 (23:21 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Sep 2020 09:50:35 +0000 (12:50 +0300)
Switch BeagleBone AI to use new cpsw switch driver.
It has one Ext. port only and fits dual_mac mode with no issues.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am5729-beagleboneai.dts

index e9c7f44..149cfaf 100644 (file)
        status = "okay";
 };
 
-&davinci_mdio {
+&davinci_mdio_sw {
        reset-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
        reset-delay-us = <2>;
 
-       phy0: ethernet-phy@1 {
+       phy0: ethernet-phy@4 {
                reg = <4>;
                eee-broken-100tx;
                eee-broken-1000t;
        };
 };
 
-&mac {
-       slaves = <1>;
+&mac_sw {
        status = "okay";
 };
 
-&cpsw_emac0 {
+&cpsw_port1 {
        phy-handle = <&phy0>;
        phy-mode = "rgmii-rxid";
+       ti,dual-emac-pvid = <1>;
+};
+
+&cpsw_port2 {
+       status = "disabled";
 };
 
 &ocp {