]> git.baikalelectronics.ru Git - uboot.git/commit
net: zynq: Add support for mdio bus address decoding
authorMichal Simek <michal.simek@xilinx.com>
Mon, 6 Dec 2021 13:53:17 +0000 (14:53 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 5 Jan 2022 10:16:21 +0000 (11:16 +0100)
commit95ff6124fc7b3604a7980691319dc82be99d0e58
tree142f12feab5e24e579c8290cad6e5cb831190a46
parent4b809ce02864818d006e19ee248f3ee8d943365a
net: zynq: Add support for mdio bus address decoding

Xilinx DTS files are using two way how to describe ethernet phy.

The first (already supported) has phy as subnode of gem node.
eth {
        phy-handle = <&phy0>;
         phy0: ethernet-phy@21 {
                ...
        };
};

The second has mdio subnode (with mdio name) which has phy subnode. This
structure allow hadling MDIO reset signal (based on Linux mdio.yaml)
eth {
        phy-handle = <&phy0>;
        mdio {
                phy0: ethernet-phy@21 {
                        ...
                };
        };
};

This patch adds support for the second case where mdio subnode
is found driver will look at its parent to find out which gem is handling
MDIO bus.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/6748007f0b6db9554d7a4b52352dce23ca403f9d.1638798796.git.michal.simek@xilinx.com
drivers/net/zynq_gem.c