custom RZG2UL board: Ethernet PHY in u-boot

Hello Renesas team,

We are using g2ul based custom board. We are using ETH-PHY DP83867.

Eth-PHY is running properly in linux, But getting problem in u-boot.

We need mii tools in u-boot, for that we have done below changes.

device tree node for eth-phy

&eth0 {
        pinctrl-0 = <&eth0_pins>;
        pinctrl-names = "default";
        phy-handle = <&phy0>;
        phy-mode = "rgmii-id";
        status = "okay";

        phy0: ethernet-phy@0 {
                reg = <0>;
                ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
                ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
                ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
                ti,min-output-impedance;
        };
};


eth0_pins: eth0 {
                pinmux = <RZG2L_PINMUX(4, 3, 1)>, /* ET0_MDC */
                         <RZG2L_PINMUX(4, 4, 1)>, /* ET0_MDIO */
                         <RZG2L_PINMUX(1, 0, 1)>, /* ET0_TXC */
                         <RZG2L_PINMUX(1, 1, 1)>, /* ET0_TX_CTL */
                         <RZG2L_PINMUX(1, 2, 1)>, /* ET0_TXD0 */
                         <RZG2L_PINMUX(1, 3, 1)>, /* ET0_TXD1 */
                         <RZG2L_PINMUX(1, 4, 1)>, /* ET0_TXD2 */
                         <RZG2L_PINMUX(2, 0, 1)>, /* ET0_TXD3 */
                         <RZG2L_PINMUX(3, 0, 1)>, /* ET0_RXC */
                         <RZG2L_PINMUX(3, 1, 1)>, /* ET0_RX_CTL */
                         <RZG2L_PINMUX(3, 2, 1)>, /* ET0_RXD0 */
                         <RZG2L_PINMUX(3, 3, 1)>, /* ET0_RXD1 */
                         <RZG2L_PINMUX(4, 0, 1)>, /* ET0_RXD2 */
                         <RZG2L_PINMUX(4, 1, 1)>; /* ET0_RXD3 */
        };



Enabled below u-boot configs.

+CONFIG_CMD_NET=y
+CONFIG_CMD_DHCP=y
+CONFIG_PHY_TI=y
+CONFIG_PHY_TI_DP83867=y
+CONFIG_MII=y


After these changes, mii utility commands are supported, but we we use command mii device , u-boot getting crashed.




=> mii device
MII devices: 'ethernet@11c20000' '' '60000' "Synchronous Abort" handler, esr 0x96000004
elr: 00000000500714c4 lr : 0000000050072458 (reloc)
elr: 000000007ffa14c4 lr : 000000007ffa2458
x0 : 0000007300000010 x1 : 000000730000000f
x2 : 0000007300000010 x3 : 00000000ffffffff
x4 : 00000000ffffffff x5 : 0000000000000000
x6 : 00000000ffffffd0 x7 : 000000007ffdf000
x8 : 000000007bf591e0 x9 : 0000000000000004
x10: 000000007bf438b0 x11: 000000007bf56030
x12: 0000000000000000 x13: 0000000000000200
x14: 000000007bf2a038 x15: 0000000000000002
x16: 0000000000000000 x17: 0000000000000000
x18: 000000007bf2fda0 x19: 0000007300000010
x20: 00000000ffffffff x21: 000000007bf29459
x22: 000000007bf29c6c x23: 0000000000000000
x24: 00000000ffffffff x25: 00000000ffffffff
x26: 0000000000000000 x27: 000000007ffb9d74
x28: 000000007bf29459 x29: 000000007bf292b0
 
Code: 8b010001 aa0003e2 eb01005f 54000060 (39400043) 
Resetting CPU ...



Please guide us on the same.


Thanks and Regards,
Ishan

Parents Reply Children
No Data