From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Tue, 23 Jun 2020 09:51:58 +0200 (CEST) Subject: [PATCH v3 2/4] net: fec: Allow the PHY node to be retrieved In-Reply-To: <20200618232120.3289-2-festevam@gmail.com> Message-ID: <20200623075158.A2FCC81EC0@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > As we move towards driver model, it is required to let the FEC driver > know how to properly deal with an Ethernet PHY subnode in the device tree. > For example: > &fec { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; > phy-handle = <&phy>; > phy-mode = "rgmii-id"; > phy-reset-duration = <2>; > phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; > status = "okay"; > mdio { > #address-cells = <1>; > #size-cells = <0>; > phy: ethernet-phy at 0 { > reg = <0>; > qca,clk-out-frequency = <125000000>; > }; > }; > }; > Currently the PHY node pointer is incorrectly associated with the > Ethernel controller instead of the PHY node itself. > This causes the PHY properties, such as "qca,clk-out-frequency" in > the example above to not get parsed. > Fix this problem by populating the phy_of_node node. > Suggested-by: Vladimir Oltean > Signed-off-by: Fabio Estevam > Tested-by: Tom Rini Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================