• Kejian Yan's avatar
    net: hisilicon: add support of acpi for hns-mdio · 8a99ff5a
    Kejian Yan authored
    hns-mdio needs to register itself to mii-bus. The info of the device can
    be read by both DT and ACPI.
    HNS tries to call Linux PHY driver to help access PHY-devices, the HNS
    hardware topology is as below. The MDIO controller may control several
    PHY-devices, and each PHY-device connects to a MAC device. The MDIO will
    be registered to mdiobus, then PHY-devices will register when each mac
    find PHY device.
                           cpu
                            |
                            |
         -------------------------------------------
        |                   |                       |
        |                   |                       |
        |                  dsaf                     |
       MDIO                 |                      MDIO
        |      ---------------------------          |
        |     |         |         |       |         |
        |     |         |         |       |         |
        |    MAC       MAC       MAC     MAC        |
        |     |         |         |       |         |
         ---- |-------- |-------- |       | --------
             ||        ||        ||       ||
             PHY       PHY       PHY     PHY
    
    And the driver can handle reset sequence by _RST method in DSDT in ACPI
    case.
    Signed-off-by: default avatarKejian Yan <yankejian@huawei.com>
    Signed-off-by: default avatarYisen Zhuang <Yisen.Zhuang@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8a99ff5a
hns_mdio.c 13.1 KB