Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6862763imb; Sat, 9 Mar 2019 08:19:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyrKWi8omZ8fVxribcN80S00urNnBMoBtg1wDQTq2ENYLHJPfspili/6Iv5b6NRmIRYXEVb X-Received: by 2002:a63:81c1:: with SMTP id t184mr21411364pgd.228.1552148396757; Sat, 09 Mar 2019 08:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552148396; cv=none; d=google.com; s=arc-20160816; b=tOIcfEEckRfKhDCay+2/qRo8pSf1z7SeZGcBYjS4U+e1K2U6TAgTiuHKf3Qo4KDSGO F8PLl4Q6inoO/gQ1xfFS/KijCnLUSA+Z8qIvLE6f02Fu+y3lpipJL+0Y7EOzBx8prPvD +f0VPwv1IumggXp0Px9XH6T09L03VMvAmACbWVPSXOdDM4cvQ/XCXWVlmOIfycrhr2P3 UaeZ0I1S9lUei/BTRzcKbmM+zyLXhsuDYGSiHNjoH/k2rmqF4DR8bYfrrpsigSb12w3I E31xnDqHKXdzu5FBdhZyshXXF6uDPpzpNnvy/M4kyL6Q5Kh0sgs0Ppnmk13SCUht5edA EUzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3LaHrgLeaPGmxpLltQIlj1BIy7Ub2V76F5fHZgYA9yQ=; b=SqVynihfx0uemjHG4dNaY6/znkJpRSdtW+N5IrnNSUW9AvjoJ7uZgX45fxUyYkKA6k lrEbrD7sGp3faV0YrFAVR3L3J3TVQ46BkotCd3FpLe2KgjDA37fMO2eQPU6H5eY0Ypdo rXwMBqq2SiqgUTmxsGK+r4G7LGWmkaQIm7mpuGcwiCOtSX1goD39GD6fSTHMAjkkD33+ Jo6Gi1IAIZNJI+qZxyAA293DzurzR8y5zfxqATlV0DIHL8+9RXIp/H6gYuW52TlXI09O vvz8rFyFa+RUWxis2qu6j/lEpP80YGeOPjBhR0kdZDfbZ4CzdGn/HoHEuBujZcGFuAOA +znQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=3e2kTX06; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h124si803456pgc.25.2019.03.09.08.19.39; Sat, 09 Mar 2019 08:19:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=3e2kTX06; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726393AbfCIQTU (ORCPT + 99 others); Sat, 9 Mar 2019 11:19:20 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:50616 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfCIQTU (ORCPT ); Sat, 9 Mar 2019 11:19:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3LaHrgLeaPGmxpLltQIlj1BIy7Ub2V76F5fHZgYA9yQ=; b=3e2kTX068ob6pitnIyEMKyB0jx XrbDAYjnhL9a+DZTAGIkc7kTZK6PABqhSkMEuNG3obXbxmmO0SF8thb3lxeXW1IRarX2MtsrO2Mlr +cC/DOxycfLmoJmg3H6CRuC2c6wVVbR08DqndYWABa94BtIb3PWy2IkqZO48ssMiuQfs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1h2egq-00018t-Dt; Sat, 09 Mar 2019 17:19:12 +0100 Date: Sat, 9 Mar 2019 17:19:12 +0100 From: Andrew Lunn To: Harini Katakam Cc: Michal Simek , Paul Kocialkowski , Florian Fainelli , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "David S . Miller" , Thomas Petazzoni , Heiner Kallweit Subject: Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read Message-ID: <20190309161912.GD9000@lunn.ch> References: <958bb823-3dc8-607f-3c38-3d902acb85a8@gmail.com> <20190219172515.GC13075@lunn.ch> <9cb2f7a8-a8cf-ef80-d260-cc67c072b5c5@xilinx.com> <8bb813fb-102b-00c9-fb6f-a3e928965051@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Related to this, I have a query on how the DT node for gmii2rgmii should look. > One of the users of gmii2rgmii is Cadence macb driver. In Xilinx tree, we use > this piece of code to register this mdiobus: > + mdio_np = of_get_child_by_name(np, "mdio"); > + if (mdio_np) { > + of_node_put(mdio_np); > + err = of_mdiobus_register(bp->mii_bus, mdio_np); > + if (err) > + goto err_out_unregister_bus; > > And the DT node looks like this: > ethernet { > phy-mode = "gmii"; > phy-handle = <&extphy>; > > mdio { > extphy { > reg = ; > }; > gmii_to_rgmii{ > compatible = "xlnx,gmii-to-rgmii-1.0"; > phy-handle = <&extphy>; > reg = ; > }; > }; > }; Hi Harini You have this setup: MAC <==> GMII2RGMII <==> RGMII_PHY So you want the MAC phy-handle to point to the gmii_to_rgmii 'PHY'. Feel free to submit a patch extending Documentation/devicetree/bindings/net/xilinx_gmii2rgmii.txt to include a MAC node, etc. Andrew