Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

KZS9131 Link up, no connection

$
0
0

Hello everyone,

we are using the RZ/G2L for our product, however there is a problem with the Ethernet connection. As a phy we are using the Microchip KSZ9131.

We have setup our device tree according to this documentation:
https://renesas.info/wiki/RZ-G/RZG_DeviceTree#Ethernet

&eth1 {
    pinctrl-names = "default";
    pinctrl-0 = <&eth1_rgmii_pins>;
    phy-handle = <&phy1>;
    phy-mode = "rgmii-id";

    status = "okay";

    phy1: phy@7 {
        reg = <7>;
compatible = "ethernet-phy-ieee802.3-c22";
        interrupt-parent = <&pinctrl>;
        interrupts = <RZG2L_GPIO(32, 0) IRQ_TYPE_LEVEL_LOW>;
    };

};

&pinctrl {
    eth1_rgmii_pins: eth1 {
        pinmux =    <RZG2L_PORT_PINMUX(37, 0, 1)>, // ET1_MDC
                    <RZG2L_PORT_PINMUX(37, 1, 1)>, // ET1_MDIO
                    <RZG2L_PORT_PINMUX(29, 0, 1)>, // ET1_TXC
                    <RZG2L_PORT_PINMUX(29, 1, 1)>, // ET1_TX_CTL
                    <RZG2L_PORT_PINMUX(30, 0, 1)>, // ET1_TXD0
                    <RZG2L_PORT_PINMUX(30, 1, 1)>, // ET1_TXD1
                    <RZG2L_PORT_PINMUX(31, 0, 1)>, // ET1_TXD2
                    <RZG2L_PORT_PINMUX(31, 1, 1)>, // ET1_TXD3
                    <RZG2L_PORT_PINMUX(33, 1, 1)>, // ET1_RXC
                    <RZG2L_PORT_PINMUX(34, 0, 1)>, // ET1_RX_CTL
                    <RZG2L_PORT_PINMUX(34, 1, 1)>, // ET1_RXD0
                    <RZG2L_PORT_PINMUX(35, 0, 1)>, // ET1_RXD1
                    <RZG2L_PORT_PINMUX(35, 1, 1)>, // ET1_RXD2
                    <RZG2L_PORT_PINMUX(36, 0, 1)>; // ET1_RXD3
    };
};


In dmesg the phy gets detected:
[  120.049083] Microchip KSZ9131 Gigabit PHY 11c30000.ethernet-ffffffff:07: attached PHY driver [Microchip KSZ9131 Gigabit PHY] (mii_bus:phy_addr=11c30000.ethernet-ffffffff:07, irq=196)
[  122.900711] ravb 11c30000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[  122.900835] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

and, as far as I understand,  ethtools also looks fine.

ethtool eth0
Settings for eth0:
        Supported ports: [ TP    MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        master-slave cfg: preferred slave
        master-slave status: slave
        Port: Twisted Pair
        PHYAD: 7
        Transceiver: external
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x000000cc (204)
                               link timer rx_err tx_err
        Link detected: yes

However, we do not get any connection. DHCPCD fails to get an IP address, and setting IP address and gateway manually also does not allow us to ping or access other devices in the network.

Any help would be greatly appreciated.

Best
Christian




Viewing all articles
Browse latest Browse all 1583

Trending Articles