Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp561501rdh; Wed, 14 Feb 2024 05:21:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUcJs+GzPrjKUCI45/MsTLTJsOpFdDT7eJYtP6yuMSL0g3KAz8sLZNBPlWgUrn9+BOaFCFhBoJDtD7kKTSeo9BnzZJVLPqUJ044Ki7bIQ== X-Google-Smtp-Source: AGHT+IETusBE2R2OvxIsTUoJ91sZzN3ejhWkMK6rC8Py5RzLSkqDhuNOTU+lHSDwCPOq/d79COl6 X-Received: by 2002:a17:906:c13:b0:a36:c466:52ea with SMTP id s19-20020a1709060c1300b00a36c46652eamr1711171ejf.75.1707916878809; Wed, 14 Feb 2024 05:21:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707916878; cv=pass; d=google.com; s=arc-20160816; b=KM3EYUZMmmvx5BXy9X8BLZb7d8oMYUTWwgzMq1UKcAgMTOtfGgGNLaKlc7jcivDxAW d6Xeddw+b2toiQuVvYHlY/2HewXKb3B8S0W7OgJ/28QtDM6FMuZTDkIzifugQRE6m7wy vHf2Cuy+D9Bo04BY5Fbwr2QKQPZX7m3B9tAwYmlz6XdJgdRgWeLpWSL4LZ+badgPnsMG NrI/OKcZXj6lc6GJVBkDtNADDGhWDfiEoevXKpCye4tC5g+HybyLgDElbCHALq7FhFP/ bOjrxW+AjwVfv2iWmvwWOOHA1IhSOVEHnVGGDSw7dWjKJMRzUoPpUZWVI9Fat7ZloMjd ICMw== 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=yoAjEMlVwFZdXBa82MjfrxBFsO3UeSV1bx1OSrRYZw8=; fh=217XMTm++IyaRAIwo32a2YFn0vr2ar7RwKZC/Im3ldE=; b=vzLhlnabdfd6jZ5b22IYVi17ednMUnn5vopKW5BRdnQF7fvbmZnCLeK27IhrLzt9ak fU626KUExQcIyO/vAYAxNvUUlaQdFg3w0NNVf+aOT1Kh9JjBHZDStM32MI0BMBF3+e4F umhEw+6Zs6yyxnYM1EYRRzW6jd/gfbN9jsqMuMDZ7PcoFuKrT+YUkCUFoi3SNuZb7bL0 GFyPYpydDX+NCnbGY1nbY8zyM30v/i0xrEqCtXU253iEmmwjZtFDMOLFzrO/cigyrEQG RcM1gkJz0xXjxlre+Caz8qcMkP4B+dsv45qloBNZOXZKhRH/WWcdD7+x85nxehsT41Zt fEjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=o+R85huF; 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-65256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCXSoSeOE9iDfxMNsSgiSpHSM6EESyUBP6590WtACgptmEuZWW8BJUBydoGgsk8hsjK84OUHPKA4N/Uf+eYtEub9JUzYqWVxWHdWYMzGgQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kt11-20020a170906aacb00b00a3d4012fdaesi648587ejb.382.2024.02.14.05.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 05:21:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=o+R85huF; 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-65256-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65256-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D53C01F2AAF6 for ; Wed, 14 Feb 2024 13:13:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA274535DF; Wed, 14 Feb 2024 13:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="o+R85huF" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 6B8FD53E0D; Wed, 14 Feb 2024 13:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916400; cv=none; b=jJ4220bsZQkjdnBb+w0WxDkrfqQIvWzWCIXor6sBMqmSlCRgtC66v8+AUdK3uigJtr/n3uvzpGgc2T0BvFmnil1yyNvVoSDSWJ/FO7sYZb46l8mQNxykTa9Di8Eys1RMk6vsqRNHdfARhYXhsu9xD8w02s6YI4en+GpRV0rbcD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916400; c=relaxed/simple; bh=trNel9DGiBM9izEKSSd/SarU5GGAHEjWvzZ33PVmI/w=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dtEWuum6EOl0TO95RcezLdMoLYZc+ekG3J6Xl7k7P9y23ElbZUsQu9XjuFx4NHPatW1wOO52tl7Dilyf3DAG8elJ5nmqQRJQp2IX2d1yZIbtF/QWPxXYzsF89saAVvpWETiuevN2cik+ibjnR1yTT4T8+HLmrYK9M+OlzsH+Q9Q= 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=o+R85huF; arc=none smtp.client-ip=217.70.183.194 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 A93444000B; Wed, 14 Feb 2024 13:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707916395; 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=yoAjEMlVwFZdXBa82MjfrxBFsO3UeSV1bx1OSrRYZw8=; b=o+R85huFFD6K3kjeRghvtDXOyBJKIWQiti408PeQ5wsVaLIvqUe0c4Vv65+MF5zU9e0XAQ 7t89FsKLZJtQ023ajRy/DL+B0cX7Rz5llmD+XPpwCXAdXNfasJ0c7pHwURc8qgnnMXwqMx 5fhB6aWU39RpEpN5+7Qyeysk91SVaCiAXHHBBRuu1PpS1plXq+P1S8FrEuEy0PsoLSG63S Ca9qyl9dmi/rn/3ekkj9GF1/szixWhVHVRjcr9JxPbpWEqE8fUmWU7JI8tPkw5hVMRka9G YBjwBrB6HF8wkQrxn41t7SlM9l98Wh1m/xypGctR1b/GKmo3oHhSgdhgcSb58A== Date: Wed, 14 Feb 2024 14:13:10 +0100 From: =?UTF-8?B?S8O2cnk=?= 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 Subject: Re: [PATCH net-next v3 10/17] dt-bindings: net: pse-pd: Add another way of describing several PSE PIs Message-ID: <20240214141310.119364c4@kmaincent-XPS-13-7390> In-Reply-To: <20240209144349.GA3678044-robh@kernel.org> References: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> <20240208-feature_poe-v3-10-531d2674469e@bootlin.com> <20240209144349.GA3678044-robh@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; 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 Hello Rob, Thanks for your review! On Fri, 9 Feb 2024 14:43:49 +0000 Rob Herring wrote: > On Thu, Feb 08, 2024 at 02:08:47PM +0100, Kory Maincent wrote: > > Before hand we set "#pse-cell" to 1 to define a PSE controller with =20 >=20 > #pse-cells >=20 > > several PIs (Power Interface). The drawback of this was that we could n= ot > > have any information on the PI except its number. =20 >=20 > Then increase it to what you need. The whole point of #foo-cells is that= =20 > it is variable depending on what the provider needs.=20 >=20 > > Add support for pse_pis and pse_pi node to be able to have more informa= tion > > on the PI like the number of pairset used and the pairset pinout. =20 >=20 > Please explain the problem you are trying to solve, not your solution. I= =20 > don't understand what the problem is to provide any useful suggestions=20 > on the design. Please see Oleksij's reply. Thank you Oleksij, for the documentation!! > >=20 > > Sponsored-by: Dent Project =20 >=20 > Is this a recognized tag? First I've seen it. This is not a standard tag but it has been used several times in the past. > > =20 > > -required: > > - - "#pse-cells" > > + pse_pis: > > + $ref: "#/$defs/pse_pis" > > + > > +$defs: =20 >=20 > $defs is for when you need multiple copies of the same thing. I don't=20 > see that here. I made this choice for better readability but indeed it is used only once. I will remove it then. > > + pse_pis: > > + type: object > > + description: > > + Kind of a matrix to identify the concordance between a PSE Power > > + Interface and one or two (PoE4) physical ports. > > + > > + properties: > > + "#address-cells": > > + const: 1 > > + > > + "#size-cells": > > + const: 0 > > + > > + patternProperties: > > + "^pse_pi@[0-9]+$": =20 >=20 > Unit-addresses are hex. Oops sorry for the mistake. >=20 > > + $ref: "#/$defs/pse_pi" > > + > > + required: > > + - "#address-cells" > > + - "#size-cells" > > + > > + pse_pi: > > + description: > > + PSE PI device for power delivery via pairsets, compliant with IE= EE > > + 802.3-2022, Section 145.2.4. Each pairset comprises a positive a= nd a > > + negative VPSE pair, adhering to the pinout configurations detail= ed in > > + the standard. > > + type: object > > + properties: > > + reg: > > + maxItems: 1 =20 >=20 > As you are defining the addressing here, you need to define what the=20 > "addresses" are. Yes I will add some documentation in next version. > > + values are "alternative-a" and "alternative-b". Each name sh= ould > > + correspond to a phandle in the 'pairset' property pointing t= o the > > + power supply for that pairset. > > + $ref: /schemas/types.yaml#/definitions/string-array > > + minItems: 1 > > + maxItems: 2 > > + items: > > + - enum: > > + - "alternative-a" > > + - "alternative-b" =20 >=20 > This leaves the 2nd entry undefined. You need the dictionary form of=20 > 'items' rather than a list. IOW, Drop the '-' under items. Oh thanks! That is what I was looking for. I was struggling using the right description. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com