|
From: | Todd Sampson |
Subject: | [Ltib] Changed from Realtek to Marvell Ethernet switch |
Date: | Fri, 12 Aug 2016 10:28:01 -0400 |
On a MPC5200 board that was using a Realtek RTL8305SC Ethernet switch, we needed to change to a Marvell 88E6065-A1-LAJ1I000. The file at: ltib/rpm/BUILD/linux-2.6.26.3/arch/powerpc//boot/dts/m9000.dts Was, (for the old switch): …address@hidden { device_type = "network"; compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec"; reg = <0x3000 0x400>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <2 5 0>; interrupt-parent = <&mpc5200_pic>; phy-handle = <&phy0>; }; address@hidden { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,mpc5200b-mdio", "fsl,mpc5200-mdio"; reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. interrupt-parent = <&mpc5200_pic>; phy0: address@hidden { device_type = "ethernet-phy"; reg = <5>; // ATS. Was 0, changed to 5 per Realtek advise. Fixed issue where eth0 had to be live for other ports to work. }; };… The board with the old, Realtek switch used to boot up with: net eth0: attached phy 5 to driver Generic PHY. Now, the board, with the new Marvell switch boots up saying: net eth0: phy_connect failed net eth0: mpc52xx_fec_init_phy failed IP_Config: Failed to open eth0 From: https://www.kernel.org/doc/Documentation/devicetree/bindings/powerpc/fsl/mpc5200.txt fsl,mpc5200-fec nodes --------------------- The FEC node can specify one of the following properties to configure the MII link: - fsl,7-wire-mode - An empty property that specifies the link uses 7-wire mode instead of MII - current-speed - Specifies that the MII should be configured for a fixed speed. This property should contain two cells. The first cell specifies the speed in Mbps and the second should be '0' for half duplex and '1' for full duplex - phy-handle - Contains a phandle to an Ethernet PHY. QUESTION: Could you point me in the right direction? We were hoping that the MII connection between the CPU and the switch would all be the same but it’s looking like maybe I need to edit the dts file. Any direction or hints would be appreciated! Thanks! |
[Prev in Thread] | Current Thread | [Next in Thread] |