Using KSZ9131 on RZG2H Board and kernel 5.10.138 LTS-SDK3.0.3

Hi Forum,

We have a customized  rzg2h Board (taken a reference of rzg2h-hihope board, In the new custom board we replaced realtek with  ksz9131RNX.

We used the same pin connection in the hardware and in the kernel config we disabled the realtek and enabled ksz9131 but the phy is non functional.

And we not able to probe and detect the phy.

Could any one here  help/point  us  to the steps required to get this phy up .

Thanks and regards,

Nagaraja

Parents
  • Hi Nagaraja,

    You should show the change points of your devicetree, and the kernel boot log.
    Maybe there are some clues there.

  • Hi Hung T,

    Thanks for the reply,

    Here is the the kernel log and my dts entries,

    root@hihope-rzg2h:~# dmesg | grep eth0*
    [ 0.000000] psci: probing for conduit method from DT.
    [ 2.281423] optee: probing for conduit method.
    [ 2.512407] ravb e6800000.ethernet: no valid MAC address supplied, using a random one
    [ 2.520670] mdio_bus e6800000.ethernet-ffffffff: MDIO device at address 0 is missing.
    [ 2.529054] ravb e6800000.ethernet eth0: Base address at 0xe6800000, de:3d:d1:a1:6e:b0, IRQ 177.
    [ 7.395309] ravb e6800000.ethernet eth0: failed to connect PHY
    [ 7.566335] ravb e6800000.ethernet eth0: failed to connect PHY
    root@hihope-rzg2h:~# ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:312 errors:0 dropped:0 overruns:0 frame:0
    TX packets:312 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:20232 (19.7 KiB) TX bytes:20232 (19.7 KiB)

    root@hihope-rzg2h:~#

    And my dts entries in r8a774e1-hihope-rzg2h-ex.dts file is: as below

    &avb {
    status = "okay";
    pinctrl-names = "default";
    phy-handle = <&phy1>;
    phy-mode = "rgmii-id";
    phy1: phy@7 {
    reg = <7>;
    compatible = "micrel,ksz9131";
    device_type = "ethernet-phy";
    };
    };

    Thanks and regards,

    Nagaraja

  • [ 2.520670] mdio_bus e6800000.ethernet-ffffffff: MDIO device at address 0 is missing.

    phy1: phy@7 {
    reg = <7>;

    Do you really have the pins the PHY set to address 7?

  • Hi,

    Thanks for the reply , now My dts entries is as below:

    &avb {
            status = "okay";
            pinctrl-names = "default";
            phy-handle = <&phy1>;
            phy-mode = "rgmii-id";
            phy1: phy@3 {
                    reg = <0x3>;
            compatible = "ethernet-phy-ieee802.3-c22";
            };
    };

    Self ping is happening and able to ping peer-to-peer But when i try to connect to ping  the network, it is not working,

    Please guide us what am i missing here. and how do go about it.Please see the attached screenshot.

    Thanks and regards,

    Nagaraja

Reply
  • Hi,

    Thanks for the reply , now My dts entries is as below:

    &avb {
            status = "okay";
            pinctrl-names = "default";
            phy-handle = <&phy1>;
            phy-mode = "rgmii-id";
            phy1: phy@3 {
                    reg = <0x3>;
            compatible = "ethernet-phy-ieee802.3-c22";
            };
    };

    Self ping is happening and able to ping peer-to-peer But when i try to connect to ping  the network, it is not working,

    Please guide us what am i missing here. and how do go about it.Please see the attached screenshot.

    Thanks and regards,

    Nagaraja

Children