From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0592080BFF for ; Tue, 7 Jan 2025 14:54:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736261644; cv=none; b=LGRhrEa258pu2BYPo/sHX6KoCJieSbE/6BKN3tUyyo4djktFUv63fTGBeVGNUow75yJVf34x9Kc9WY49MmSbD0KahR6jMN2e06/DRqGYI/gWwH3nqd1Y5QVDX7WYUth+JrueREFhY+ZepHksWG0ARadyI8/ib8/3ITHNOI5pFB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736261644; c=relaxed/simple; bh=3bT1g3Gl+MHBM9Bc82K+UajTg+E4cnQ71b5tP/tg9cE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S6PU7O/JH5ZqGOGBbPi5K/HCo8CR+fIBpYkeJYtfVsiTSdvze/yJi7RQJOyYxnhZvcpaDZGOulGtnu7JV+/DMmtwM8umq+7Udx9aL5kBbOrtiX7nxDYLO5fr2uXh63BtaB+8JKdLmXGgOQrVLqnktZg/PDYFw0t2eVP/mF8MWD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tVAxy-00032F-BC; Tue, 07 Jan 2025 15:53:58 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVAxx-007MWH-0E; Tue, 07 Jan 2025 15:53:57 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tVAxx-009auF-2K; Tue, 07 Jan 2025 15:53:57 +0100 Date: Tue, 7 Jan 2025 15:53:57 +0100 From: Oleksij Rempel To: Kory Maincent Cc: "Russell King (Oracle)" , Maxime Chevallier , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , Marek =?utf-8?B?QmVow7pu?= , =?utf-8?Q?Nicol=C3=B2?= Veronese , Simon Horman , mwojtas@chromium.org, Antoine Tenart Subject: Re: [PATCH net-next RFC 0/5] net: phy: Introduce a port representation Message-ID: References: <20241220201506.2791940-1-maxime.chevallier@bootlin.com> <20250107142605.6c605eaf@kmaincent-XPS-13-7390> <20250107154302.628e7982@kmaincent-XPS-13-7390> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250107154302.628e7982@kmaincent-XPS-13-7390> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org On Tue, Jan 07, 2025 at 03:43:02PM +0100, Kory Maincent wrote: > On Tue, 7 Jan 2025 15:02:46 +0100 > Oleksij Rempel wrote: > > > On Tue, Jan 07, 2025 at 02:26:05PM +0100, Kory Maincent wrote: > > > On Thu, 2 Jan 2025 18:03:52 +0100 > > > Oleksij Rempel wrote: > > > > > > > On Thu, Jan 02, 2025 at 10:48:05AM +0000, Russell King (Oracle) wrote: > > [...] > > [...] > > > > > > Couldn't we begin with something simple like the following and add all the > > > transformers and pairs information as you described later if the community > > > feels we need it? > > > > > > mdis { > > > > > > /* 1000BaseT Port with Ethernet and PoE */ > > > mdi0: ethernet-mdi@0 { > > > reg = <0>; /* Port index */ > > > label = "ETH0"; /* Physical label on the device */ > > > connector = "RJ45"; /* Connector type */ > > > supported-modes = <10BaseT 100BaseTX 1000BaseT>; /* Supported modes > > > */ lanes = <2>; > > > variant = "MDI-X"; /* MDI or MDI-X */ > > > pse = <&pse1>; > > > }; > > > }; > > This was only the pair swap. How to reflect the polarity swap withing > > the pairs? > > Indeed I see what you mean. Maybe we could add it later as optional binding and > only focus for now on the current needs. > According to Maxime proposition he wants the connector types and the > supported modes (or number of lanes). On my side I am interested in the PSE > phandle. > > We could begin with this: > mdis { > /* 1000BaseT Port with Ethernet and PoE */ > mdi0: ethernet-mdi@0 { > reg = <0>; /* Port index */ > label = "ETH0"; /* Physical label on the device */ > connector = "RJ45"; /* Connector type */ > supported-modes = <10BaseT 100BaseTX 1000BaseT>; /* Supported modes */ > pse = <&pse1>; > }; > }; > > Your proposition will stay in our mind for future development on the subject. Perfect :) > I think we currently don't have enough time available to develop the full > package. Yes, no one do. > What do you think? Sounds good! -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |