Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2158527lqz; Tue, 2 Apr 2024 08:48:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8HLLDJsjKLQej1JNAseFurTNRgH/REHjHGNfkfi9vwF546KItY4a/wah24te7WifPESypy6Jm5QvTcurdjPJ35znF9yZ0N6r8N5v4Dw== X-Google-Smtp-Source: AGHT+IHLQSoEKq7WIp+Xh1pYcxK6NXPRtGcCPGSlQsh0xxZ+OfQF88D6s0LD/YIPsuHNUel4qmHx X-Received: by 2002:a50:a6d4:0:b0:56d:b6dc:c8fe with SMTP id f20-20020a50a6d4000000b0056db6dcc8femr219751edc.0.1712072923668; Tue, 02 Apr 2024 08:48:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712072923; cv=pass; d=google.com; s=arc-20160816; b=qv5CzEBjmDUSNyItVM48c+9kA1OW5+rpeaNURLqmN/KR7CIbMuLhvPmvEfWX3aEYO4 FPKNmwF+rHyb2uT9EJpDg6Vu4RPmM3DpltytlSuFx7g0UmDbdDJ/LfpSpVzmVgmXSPnk rwAPVdL2+EFygXpY1Sfbgtsa/mMPlNpt0WCgu7fa3RxFfXIU/72FI2+V7zV4QrZcPUg4 rHolMVS8QofFo4ds31kqQUL/dn9E9j1oAhutJMDqWe+8QyckopGwcMh7DJSM65g2HteF TpWuLLG4/pD1q/PiaqyflgdkzdbrSiJM0LauiESnWua9EeIbJG28l/QyYuBJpKJWS76H vQXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=h+3TBsoe2iSL5vYpJ4NKoCsW0lRAzdpZUnYn+yRlXW8=; fh=h4jQ+QY/N7+FdY+g7ApBlWJp3kmhz7yNMAWe4pkSFlc=; b=jlqaAuOk/7ybJYwA0yjFWMjFP6FufcFeh0RoHeRnfyQGVpA9JSwY2j7LKDUrF0eG6Q aOeeuBH2DXfr536ztXQ7lCFlQkt4JNMg+y1HDxjc6LXpOlXabYeSyliJTvF2YUfqvBuA Ck+CvleNMeS0CVtuURV9l9M+3WQA44yoqRfJbSAzu5ywhj35ruolm6u4eZnpddFGNiZT /QlMQGneLXD/zJcEnW82QdXKYgLMPhCRJUsjyBE4s3rhEkShvv+CFPvsN2tmp7e65a+Y 3CwTWHfhLO3Txxzele5ZC8garsHW0U3B5r8Al8rIguH0O3HXDUPAnRXThMZmxmRSHJJ0 KVNA==; 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-128277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128277-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t20-20020a50d714000000b0056c37e45601si5685083edi.85.2024.04.02.08.48.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128277-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 67BE01F2277D for ; Tue, 2 Apr 2024 15:48:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16349132C39; Tue, 2 Apr 2024 15:48:36 +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 88A5284FCD for ; Tue, 2 Apr 2024 15:48:33 +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=1712072915; cv=none; b=mUqxvSvquJ+LYJlRBXZj3tQ8zc2RLM/F9VyTPP4zvEga1kK7NKrmzOyNaW/xIZv5Fx3nvHiAHargWENItlua5zL1SabnItLuJ5GrpuG7r1qEgfRPgh5mVBTSDBkde/EiSKSwDRQa+ZWiRg7uq0d/Mw/z0xg6Ai+U3zEZViGBW/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712072915; c=relaxed/simple; bh=piAKnhg8FS4n7pS0Dn6A+pN5uvt8YR0IVYBuMyFEm8A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NRUcDo0kB4tvTmAlnsPk+FuaqCUYpGsJICiJ9w4mBUQrWJXDi8YqRI36lOm5elmca/VWtputtX1DaOvi/2jXtwK99sCVkA5HPyydXFl0bUPeBR+XXahgX+RBx9BFl38mqhOje7uB5G4Im70rTmRTQOV6A8YUq0F115eGFaR3e5I= 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 1rrgMi-0005Ya-Eu; Tue, 02 Apr 2024 17:48:00 +0200 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 1rrgMg-00A0j3-Hg; Tue, 02 Apr 2024 17:47:58 +0200 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rrgMg-00Asbo-1Q; Tue, 02 Apr 2024 17:47:58 +0200 Date: Tue, 2 Apr 2024 17:47:58 +0200 From: Oleksij Rempel To: Rob Herring Cc: Kory Maincent , "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 , 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 v6 11/17] dt-bindings: net: pse-pd: Add another way of describing several PSE PIs Message-ID: References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> <20240326-feature_poe-v6-11-c1011b6ea1cb@bootlin.com> <20240402132637.GA3744978-robh@kernel.org> 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 In-Reply-To: <20240402132637.GA3744978-robh@kernel.org> 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, Apr 02, 2024 at 08:26:37AM -0500, Rob Herring wrote: > > + pairsets: > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + description: > > + List of phandles, each pointing to the power supply for the > > + corresponding pairset named in 'pairset-names'. This property > > + aligns with IEEE 802.3-2022, Section 33.2.3 and 145.2.4. > > + PSE Pinout Alternatives (as per IEEE 802.3-2022 Table 145\u20133) > > + |-----------|---------------|---------------|---------------|---------------| > > + | Conductor | Alternative A | Alternative A | Alternative B | Alternative B | > > + | | (MDI-X) | (MDI) | (X) | (S) | > > + |-----------|---------------|---------------|---------------|---------------| > > + | 1 | Negative VPSE | Positive VPSE | \u2014 | \u2014 | > > + | 2 | Negative VPSE | Positive VPSE | \u2014 | \u2014 | > > + | 3 | Positive VPSE | Negative VPSE | \u2014 | \u2014 | > > + | 4 | \u2014 | \u2014 | Negative VPSE | Positive VPSE | > > + | 5 | \u2014 | \u2014 | Negative VPSE | Positive VPSE | > > + | 6 | Positive VPSE | Negative VPSE | \u2014 | \u2014 | > > + | 7 | \u2014 | \u2014 | Positive VPSE | Negative VPSE | > > + | 8 | \u2014 | \u2014 | Positive VPSE | Negative VPSE | > > + minItems: 1 > > + maxItems: 2 > > "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. > > The other oddity is the number of entries and the names are fixed. That > is usually defined per consumer. > > As each entry is just a power rail, why can't the regulator binding be > used here? I'm not against describing it consequent with regulator till the wire end, but right now I have no idea how it should be described by using regulator bindings. There are maximum 2 rails going in to PSE PI on one side and 4 rails with at least 5 combinations supported by standard on other side. Instead of inventing anything new, I suggested to describe supported output combinations by using IEEE 802.3 standard. 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 |