Porting guide ar71xx to ath79?

Using

&eth0 {
	status = "okay";

	phy-mode = "rmii";
	mtd-mac-address = <&uboot 0xe0000>;
	phy-handle = <&phy0>;

	fixed-link {
		speed = <100>;
		full-duplex;
	};
};

&eth1 {
	status = "okay";

	phy-mode = "rmii";
	mtd-mac-address = <&uboot 0xe0000>;
	mtd-mac-address-increment = <1>;
	phy-handle = <&phy4>;

/*	fixed-link {
		speed = <1000>;
		full-duplex;
	};*/
};

The part in the dmesg that change is

[    0.726599] libphy: Fixed MDIO Bus: probed
[    1.361687] libphy: mdio: probed
[    1.434136] ag71xx 19000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.444052] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII

Using

&eth0 {
	status = "okay";

	phy-mode = "rmii";
	mtd-mac-address = <&uboot 0xe0000>;
	phy-handle = <&phy0>;

/*	fixed-link {
		speed = <100>;
		full-duplex;
	};*/
};

&eth1 {
	status = "okay";

	phy-mode = "rmii";
	mtd-mac-address = <&uboot 0xe0000>;
	mtd-mac-address-increment = <1>;
	phy-handle = <&phy4>;

/*	fixed-link {
		speed = <1000>;
		full-duplex;
	};*/
};

The dmesg part thath change

[    0.726250] libphy: Fixed MDIO Bus: probed
[    1.361634] libphy: mdio: probed
[    1.502004] Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
[    1.509322] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=00008306, driver=Realtek RTL8306S]
[    1.519898] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RMII

In both cases, seems that eth1 it's not detected :thinking: