Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1656931rdb; Tue, 20 Feb 2024 03:06:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5pA42q6g9/aFlaWwLNui/EzPZrIvlNyL4AJyhQ6pDujLaTjO/MxmrFloq/KSwXQDD9zEUSuzzoC4/YVSl6S9gCQbyzrv3Oo5yy57WqQ== X-Google-Smtp-Source: AGHT+IFQ0vHbkgzRfa3+WMQQ91mQKiO6WvUgDiUiD0XKetv3GtuQ1ClIHHr8eEZEaGiYNLDExw7F X-Received: by 2002:a05:6a21:300a:b0:19e:ca0f:6575 with SMTP id yd10-20020a056a21300a00b0019eca0f6575mr10793845pzb.15.1708427188222; Tue, 20 Feb 2024 03:06:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708427188; cv=pass; d=google.com; s=arc-20160816; b=YBnPYPPksbAPBuvBnbI2FN1ZMzsdWVLhVSOh/D5SfIQV+4uqCxq+aqL+SoBd8JgT7c 33OqTnlVdDy9i1YmxUbUuCOd+R2S3gKltZrpWfURwZVbNIwQpcG/mzkl2fs0qwPaOEci UfWQcv6i3ZMWkVpvwRSPLt7huTYbKCnVPEAaqDYJtGll0557mhbLrdqI3VTaKQcNILOx 81ss9ZwU1S28y7sV4y4Y21nT5bQi6hHh09v9kYcXph4itLyHO/JUGbGu4T3BLmvtG0OW fd4CxhC+KgPjVbHpR8CCOU+z/g5DOWwvhLAMx571l0+Wh4SIlEEOSwuAs1mrysluDUNN WfuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=TY0jvr3QN6/Nd/nWfkAQT0Ry5Qi4m81YBL7dneUJ9VQ=; fh=Av7BMLrvbLLo84sv4GYUON0/fG92ui64ND4enueb6sQ=; b=dGCAbhjUcjfurcFFTR7Avna+yVidR2IUJvJ4GFT5ini260JnYPug5HudEeOuHEHF9A Tu3YJGfo/HIF1PbYIcwGbkBykAGQpLZbPQONMV2kqPZSXYmGDY/MbaknPQoCuc7W9jTA VWdH3Ik1jmUDHsbISBDHHQbdkEQH6+GL1cLbcot0pDdsV5bsC5pU5/vFt8jDWiGnb4ir VmTUK6Bu1V0MgwNKEhBh+mxy0xKpEr0a22FA608rHJXBQwVChgwRL20l/7fXwA3mbVyY Gy4Hhgi/fgROVHZdRTOJpS+N7mJi7Qm21N10tNbjTwdK/+eZcBz+BRakjYRO1qKMzW6r wXYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72871-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d12-20020a170903230c00b001d893990719si6197577plh.359.2024.02.20.03.06.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:06:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72871-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72871-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 209272872EB for ; Tue, 20 Feb 2024 11:05:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC18E65E04; Tue, 20 Feb 2024 11:05:46 +0000 (UTC) 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 03F97604A9 for ; Tue, 20 Feb 2024 11:05:44 +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=1708427146; cv=none; b=Ek4Xnsm2YbDK0yVbaPxkUo92ou4m0reEtVvBPThaWKj4YMCdbqrvZcHpoIKmkXXYTA7LaBUlsCVzO6JOQuOhrN89vbWGFc0rD6zGYXY/EorqGwFyasPVK9R2w2Fb1j0X7tCyzOUHAoDbiL5XyxttyHHNED5RfuFUgsclyjYesBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708427146; c=relaxed/simple; bh=Q9mYabNBUcqA8oe9D6+SQAxo2DGjJ2Cx4INUNvT3BdE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AqA3Bfam5sGZFsWQLBcJqEkZE8v6+89k0fp5lY/GpnQb0AaPbAOyyMWOBDXQcTjbdE1gE8VXOjXk5GpvC7CrqGI7JOPyheJ856jJ5YPTaI/3iiSxgutF2Jk6iSrPDfYGMN30UCRBuNYO2ff2R7Ilsc1NEdg8Jig1CvrvuEr13mQ= 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 1rcNw7-0004Em-QM; Tue, 20 Feb 2024 12:05:19 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcNw5-001pNw-AE; Tue, 20 Feb 2024 12:05:17 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rcNw5-00HOOn-0e; Tue, 20 Feb 2024 12:05:17 +0100 Date: Tue, 20 Feb 2024 12:05:17 +0100 From: Oleksij Rempel To: =?utf-8?B?S8O2cnk=?= Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v4 14/17] dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller Message-ID: References: <20240215-feature_poe-v4-0-35bb4c23266c@bootlin.com> <20240215-feature_poe-v4-14-35bb4c23266c@bootlin.com> <20240220114029.6b1a445d@kmaincent-XPS-13-7390> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240220114029.6b1a445d@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: linux-kernel@vger.kernel.org On Tue, Feb 20, 2024 at 11:40:29AM +0100, Köry Maincent wrote: > On Sat, 17 Feb 2024 13:14:29 +0100 > Oleksij Rempel wrote: > > > On Thu, Feb 15, 2024 at 05:02:55PM +0100, Kory Maincent wrote: > > > Add the PD692x0 I2C Power Sourcing Equipment controller device tree > > > bindings documentation. > > > > > > This patch is sponsored by Dent Project . > > > > > > Signed-off-by: Kory Maincent > > > --- > > ... > > > + pse_pis { > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + > > > + pse_pi0: pse_pi@0 { > > > + reg = <0>; > > > + #pse-cells = <0>; > > > + pairset-names = "alternative-a", "alternative-b"; > > > + pairsets = <&phys0>, <&phys1>; > > > + }; > > > + pse_pi1: pse_pi@1 { > > > + reg = <1>; > > > + #pse-cells = <0>; > > > + pairset-names = "alternative-a"; > > > + pairsets = <&phys2>; > > > > According to latest discussions, PSE PI nodes will need some > > additional, board specific, information: > > - this controller do not implements polarity switching, we need to know > > what polarity is implemented on this board. The 802.3 spec provide not > > really consistent names for polarity configurations: > > - Alternative A MDI-X > > - Alternative A MDI > > - Alternative B X > > - Alternative B S > > The board may implement one of polarity configurations per alternative > > or have additional helpers to switch them without using PSE > > controller. > > Even if specification explicitly say: > > "The PD shall be implemented to be insensitive to the polarity of the power > > supply and shall be able to operate per the PD Mode A column and the PD > > Mode B column in Table 33–13" > > it is possible to find reports like this: > > https://community.ui.com/questions/M5-cant-take-reversed-power-polarity-/d834d9a8-579d-4f08-80b1-623806cc5070 > > > > Probably this kind of property is a good fit: > > polarity-supported = "MDI-X", "MDI", "X", "S"; > > This property should be on the PD side. Probably. Right now we are on PSE side. > Isn't it better to name it "polarity-provided" for each PSE PIs binding? What > do you think? Yes, this suggestion was directed for PSE PI nodes. In the PHY world, we use "supported" capabilities for what HW can actually do and "advertised" for how the HW is configured. If we use word "provided", i would interpret it as subset of "supported", which at the end is a user space policy. Since I'm not native englisch speaker, my feeling can be wrong. So, any one with stronger opinion may have here other preferences. > We agreed that it is mainly for ethtool to show the polarity of a PI, right? We have two kind of information here: - polarity supported by HW. PSE PI may support more then one. - actually configured polarity. Regards, Oleksij -- 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 |