Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp554707lqe; Sat, 6 Apr 2024 12:37:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8EsBUzKFUQ9ekCGTHaAxiiUvENSrwzVTRX/LPC5mfxw0uwjLHYLlptyEXg1WtIDi9MZc61kkFPcHOM8btEtr9h6F4x2m5MAYq4+XQgw== X-Google-Smtp-Source: AGHT+IFy7Gms96++tD8MSPOFlwRnMDXTC6KnJoLWYzTFAMB2+WGk6SBOaqCcYgQpTSggo2o50zNu X-Received: by 2002:a05:6a00:2385:b0:6ec:fe38:d94 with SMTP id f5-20020a056a00238500b006ecfe380d94mr4511224pfc.33.1712432262593; Sat, 06 Apr 2024 12:37:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712432262; cv=pass; d=google.com; s=arc-20160816; b=EBFxpbt1L5BqOIILN8b6IjiJKMvR2dEIp+jUF/l26vhxz2sD5JEw7RYqIN3VH+epa/ jIiAJ/tq+zsoqhTmiGvIxyDxoGsooH9gX18TuNSOazEbt8euZgrTXr7sqJVPfcxJhrb7 WY2S4ICWnNKU/x3droQZqQjQoIBP9fOTTwc/WcVugDdqK1ovlKmSkvZNUR3kN6fbt/xG /pbOY9JKGZEWOLAPfcXmdykZSfE8wLqOCVCa3SDKz5j9l4atyQYH/o9/FLPwojczpF4o Ol99a363jx56HIiZ7AgYvpXMtIz6Q4ncQdO4xMbEUT74Thr7qKoo3/f5tEpWsmIvSX7U vzMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=FMOotppbw75EKHyjwTmpQRZSaQ2VgCtSbhNhN302GVw=; fh=lnT2Ov1xR/oTTwEgw2XMUCQlupCqSGQqhuvo3KTKLu8=; b=jczvL0OndivTQIm9CQaZT78Law7GVVob0s8FTCw5OBEraHhbbAPm5kvgLaqjHRr6aW vZiN0nHH+Y6W1xOgRCkxOhg8Xvh7spK47pKV29D960Pglz+p5k0qDdoQFEhsMZ9lP1c7 yUAo6/AMNTpMVf9Gi/1X2ymVCwmKGAZqNxbCnDydEU8Q6B/fh22p41PdcIi1bq5AGSmb RT5bElMuMW/xyw3APaslGK6xghl6pnCOGxio1IG0nuBJRoaWZSgBC90Hfy1Ss2SBorcf 03sKARqwLGzUW1GG/gvb6AeBRqpa65W/MVIFcYun5h8suOPcjKDEJtxtKNHVHmqfXWej foPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UdzQFQX5; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-134066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r24-20020a63fc58000000b005dc1c542cfcsi3094681pgk.263.2024.04.06.12.37.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 12:37:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134066-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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UdzQFQX5; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-134066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 CDCF62824E1 for ; Sat, 6 Apr 2024 19:37:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D6ED4D9F5; Sat, 6 Apr 2024 19:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="UdzQFQX5" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 A97B518C1F; Sat, 6 Apr 2024 19:37:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712432249; cv=none; b=bRGBs2doIQTLYKPY9RVZg0mOxs05DeF90po+6FZFOtrGg4xJBQbFEUoERFdCkfKlfTENzMSQoa+OPbQguq0JcNWk4L2zdl3JOETy/JvZ6Q1OWv5t9q91AOZ3F3G3QeMkhdPYUCxhQnpsH6T/PXpU0WfglGGA7z6L/XdxLIDRJs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712432249; c=relaxed/simple; bh=1yTZEU/vJ9V2y1oczGyBe2jTqiaJrhR2iH2mxRx3bDU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Himnn4sGbZSttw5iViLrFZWkTFW19DncdVDx6s8TCZZKo/0M9g8sboHmRZ/xBKPgQJxMSA9X1LTaYz+AOXaqag6WaEWYL20ztKOA6rtCA0CW8W1KSvd+ZZYBjBAK6UncB+eLNmgzsmcdHl9lV60lIwjgmXiVHxVEwP594TpW8nc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=UdzQFQX5; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 1CE9820004; Sat, 6 Apr 2024 19:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712432237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FMOotppbw75EKHyjwTmpQRZSaQ2VgCtSbhNhN302GVw=; b=UdzQFQX5ibpVLlHAcPf9Ypzu2EbOUUi7Wo62tQqki8HQ9pXyvkSrxloO6B0P1jh0fIKyyh YgC1ay1ENafKx0rOOBvioAMHmgDM/7RQlOBuTwY4nIibUPXaWyeaQK3+6d+NZ9sgewUjQR 5gCEhPYMpcw1sUQWYTCd3HcSanhx8Qpv5gkjdoQKWxUJ8BK+R8wWalZULmHyDxLNPg1VMk OF7YbjEMI/vauLqAw/XEuXi7FbROB/zKBaZb/VpV3RWPAnjfQGmC3EGiBxs/JlKSuA3Pvo vl+XO+ph8EFKa82E5XWW6K7v+CsNeXSkBzz6nzeEq4DA1CG0r7D3zmQiJSK1iw== Date: Sat, 6 Apr 2024 21:37:14 +0200 From: Kory Maincent To: Rob Herring Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , 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 , Maxime Chevallier Subject: Re: [PATCH net-next v6 11/17] dt-bindings: net: pse-pd: Add another way of describing several PSE PIs Message-ID: <20240406213714.0ae64623@kmaincent-XPS-13-7390> In-Reply-To: <20240404103854.29ef418c@kmaincent-XPS-13-7390> References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> <20240326-feature_poe-v6-11-c1011b6ea1cb@bootlin.com> <20240402132637.GA3744978-robh@kernel.org> <20240403111548.30e780b5@kmaincent-XPS-13-7390> <20240403143142.GA3508225-robh@kernel.org> <20240404103854.29ef418c@kmaincent-XPS-13-7390> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Thu, 4 Apr 2024 10:38:54 +0200 Kory Maincent wrote: > On Wed, 3 Apr 2024 09:31:42 -0500 > Rob Herring wrote: >=20 > > On Wed, Apr 03, 2024 at 11:15:48AM +0200, Kory Maincent wrote: =20 > > > On Tue, 2 Apr 2024 08:26:37 -0500 > > > Rob Herring wrote: > > > =20 > > > > > + pairset-names: > > > > > + $ref: /schemas/types.yaml#/definitions/string-array > > > > > + description: > > > > > + Names of the pairsets as per IEEE 802.3-2022, Sect= ion > > > > > 145.2.4. > > > > > + Valid values are "alternative-a" and "alternative-= b". > > > > > Each name =20 > > > >=20 > > > > Don't state constraints in prose which are defined as schema=20 > > > > constraints. =20 > > >=20 > > > Ok, I will remove the line. > > > =20 > > > > > + pairsets: > > > > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > > > > + description: > > > > > + List of phandles, each pointing to the power suppl= y for > > > > > the > > > > > + corresponding pairset named in 'pairset-names'. Th= is > > > > > property > > > > > + aligns with IEEE 802.3-2022, Section 33.2.3 and > > > > > 145.2.4. > > > > > + PSE Pinout Alternatives (as per IEEE 802.3-2022 Ta= ble > > > > > 145\u20133) > > > > > + > > > > > |-----------|---------------|---------------|---------------|----= -----------| > > > > > + | Conductor | Alternative A | Alternative A | > > > > > Alternative B | Alternative B | > > > > > + | | (MDI-X) | (MDI) | = (X) > > > > > | (S) | > > > > > + > > > > > |-----------|---------------|---------------|---------------|----= -----------| > > > > > + | 1 | Negative VPSE | Positive VPSE | \u20= 14 > > > > > | \u2014 | > > > > > + | 2 | Negative VPSE | Positive VPSE | \u20= 14 > > > > > | \u2014 | > > > > > + | 3 | Positive VPSE | Negative VPSE | \u20= 14 > > > > > | \u2014 | > > > > > + | 4 | \u2014 | \u2014 = | > > > > > Negative VPSE | Positive VPSE | > > > > > + | 5 | \u2014 | \u2014 = | > > > > > Negative VPSE | Positive VPSE | > > > > > + | 6 | Positive VPSE | Negative VPSE | \u20= 14 > > > > > | \u2014 | > > > > > + | 7 | \u2014 | \u2014 = | > > > > > Positive VPSE | Negative VPSE | > > > > > + | 8 | \u2014 | \u2014 = | > > > > > Positive VPSE | Negative VPSE | > > > > > + minItems: 1 > > > > > + maxItems: 2 =20 > > > >=20 > > > > "pairsets" does not follow the normal design pattern of foos, > > > > foo-names, and #foo-cells. You could add #foo-cells I suppose, but = what > > > > would cells convey? I don't think it's a good fit for what you need. > > > >=20 > > > > The other oddity is the number of entries and the names are fixed. = That=20 > > > > is usually defined per consumer. =20 > > >=20 > > > Theoretically if the RJ45 port binding was supported it would make mo= re > > > sense, but in reality it's not feasible as the PSE controller need th= is > > > information in its init process. > > > The PSE controller reset all its port to apply a configuration so we = can't > > > do it when the consumer (RJ45) probe. It would reset the other ports = if > > > one consumer is probed later in the process. =20 > >=20 > > There is no reason other than convenience that all information some=20 > > driver needs has to be in one node or one hierarchy of nodes. You can=20 > > fetch anything from anywhere in the DT. It does feel like some of this= =20 > > belongs in a connector node. We often haven't described connectors in D= T=20 > > and stick connector properties in the controller node associated with=20 > > the connector. Then as things get more complicated, it becomes a mess. = =20 >=20 > Right, we could indeed put all the informations of the pse_pi node in the > future RJ45 port abstraction node. Then, this series will be put aside un= til > we manage to have the port abstraction get merged. > I am not glad about this as it will stuck my work until then, but indeed > removing this pse_pi wrapper node which is between the pse_controller nod= e and > the connector node seems cleaner. After some new thought, I thinks it is quite similar on the devicetree side= to have it in a pse_pi node or in the connector node. Here are my agruments to continue using this pse_pi binding description: - The connector abstraction is in its early work and won't really see a v1 = soon while the PoE series got mainly all reviewed-by thanks to Andrew. This would stuck the PoE series until maybe one or two Linux version. - It allows to use the "Power Interface" name like described in the standar= ds. - Even if this is in the PSE controller node, it is generic to all PSEs so = it shouldn't become a mess. - It allows to have the PSE controller and Power Interfaces parameters grou= ped together and it will be easier to read. May not really be an argument! ;) - It will keep the logic of PoDL with the PHY using a single reference to t= he PSE PI through the pses parameter.=20 Is it okay for you to continue with it? Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com