From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbdBDRXm (ORCPT ); Sat, 4 Feb 2017 12:23:42 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:55652 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261AbdBDRXk (ORCPT ); Sat, 4 Feb 2017 12:23:40 -0500 Date: Sat, 4 Feb 2017 18:23:29 +0100 From: Andrew Lunn To: Lukasz Majewski Cc: Rob Herring , Mark Rutland , "David S. Miller" , Florian Fainelli , jbrunet , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Martin Blumenstingl , Jon Mason , Fabio Estevam Subject: Re: [PATCH] Documentation: devicetree: Add PHY no lane swap binding Message-ID: <20170204172329.GA8364@lunn.ch> References: <1486223267-11875-1-git-send-email-lukma@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1486223267-11875-1-git-send-email-lukma@denx.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 04, 2017 at 04:47:47PM +0100, Lukasz Majewski wrote: > Add the documentation to avoid PHY lane swapping. This is a boolean > entry to notify the phy device drivers that the TX/RX lanes NO need that the TX/RX lanes should not be swapped. > to be swapped. > The use case for this binding mostly happens after wrong HW > configuration of PHY IC during bootstrap. > > Signed-off-by: Lukasz Majewski > --- > Documentation/devicetree/bindings/net/phy.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/phy.txt b/Documentation/devicetree/bindings/net/phy.txt > index fb5056b..5e25bc9 100644 > --- a/Documentation/devicetree/bindings/net/phy.txt > +++ b/Documentation/devicetree/bindings/net/phy.txt > @@ -39,6 +39,10 @@ Optional Properties: > - enet-phy-lane-swap: If set, indicates the PHY will swap the TX/RX lanes to > compensate for the board being designed with the lanes swapped. > > +- enet-phy-lane-no-swap: If set, indicates that PHY will disable swap of the > + TX/RX lanes. This binding allows the PHY to work correcly after e.g. wrong > + bootstrap configuration caused by issues in PCB layout design. > + We are leaving it undefined what it means if neither enet-phy-lane-no-swap nor enet-phy-lane-swap properties are present. Do we want to define this? That the swap should be left untouched by the driver? Andrew