This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83869HM: Mirror mode operation

Part Number: DP83869HM
Other Parts Discussed in Thread: DP83869,

We are using DP83869 to do the media conversion from MDI to Fiber SFP for 100/1000 Mbps operation.So In our application I need to connect my Eth switch 10/100/1000 Base T eth port  to MDI of the DP83869.

We are doing transformer less operation and using 0.1uF cap in between to block DC.

In PCB layout we found that Port A to D of DP83869 is coming in front of  D to A port of Eth Switch, shown below

7 Port Switch MDI Port 

DP83869 Port 

I would like to know,

1) If we enable Mirror mode enable, please check if we can do it ?
2) After doing this Auto MDIX supports or not ? Please confirm.  Please also see the below excerpts from the datasheet.
3) Please also confirm it does not affect the 100Mbps / 1000Mbps operation in Auto MDIX also

  • Hi Mahesh,

    You can use mirror mode in both 100Mbps and 1000Mbps in what you've described. Auto-MDIX will be supported in mirror mode for both speeds. 

    Regards,
    Justin 

  • Hello Justin,

    Thank you for the confirmation. We have additional below query,

    1.       Does this “Mirroring as explained does need to take care anything in SW as such”

    2.       The Linux driver for DP83869HM seems to be available from kernel version 5.5 and onward. We need to use/port the driver in Linux kernel version 4.14.184 and needs support for that.

    -

    Mahesh

  • Hi Mahesh,

    There are no additional software implementations needed when Mirror Mode is enabled. 

    I will follow up with the TI Linux support team to estimate how long it will take to support back-porting the DP83869 driver from version 5.5 to 4.14 and provide an update by the end of the week.

    Regards,
    Justin 

  • Hi Justin,

    Just like to know if you got any update on backporting of driver DP83869HM to kernel version 4.14.

    Regards,

    Nagesh

  • Hi Nagesh,

    We can provide a backported driver that is compile tested in about 7-10 day cycle time. I expect to be able to provide that by early next week.

    Regards,

    Justin 

  • Hi Justin,

    That sounds good. Thanks.

    With Regards,

    Nagesh

  • Hi Nagesh,

    I've attached the compile tested DP83869 driver backported for kernel v4.14. Please note we only compile test the backported drivers and do not perform functional tests before sharing them.

    Regards,
    Justin 

    drivers_net_phy_dp83869.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    // SPDX-License-Identifier: GPL-2.0
    /* Driver for the Texas Instruments DP83869 PHY
    * Copyright (C) 2019 Texas Instruments Inc.
    */
    #include <linux/ethtool.h>
    #include <linux/kernel.h>
    #include <linux/mii.h>
    #include <linux/module.h>
    #include <linux/of.h>
    #include <linux/phy.h>
    #include <linux/delay.h>
    #include <dt-bindings/net/ti-dp83869.h>
    #define DP83869_PHY_ID 0x2000a0f1
    #define DP83869_DEVADDR 0x1f
    #define MII_DP83869_PHYCTRL 0x10
    #define MII_DP83869_MICR 0x12
    #define MII_DP83869_ISR 0x13
    #define DP83869_CTRL 0x1f
    #define DP83869_CFG4 0x1e
    /* Extended Registers */
    #define DP83869_GEN_CFG3 0x0031
    #define DP83869_RGMIICTL 0x0032
    #define DP83869_STRAP_STS1 0x006e
    #define DP83869_RGMIIDCTL 0x0086
    #define DP83869_IO_MUX_CFG 0x0170
    #define DP83869_OP_MODE 0x01df
    #define DP83869_FX_CTRL 0x0c00
    #define DP83869_SW_RESET BIT(15)
    #define DP83869_SW_RESTART BIT(14)
    /* MICR Interrupt bits */
    #define MII_DP83869_MICR_AN_ERR_INT_EN BIT(15)
    #define MII_DP83869_MICR_SPEED_CHNG_INT_EN BIT(14)
    #define MII_DP83869_MICR_DUP_MODE_CHNG_INT_EN BIT(13)
    #define MII_DP83869_MICR_PAGE_RXD_INT_EN BIT(12)
    #define MII_DP83869_MICR_AUTONEG_COMP_INT_EN BIT(11)
    #define MII_DP83869_MICR_LINK_STS_CHNG_INT_EN BIT(10)
    #define MII_DP83869_MICR_FALSE_CARRIER_INT_EN BIT(8)
    #define MII_DP83869_MICR_SLEEP_MODE_CHNG_INT_EN BIT(4)
    #define MII_DP83869_MICR_WOL_INT_EN BIT(3)
    #define MII_DP83869_MICR_XGMII_ERR_INT_EN BIT(2)
    #define MII_DP83869_MICR_POL_CHNG_INT_EN BIT(1)
    #define MII_DP83869_MICR_JABBER_INT_EN BIT(0)
    #define MII_DP83869_BMCR_DEFAULT (BMCR_ANENABLE | \
    BMCR_FULLDPLX | \
    BMCR_SPEED1000)
    /* This is the same bit mask as the BMCR so re-use the BMCR default */
    #define DP83869_FX_CTRL_DEFAULT MII_DP83869_BMCR_DEFAULT
    /* CFG1 bits */
    #define DP83869_CFG1_DEFAULT (ADVERTISE_1000HALF | \
    ADVERTISE_1000FULL | \
    CTL1000_AS_MASTER)
    /* RGMIICTL bits */
    #define DP83869_RGMII_TX_CLK_DELAY_EN BIT(1)
    #define DP83869_RGMII_RX_CLK_DELAY_EN BIT(0)
    /* STRAP_STS1 bits */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Thanks Justin for support. The file is compiling fine.