[net-next,v3,14/17] dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller
Message ID | 20240208-feature_poe-v3-14-531d2674469e@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58125-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp159431dyd; Thu, 8 Feb 2024 05:18:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE01YznhWjOJ+qR8Fe7OUoGkTHy9jeo9tm3Ul6hV99Q/cpnImHILa20LTas9akET6ZX++Hr X-Received: by 2002:a05:6a20:2d13:b0:19e:4a68:46d0 with SMTP id g19-20020a056a202d1300b0019e4a6846d0mr9524297pzl.60.1707398335413; Thu, 08 Feb 2024 05:18:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707398335; cv=pass; d=google.com; s=arc-20160816; b=N+I/hcesbDIREAeKl8SSc7RkRGMGPw8aybe4/dEEECgmEZrsYCWQU83ai+KrejiWV/ uoDOoUJVb4XMiKF0Y1Si2PwEg5EKGkDHk0wfuwckWxilNf83p+wilM8hTYpFylD5S+Qb LLXhHpfxUnPnIJAb1+y4GpUqnBAiS6CUWL6flRhg65vdvWImjtJy8KNO+gCOOFpJOQRo qCYcXx1E/1BJNl0CYq/115WcpVD+NgaRFZ5bd6hwos/dPlpS5BdPSOgWII3pwzVq3BIB Ee19+GHLqBRKxneY7w4JIcY9R98cluHubiYfgJ6e/e9Tzdp0ZZIJBhFH5ZQKn8rx2UJp oN7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=mVmOdG75ilt1TdaWC4koloYDTkgPxuUNMS9OlBOwSYA=; fh=Oy5/nWD2n85UPRwlyvTI5/AO+f0zZgTIyr2fMzyg8G4=; b=1K0tnY6l5Z58mUpxYqoBSjiqG5w5zSHtfWLqqd9FbUm9Htw6v66ptytjjtK9ardWiJ ACRfcy8Kefi3C6dgavgKMJzj7xdl4YPjF3A/FD/OuM2a0NjiVkzE27/nLU3BGINpl46A zNky+9xTp8wPUrdeuwZ/f+yyAK74vcSxgVDXsAEKuSDgz5TUtWGGUpzOynQBf+1ESpDQ SYt32SAFkaY95atK/uBvSHiNk6GWfsD3EYeshdf0U8Vzm8gsGxDuzgnftnJWE9ZhQDFc s3fKRvgkrOKXKnmJ9zYexqQ7meC5m4yIvf3jKdcmmU9x2J0pelJ+h6EXEhmEymb4znuW wBCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FzIdas9Z; 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-58125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58125-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCWe8DjkwPg7MtVyTW0QyhmPAYOu1L9HKYI2jgWRY6L9oAqJJklWIODi8sqRYQDmJtPAjmcsqq91sc7uv1ljaByo5487SQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t185-20020a6381c2000000b005dc36761ae9si3462296pgd.381.2024.02.08.05.18.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:18:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FzIdas9Z; 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-58125-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58125-ouuuleilei=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 7F55D28F206 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 13:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F08691272A6; Thu, 8 Feb 2024 13:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FzIdas9Z" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 8804A7EEFA; Thu, 8 Feb 2024 13:10:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397813; cv=none; b=X+GLFx7NK2zDtoHHOanJpVpJmpaBh8anZtvdbFGgRSKNsFoOqpM2sf48YqJwQH5abuywF26dnSR5mQiYYkRG3VqeeTgrf3L2rs7+XDgQQjOD8LU7YsFfmC4mMJ/FUL0rlmSYBgrcs6+bIJ7jDUdDiClyoBDnHOrJLDqHH0NgFk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397813; c=relaxed/simple; bh=jqnYlgaXLMzYuH4LjfkpNupJn5BIEgbBBQ598xxZShI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WnqWyhIF1TEWP1S3XKx7d8md9/RYoeLXf3QKD19TWHVKwQURTSWDOtF1QXuL/5ZPIH9/7mPVeT40yWb0c8DgpDjrK/JWK8DsVadBnWovu9G366z+oNf3nIjn5bRYmSoXaN7LAyqNbLGxN2TfhlBaqrlTkC3yfqPlY77cUUHsthw= 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=FzIdas9Z; arc=none smtp.client-ip=217.70.183.201 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 B6A021BF203; Thu, 8 Feb 2024 13:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707397808; 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=mVmOdG75ilt1TdaWC4koloYDTkgPxuUNMS9OlBOwSYA=; b=FzIdas9Zs6OdEeA2SuodmgqUw7WVK7d+iqaTZfUAvgHUO9KEjxZ9/e/7+cK05OtIEwB9E7 lUgbXn36uizuzAU0UrX9nG1HN5KXbGltEGeXAH5R3NZW3Ek3BKcdvKhqcaAZDBOyZfGTPp TOOWbkF4FxZIKBHCKA5Q5Xdw6L2+ul105pLMRFJvKLoydjpKD4YMZgQ9qxO3wgCX4v9qEK NxN/fE8KEYa4aQrTqhRwj+5WJ/oZ5yARYbhAp+03LZH5sG8olp+G/T/sSmA7pD1JDyZe2M XrxI1nuB6h/XDtkohpKdbnVBL6zRArbz61/9l4JGbgDNd2Fng6G7SVTtRs9K+Q== From: Kory Maincent <kory.maincent@bootlin.com> Date: Thu, 08 Feb 2024 14:08:51 +0100 Subject: [PATCH net-next v3 14/17] dt-bindings: net: pse-pd: Add bindings for PD692x0 PSE controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240208-feature_poe-v3-14-531d2674469e@bootlin.com> References: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> In-Reply-To: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Luis Chamberlain <mcgrof@kernel.org>, Russ Weight <russ.weight@linux.dev>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Oleksij Rempel <o.rempel@pengutronix.de>, Mark Brown <broonie@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project <dentproject@linuxfoundation.org>, Kory Maincent <kory.maincent@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790336916896261531 X-GMAIL-MSGID: 1790336916896261531 |
Series |
net: Add support for Power over Ethernet (PoE)
|
|
Commit Message
Köry Maincent
Feb. 8, 2024, 1:08 p.m. UTC
Add the PD692x0 I2C Power Sourcing Equipment controller device tree
bindings documentation.
Sponsored-by: Dent Project <dentproject@linuxfoundation.org>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Changes in v2:
- Enhance ports-matrix description.
- Replace additionalProperties by unevaluatedProperties.
- Drop i2c suffix.
Changes in v3:
- Remove ports-matrix parameter.
- Add description of all physical ports and managers.
- Add pse_pis subnode moving to the API of pse-controller binding.
- Remove the MAINTAINERS section for this driver as I will be maintaining
all pse-pd subsystem.
---
.../bindings/net/pse-pd/microchip,pd692x0.yaml | 157 +++++++++++++++++++++
1 file changed, 157 insertions(+)
Comments
On Thu, Feb 08, 2024 at 02:08:51PM +0100, Kory Maincent wrote: > Add the PD692x0 I2C Power Sourcing Equipment controller device tree > bindings documentation. > > Sponsored-by: Dent Project <dentproject@linuxfoundation.org> > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> > --- > > Changes in v2: > - Enhance ports-matrix description. > - Replace additionalProperties by unevaluatedProperties. > - Drop i2c suffix. > > Changes in v3: > - Remove ports-matrix parameter. > - Add description of all physical ports and managers. > - Add pse_pis subnode moving to the API of pse-controller binding. > - Remove the MAINTAINERS section for this driver as I will be maintaining > all pse-pd subsystem. > --- > .../bindings/net/pse-pd/microchip,pd692x0.yaml | 157 +++++++++++++++++++++ > 1 file changed, 157 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml > new file mode 100644 > index 000000000000..57ba5365157c > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml > @@ -0,0 +1,157 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip PD692x0 Power Sourcing Equipment controller > + > +maintainers: > + - Kory Maincent <kory.maincent@bootlin.com> > + > +allOf: > + - $ref: pse-controller.yaml# > + > +properties: > + compatible: > + enum: > + - microchip,pd69200 > + - microchip,pd69210 > + - microchip,pd69220 > + > + reg: > + maxItems: 1 > + > + managers: > + $ref: "#/$defs/managers" > + description: > + List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager > + have 4 or 8 physical ports according to the chip version. No need to > + specify the SPI chip select as it is automatically detected by the > + PD692x0 PSE controller. The PSE managers have to be described from > + the lowest chip select to the greatest one, which is the detection > + behavior of the PD692x0 PSE controller. The PD692x0 support up to > + 12 PSE managers which can expose up to 96 physical ports. All > + physical ports available on a manager have to be described in the > + incremental order even if they are not used. Looks to me like you just need 3 PSE cells: <manager> <port> <A|B> Really, no need for each piece of data to its own cell, so it could be merged into 1 or 2 cells. But cell data is generally supposed to be meaningful to the provider and opaque to the consumer. It's not clear to me who needs to know alternative A vs. B. That seems more like a property of the PHY than the power provider? Rob
On Fri, Feb 09, 2024 at 02:57:27PM +0000, Rob Herring wrote: > On Thu, Feb 08, 2024 at 02:08:51PM +0100, Kory Maincent wrote: > > Add the PD692x0 I2C Power Sourcing Equipment controller device tree > > bindings documentation. > > > > Sponsored-by: Dent Project <dentproject@linuxfoundation.org> > > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> > > --- > > > > Changes in v2: > > - Enhance ports-matrix description. > > - Replace additionalProperties by unevaluatedProperties. > > - Drop i2c suffix. > > > > Changes in v3: > > - Remove ports-matrix parameter. > > - Add description of all physical ports and managers. > > - Add pse_pis subnode moving to the API of pse-controller binding. > > - Remove the MAINTAINERS section for this driver as I will be maintaining > > all pse-pd subsystem. > > --- > > .../bindings/net/pse-pd/microchip,pd692x0.yaml | 157 +++++++++++++++++++++ > > 1 file changed, 157 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml > > new file mode 100644 > > index 000000000000..57ba5365157c > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml > > @@ -0,0 +1,157 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Microchip PD692x0 Power Sourcing Equipment controller > > + > > +maintainers: > > + - Kory Maincent <kory.maincent@bootlin.com> > > + > > +allOf: > > + - $ref: pse-controller.yaml# > > + > > +properties: > > + compatible: > > + enum: > > + - microchip,pd69200 > > + - microchip,pd69210 > > + - microchip,pd69220 > > + > > + reg: > > + maxItems: 1 > > + > > + managers: > > + $ref: "#/$defs/managers" > > + description: > > + List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager > > + have 4 or 8 physical ports according to the chip version. No need to > > + specify the SPI chip select as it is automatically detected by the > > + PD692x0 PSE controller. The PSE managers have to be described from > > + the lowest chip select to the greatest one, which is the detection > > + behavior of the PD692x0 PSE controller. The PD692x0 support up to > > + 12 PSE managers which can expose up to 96 physical ports. All > > + physical ports available on a manager have to be described in the > > + incremental order even if they are not used. > > Looks to me like you just need 3 PSE cells: <manager> <port> <A|B> > > Really, no need for each piece of data to its own cell, so it could be > merged into 1 or 2 cells. > > But cell data is generally supposed to be meaningful to the provider and > opaque to the consumer. It's not clear to me who needs to know > alternative A vs. B. That seems more like a property of the PHY than the > power provider? This is a bit complex question, so I decided to answer it with freshly created documentation which should be included to this patch set: PSE Power Interface (PSE PI) Documentation ========================================== The Power Sourcing Equipment Power Interface (PSE PI) plays a pivotal role in the architecture of Power over Ethernet (PoE) systems. It is essentially a blueprint that outlines how one or multiple power sources are connected to the eight-pin modular jack, commonly known as the Ethernet RJ45 port. This connection scheme is crucial for enabling the delivery of power alongside data over Ethernet cables. Documentation and Standards --------------------------- The IEEE 802.3 standard provides detailed documentation on the PSE PI. Specifically: - Section "33.2.3 PI pin assignments" covers the pin assignments for PoE systems that utilize two pairs for power delivery. - Section "145.2.4 PSE PI" addresses the configuration for PoE systems that deliver power over all four pairs of an Ethernet cable. PSE PI and Single Pair Ethernet ------------------------------- Single Pair Ethernet (SPE) represents a different approach to Ethernet connectivity, utilizing just one pair of conductors for both data and power transmission. Unlike the configurations detailed in the PSE PI for standard Ethernet, which can involve multiple power sourcing arrangements across four or two pairs of wires, SPE operates on a simpler model due to its single-pair design. As a result, the complexities of choosing between alternative pin assignments for power delivery, as described in the PSE PI for multi-pair Ethernet, are not applicable to SPE. Understanding PSE PI -------------------- The Power Sourcing Equipment Power Interface (PSE PI) is a framework defining how Power Sourcing Equipment (PSE) delivers power to Powered Devices (PDs) over Ethernet cables. It details two main configurations for power delivery, known as Alternative A and Alternative B, which are distinguished not only by their method of power transmission but also by the implications for polarity and data transmission direction. Alternative A and B Overview ---------------------------- - **Alternative A:** Utilizes the data-carrying pairs for power transmission in 10/100BaseT networks. The power delivery's polarity in this alternative can vary based on the MDI (Medium Dependent Interface) or MDI-X (Medium Dependent Interface Crossover) configuration. - **Alternative B:** Delivers power over the spare pairs not used for data in 10/100BaseT networks. Unlike Alternative A, Alternative B's method separates power from data lines within the cable. Though it is less influenced by data transmission direction, Alternative B includes two configurations with different polarities, known as variant X and variant S, to accommodate different network requirements and device specifications. Table 145–3—PSE Pinout Alternatives ----------------------------------- The following table outlines the pin configurations for both Alternative A and Alternative B. +------------+-------------------+-----------------+-----------------+-----------------+ | Conductor | Alternative A | Alternative A | Alternative B | Alternative B | | | (MDI-X) | (MDI) | (X) | (S) | +============+===================+=================+=================+=================+ | 1 | Negative V | Positive V | - | - | +------------+-------------------+-----------------+-----------------+-----------------+ | 2 | Negative V | Positive V | - | - | +------------+-------------------+-----------------+-----------------+-----------------+ | 3 | Positive V | Negative V | - | - | +------------+-------------------+-----------------+-----------------+-----------------+ | 4 | - | - | Negative V | Positive V | +------------+-------------------+-----------------+-----------------+-----------------+ | 5 | - | - | Negative V | Positive V | +------------+-------------------+-----------------+-----------------+-----------------+ | 6 | Positive V | Negative V | - | - | +------------+-------------------+-----------------+-----------------+-----------------+ | 7 | - | - | Positive V | Negative V | +------------+-------------------+-----------------+-----------------+-----------------+ | 8 | - | - | Positive V | Negative V | +------------+-------------------+-----------------+-----------------+-----------------+ . note:: - "Positive V" and "Negative V" indicate the voltage polarity for each pin. - "-" indicates that the pin is not used for power delivery in that specific configuration. PSE Power Interface (PSE PI) Connection Diagram ------------------------------------------------ The diagram below illustrates the connection architecture between the RJ45 port, the Ethernet PHY (Physical Layer), and the PSE PI (Power Sourcing Equipment Power Interface), demonstrating how power and data are delivered simultaneously through an Ethernet cable. The RJ45 port serves as the physical interface for these connections, with each of its eight pins connected to both the Ethernet PHY for data transmission and the PSE PI for power delivery. . code-block:: +--------------------------+ | | | RJ45 Port | | | +--+--+--+--+--+--+--+--+--+ +-------------+ 1| 2| 3| 4| 5| 6| 7| 8| | | | | | | | | | o-------------------+ | | | | | | | o--|-------------------+ +<--- PSE 1 | | | | | o--|--|-------------------+ | | | | | o--|--|--|-------------------+ | | | | o--|--|--|--|-------------------+ PSE PI | | | o--|--|--|--|--|-------------------+ | | o--|--|--|--|--|--|-------------------+ +<--- PSE 2 (optional) o--|--|--|--|--|--|--|-------------------+ | | | | | | | | | | | +--+--+--+--+--+--+--+--+--+ +-------------+ | | | Ethernet PHY | | | +--------------------------+ Simple PSE PI Configuration for Alternative A --------------------------------------------- The diagram below illustrates a straightforward PSE PI (Power Sourcing Equipment Power Interface) configuration designed to support the Alternative A setup for Power over Ethernet (PoE). This implementation is tailored to provide power delivery through the data-carrying pairs of an Ethernet cable, suitable for either MDI or MDI-X configurations, albeit supporting one variation at a time. . code-block:: +-------------+ | PSE PI | 8 -----+ +-------------+ 7 -----+ Rail 1 | 6 -----+------+----------------------+ 5 -----+ | | 4 -----+ / Rail 2 | PSE 1 3 -----+----´ +-------------+ 2 -----+----+---------´ | 1 -----+---´ +-------------+ | +-------------+ In this configuration: - Pins 1 and 2, as well as pins 3 and 6, are utilized for power delivery in addition to data transmission. This aligns with the standard wiring for 10/100BaseT Ethernet networks where these pairs are used for data. - Rail 1 and Rail 2 represent the positive and negative voltage rails, with Rail 1 connected to pins 1 and 2, and Rail 2 connected to pins 3 and 6. More advanced PSE PI configurations may include integrated or external switches to change the polarity of the voltage rails, allowing for compatibility with both MDI and MDI-X configurations. More complex PSE PI configurations may include additional components, to support Alternative B, or to provide additional features such as power management, or additional power delivery capabilities such as 2-pair or 4-pair power delivery. . code-block:: +-------------+ | PSE PI | | +---+ 8 -----+--------+ | +-------------+ 7 -----+--------+ | Rail 1 | 6 -----+--------+ +-----------------+ 5 -----+--------+ | | 4 -----+--------+ | Rail 2 | PSE 1 3 -----+--------+ +----------------+ 2 -----+--------+ | | 1 -----+--------+ | +-------------+ | +---+ +-------------+ Device Tree Configuration: Describing PSE PI Configurations ------------------------------------------------------------ The necessity for a separate PSE PI node in the device tree is influenced by the intricacy of the Power over Ethernet (PoE) system's setup. Here are descriptions of both simple and complex PSE PI configurations to illustrate this decision-making process: **Simple PSE PI Configuration:** In a straightforward scenario, the PSE PI setup involves a direct, one-to-one connection between a single PSE controller and an Ethernet port. This setup typically supports basic PoE functionality without the need for dynamic configuration or management of multiple power delivery modes. For such simple configurations, detailing the PSE PI within the existing PSE controller's node may suffice, as the system does not encompass additional complexity that warrants a separate node. The primary focus here is on the clear and direct association of power delivery to a specific Ethernet port. **Complex PSE PI Configuration:** Contrastingly, a complex PSE PI setup may encompass multiple PSE controllers or auxiliary circuits that collectively manage power delivery to one Ethernet port. Such configurations might support a range of PoE standards and require the capability to dynamically configure power delivery based on the operational mode (e.g., PoE2 versus PoE4) or specific requirements of connected devices. In these instances, a dedicated PSE PI node becomes essential for accurately documenting the system architecture. This node would serve to detail the interactions between different PSE controllers, the support for various PoE modes, and any additional logic required to coordinate power delivery across the network infrastructure. **Guidance:** For simple PSE setups, including PSE PI information in the PSE controller node might suffice due to the straightforward nature of these systems. However, complex configurations, involving multiple components or advanced PoE features, benefit from a dedicated PSE PI node. This method adheres to IEEE 802.3 specifications, improving documentation clarity and ensuring accurate representation of the PoE system's complexity. PSE PI Node: Essential Information ---------------------------------- The PSE PI (Power Sourcing Equipment Power Interface) node in a device tree can include several key pieces of information critical for defining the power delivery capabilities and configurations of a PoE (Power over Ethernet) system. Below is a list of such information, along with explanations for their necessity and reasons why they might not be found within a PSE controller node: 1. **Powered Pairs Configuration** - *Description:* Identifies the pairs used for power delivery in the Ethernet cable. - *Necessity:* Essential to ensure the correct pairs are powered according to the board's design. - *PSE Controller Node:* Typically lacks details on physical pair usage, focusing on power regulation. 2. **Polarity of Powered Pairs** - *Description:* Specifies the polarity (positive or negative) for each powered pair. - *Necessity:* Critical for safe and effective power transmission to PDs. - *PSE Controller Node:* Polarity management may exceed the standard functionalities of PSE controllers. 3. **PSE Cells Association** - *Description:* Details the association of PSE cells with Ethernet ports or pairs in multi-cell configurations. - *Necessity:* Allows for optimized power resource allocation in complex systems. - *PSE Controller Node:* Controllers may not manage cell associations directly, focusing instead on power flow regulation. 4. **Support for PoE Standards** - *Description:* Lists the PoE standards and configurations supported by the system. - *Necessity:* Ensures system compatibility with various PDs and adherence to industry standards. - *PSE Controller Node:* Specific capabilities may depend on the overall PSE PI design rather than the controller alone. Multiple PSE cells per PI do not necessarily imply support for multiple PoE standards. 5. **Protection Mechanisms** - *Description:* Outlines additional protection mechanisms, such as overcurrent protection and thermal management. - *Necessity:* Provides extra safety and stability, complementing PSE controller protections. - *PSE Controller Node:* Some protections may be implemented via board-specific hardware or algorithms external to the controller. Regards, Oleksij
> Alternative A and B Overview > ---------------------------- > > - **Alternative A:** Utilizes the data-carrying pairs for power transmission in > 10/100BaseT networks. The power delivery's polarity in this alternative can > vary based on the MDI (Medium Dependent Interface) or MDI-X (Medium Dependent > Interface Crossover) configuration. > > - **Alternative B:** Delivers power over the spare pairs not used for data in > 10/100BaseT networks. Unlike Alternative A, Alternative B's method separates > power from data lines within the cable. Though it is less influenced by data > transmission direction, Alternative B includes two configurations with > different polarities, known as variant X and variant S, to accommodate > different network requirements and device specifications. Thanks for this documentation. It might be worth pointing out that RJ-45 supports up to 4 pairs. However, 10/100BaseT only makes use of two pairs for data transfer from the four. 1000BaseT and above make use of all four pairs for data transfer. If you don't know this, it is not so obvious what 'data-carrying pairs' and 'spare pairs' mean. And what happens for 1000BaseT when all four pairs are in use? Andrew
On Wed, Feb 14, 2024 at 06:41:54PM +0100, Andrew Lunn wrote: > > Alternative A and B Overview > > ---------------------------- > > > > - **Alternative A:** Utilizes the data-carrying pairs for power transmission in > > 10/100BaseT networks. The power delivery's polarity in this alternative can > > vary based on the MDI (Medium Dependent Interface) or MDI-X (Medium Dependent > > Interface Crossover) configuration. > > > > - **Alternative B:** Delivers power over the spare pairs not used for data in > > 10/100BaseT networks. Unlike Alternative A, Alternative B's method separates > > power from data lines within the cable. Though it is less influenced by data > > transmission direction, Alternative B includes two configurations with > > different polarities, known as variant X and variant S, to accommodate > > different network requirements and device specifications. > > Thanks for this documentation. > > It might be worth pointing out that RJ-45 supports up to 4 > pairs. However, 10/100BaseT only makes use of two pairs for data > transfer from the four. 1000BaseT and above make use of all four pairs > for data transfer. If you don't know this, it is not so obvious what > 'data-carrying pairs' and 'spare pairs' mean. @Kory, can you please update it. > And what happens for 1000BaseT when all four pairs are in use? Hm.. good question. I didn't found the answer in the spec. By combining all puzzle parts I assume, different Alternative configurations are designed to handle conflict between "PSE Physical Layer classification" and PHY autoneg. Here is how multi-pulse Physical Layer classification is done: https://img.electronicdesign.com/files/base/ebm/electronicdesign/image/2020/07/Figure_5.5f2094553a61c.png this is the source: https://www.electronicdesign.com/technologies/power/whitepaper/21137799/silicon-labs-90-w-power-over-ethernet-explained To avoid classification conflict with autoneg. Assuming, PHY on PD side will be not powered until classification is completed. The only source of pulses is the PHY on PSE side (if it is not under control of software on PSE side or Midspan PSE is used), so aneg pulses should be send on negative PoE pair? This all is just speculation, I would need to ask some expert or do testing. If this assumption is correct, PHY framework will need to know exact layout of MDI-X setting and/or silent PHY until PSE classification is done.
On Thu, 15 Feb 2024 09:17:48 +0100 Oleksij Rempel <o.rempel@pengutronix.de> wrote: > On Wed, Feb 14, 2024 at 06:41:54PM +0100, Andrew Lunn wrote: > > > Alternative A and B Overview > > > ---------------------------- > > > > > > - **Alternative A:** Utilizes the data-carrying pairs for power > > > transmission in 10/100BaseT networks. The power delivery's polarity in > > > this alternative can vary based on the MDI (Medium Dependent Interface) > > > or MDI-X (Medium Dependent Interface Crossover) configuration. > > > > > > - **Alternative B:** Delivers power over the spare pairs not used for > > > data in 10/100BaseT networks. Unlike Alternative A, Alternative B's > > > method separates power from data lines within the cable. Though it is > > > less influenced by data transmission direction, Alternative B includes > > > two configurations with different polarities, known as variant X and > > > variant S, to accommodate different network requirements and device > > > specifications. > > > > Thanks for this documentation. > > > > It might be worth pointing out that RJ-45 supports up to 4 > > pairs. However, 10/100BaseT only makes use of two pairs for data > > transfer from the four. 1000BaseT and above make use of all four pairs > > for data transfer. If you don't know this, it is not so obvious what > > 'data-carrying pairs' and 'spare pairs' mean. > > @Kory, can you please update it. > > > And what happens for 1000BaseT when all four pairs are in use? > > Hm.. good question. I didn't found the answer in the spec. By combining all > puzzle parts I assume, different Alternative configurations are designed > to handle conflict between "PSE Physical Layer classification" and PHY > autoneg. Oleksij how did you get the definition of Alternative A uses the "data-carrying" pairs for power transmission and Alternative B Delivers power over the "spare pairs"? On my understanding of the 2022 standard the definition is: - Alternative A is for pinout conductors 1, 2, 3 and 6 - Alternative B is for pinout conductors 4, 5, 7, 8. Then indeed if we are in 10/100BaseT Alternative A are "data-carrying pairs" and Alternative B are "spare pairs" but that's not the case on 1000BaseT. You can see it in the figures in the paragraph 145.2.3. Regards,
On Thu, Feb 15, 2024 at 11:41:23AM +0100, Köry Maincent wrote: > On Thu, 15 Feb 2024 09:17:48 +0100 > Oleksij Rempel <o.rempel@pengutronix.de> wrote: > > > On Wed, Feb 14, 2024 at 06:41:54PM +0100, Andrew Lunn wrote: > > > > Alternative A and B Overview > > > > ---------------------------- > > > > > > > > - **Alternative A:** Utilizes the data-carrying pairs for power > > > > transmission in 10/100BaseT networks. The power delivery's polarity in > > > > this alternative can vary based on the MDI (Medium Dependent Interface) > > > > or MDI-X (Medium Dependent Interface Crossover) configuration. > > > > > > > > - **Alternative B:** Delivers power over the spare pairs not used for > > > > data in 10/100BaseT networks. Unlike Alternative A, Alternative B's > > > > method separates power from data lines within the cable. Though it is > > > > less influenced by data transmission direction, Alternative B includes > > > > two configurations with different polarities, known as variant X and > > > > variant S, to accommodate different network requirements and device > > > > specifications. > > > > > > Thanks for this documentation. > > > > > > It might be worth pointing out that RJ-45 supports up to 4 > > > pairs. However, 10/100BaseT only makes use of two pairs for data > > > transfer from the four. 1000BaseT and above make use of all four pairs > > > for data transfer. If you don't know this, it is not so obvious what > > > 'data-carrying pairs' and 'spare pairs' mean. > > > > @Kory, can you please update it. > > > > > And what happens for 1000BaseT when all four pairs are in use? > > > > Hm.. good question. I didn't found the answer in the spec. By combining all ^^^^^^^^^^^^^^^^ > > puzzle parts I assume, different Alternative configurations are designed ^^^^^^^^^^^^^^^^^^^^^^ > > to handle conflict between "PSE Physical Layer classification" and PHY > > autoneg. > > Oleksij how did you get the definition of Alternative A uses the "data-carrying" > pairs for power transmission and Alternative B Delivers power over the "spare > pairs"? > > On my understanding of the 2022 standard the definition is: > - Alternative A is for pinout conductors 1, 2, 3 and 6 > - Alternative B is for pinout conductors 4, 5, 7, 8. > > Then indeed if we are in 10/100BaseT Alternative A are "data-carrying > pairs" and Alternative B are "spare pairs" but that's not the case on > 1000BaseT. > > You can see it in the figures in the paragraph 145.2.3. Please, re-read my answer :) Autoneg for 1000Mbit is not done on all 4 pairs. The only MDI/-X dependent transfer processes only on one pair is autoneg. Every thing else is extrapolated out of it.
> Hm.. good question. I didn't found the answer in the spec. By combining all > puzzle parts I assume, different Alternative configurations are designed > to handle conflict between "PSE Physical Layer classification" and PHY > autoneg. > > Here is how multi-pulse Physical Layer classification is done: > https://img.electronicdesign.com/files/base/ebm/electronicdesign/image/2020/07/Figure_5.5f2094553a61c.png > > this is the source: > https://www.electronicdesign.com/technologies/power/whitepaper/21137799/silicon-labs-90-w-power-over-ethernet-explained > > To avoid classification conflict with autoneg. Assuming, PHY on PD side > will be not powered until classification is completed. The only source > of pulses is the PHY on PSE side (if it is not under control of software > on PSE side or Midspan PSE is used), so aneg pulses should be send on > negative PoE pair? This all is just speculation, I would need to ask > some expert or do testing. > > If this assumption is correct, PHY framework will need to know exact > layout of MDI-X setting and/or silent PHY until PSE classification is done. Ideally, we don't want to define a DT binding, and then find it is wrong for 1000BaseT and above and we need to change it. So, either somebody needs to understand 1000BaseT and can say the proposed binding works, or we explicitly document the binding is limited to 10BaseT and 100BaseT. I'm not sure the second solution will actually fly. This was being tested with Marvell Prestera switch. I doubt it even has any Fast Ethernet ports. Andrew
On Thu, Feb 15, 2024 at 06:51:55PM +0100, Andrew Lunn wrote: > > Hm.. good question. I didn't found the answer in the spec. By combining all > > puzzle parts I assume, different Alternative configurations are designed > > to handle conflict between "PSE Physical Layer classification" and PHY > > autoneg. > > > > Here is how multi-pulse Physical Layer classification is done: > > https://img.electronicdesign.com/files/base/ebm/electronicdesign/image/2020/07/Figure_5.5f2094553a61c.png > > > > this is the source: > > https://www.electronicdesign.com/technologies/power/whitepaper/21137799/silicon-labs-90-w-power-over-ethernet-explained > > > > To avoid classification conflict with autoneg. Assuming, PHY on PD side > > will be not powered until classification is completed. The only source > > of pulses is the PHY on PSE side (if it is not under control of software > > on PSE side or Midspan PSE is used), so aneg pulses should be send on > > negative PoE pair? This all is just speculation, I would need to ask > > some expert or do testing. > > > > If this assumption is correct, PHY framework will need to know exact > > layout of MDI-X setting and/or silent PHY until PSE classification is done. > > Ideally, we don't want to define a DT binding, and then find it is > wrong for 1000BaseT and above and we need to change it. > > So, either somebody needs to understand 1000BaseT and can say the > proposed binding works, or we explicitly document the binding is > limited to 10BaseT and 100BaseT. I asked the internet and found the answer: Some PSE/PD implementations are not compatible with 1000BaseT. See Figure 33–4—10BASE-T/100BASE-TX Endpoint PSE location overview. Alternative B show a variant where power is injected directly to pairs without using magnetics as it is done for Alternative A (phantom delivery - over magnetics). I assume, the reasoning for this kind of design is simple - price. Otherwise magnetics will have special requirements: https://www.coilcraft.com/de-de/edu/series/magnetics-for-power-over-ethernet/ So, we have following variants of 2 pairs PoE: +---------+---------------+-------------------+---------------------+--------------------+ | Variant | Alternative | Polarity | Power Feeding Type | Compatibility with | | | (a/b) | (Direct/Reverse) | (Direct/Phantom) | 1000BaseT | +=========+===============+===================+=====================+====================+ | 1 | a | Direct | Phantom | Yes | +---------+---------------+-------------------+---------------------+--------------------+ | 2 | a | Reverse | Phantom | Yes | +---------+---------------+-------------------+---------------------+--------------------+ | 3 | b | Direct | Phantom | Yes | +---------+---------------+-------------------+---------------------+--------------------+ | 4 | b | Reverse | Phantom | Yes | +---------+---------------+-------------------+---------------------+--------------------+ | 5 | b | Direct | Direct | No | +---------+---------------+-------------------+---------------------+--------------------+ | 6 | b | Reverse | Direct | No | +---------+---------------+-------------------+---------------------+--------------------+ An advanced PSE may implement range of different variants direct in the PSE controller or with additional ICs in the PSE PI. The same is about PD. Let's take as example PD-IM-7608M eval board: https://www.microchip.com/en-us/development-tool/PD-IM-7608M According to the schematics: https://ww1.microchip.com/downloads/en/DeviceDoc/PD-IM-7608M.zip It supports only Variant 5 - Alternative B, with only one polarity, and direct feeding without magnetics. The simple PD may support only one variant: https://community.fs.com/article/troubleshooting-poe-errors.html " the power modes of PSE and PD are other factors that may cause PoE faults. There are three PoE modes: Alternative A, alternative B, and 4-pair delivery. If a PD only supports PoE mode B power delivery, while a PoE switch is based on Alternative A, as a result, the PD and PoE switch can not work together." For this case, it will be good if systems knows supported modes, so user can get this information directly. For example with ethtool
Hi Kory, Can you please integrated this new insights to the PSE PI documentation. Instead of 1000BaseT only, please use 1000/2.5G/5G/10GBASE-T as documented in the spec. On Fri, Feb 16, 2024 at 08:47:14AM +0100, Oleksij Rempel wrote: > On Thu, Feb 15, 2024 at 06:51:55PM +0100, Andrew Lunn wrote: > > > Hm.. good question. I didn't found the answer in the spec. By combining all > > > puzzle parts I assume, different Alternative configurations are designed > > > to handle conflict between "PSE Physical Layer classification" and PHY > > > autoneg. > > > > > > Here is how multi-pulse Physical Layer classification is done: > > > https://img.electronicdesign.com/files/base/ebm/electronicdesign/image/2020/07/Figure_5.5f2094553a61c.png > > > > > > this is the source: > > > https://www.electronicdesign.com/technologies/power/whitepaper/21137799/silicon-labs-90-w-power-over-ethernet-explained > > > > > > To avoid classification conflict with autoneg. Assuming, PHY on PD side > > > will be not powered until classification is completed. The only source > > > of pulses is the PHY on PSE side (if it is not under control of software > > > on PSE side or Midspan PSE is used), so aneg pulses should be send on > > > negative PoE pair? This all is just speculation, I would need to ask > > > some expert or do testing. > > > > > > If this assumption is correct, PHY framework will need to know exact > > > layout of MDI-X setting and/or silent PHY until PSE classification is done. > > > > Ideally, we don't want to define a DT binding, and then find it is > > wrong for 1000BaseT and above and we need to change it. > > > > So, either somebody needs to understand 1000BaseT and can say the > > proposed binding works, or we explicitly document the binding is > > limited to 10BaseT and 100BaseT. > > I asked the internet and found the answer: Some PSE/PD implementations > are not compatible with 1000BaseT. > > See Figure 33–4—10BASE-T/100BASE-TX Endpoint PSE location overview. > Alternative B show a variant where power is injected directly to pairs > without using magnetics as it is done for Alternative A (phantom > delivery - over magnetics). > > I assume, the reasoning for this kind of design is simple - price. > Otherwise magnetics will have special requirements: > https://www.coilcraft.com/de-de/edu/series/magnetics-for-power-over-ethernet/ > > So, we have following variants of 2 pairs PoE: > +---------+---------------+-------------------+---------------------+--------------------+ > | Variant | Alternative | Polarity | Power Feeding Type | Compatibility with | > | | (a/b) | (Direct/Reverse) | (Direct/Phantom) | 1000BaseT | > +=========+===============+===================+=====================+====================+ > | 1 | a | Direct | Phantom | Yes | > +---------+---------------+-------------------+---------------------+--------------------+ > | 2 | a | Reverse | Phantom | Yes | > +---------+---------------+-------------------+---------------------+--------------------+ > | 3 | b | Direct | Phantom | Yes | > +---------+---------------+-------------------+---------------------+--------------------+ > | 4 | b | Reverse | Phantom | Yes | > +---------+---------------+-------------------+---------------------+--------------------+ > | 5 | b | Direct | Direct | No | > +---------+---------------+-------------------+---------------------+--------------------+ > | 6 | b | Reverse | Direct | No | > +---------+---------------+-------------------+---------------------+--------------------+ > > An advanced PSE may implement range of different variants direct in the PSE > controller or with additional ICs in the PSE PI. The same is about PD. > > Let's take as example PD-IM-7608M eval board: > https://www.microchip.com/en-us/development-tool/PD-IM-7608M > > According to the schematics: > https://ww1.microchip.com/downloads/en/DeviceDoc/PD-IM-7608M.zip > It supports only Variant 5 - Alternative B, with only one polarity, > and direct feeding without magnetics. > > The simple PD may support only one variant: > https://community.fs.com/article/troubleshooting-poe-errors.html > " the power modes of PSE and PD are other factors that may cause PoE > faults. There are three PoE modes: Alternative A, alternative B, and > 4-pair delivery. If a PD only supports PoE mode B power delivery, while > a PoE switch is based on Alternative A, as a result, the PD and PoE > switch can not work together." > > For this case, it will be good if systems knows supported modes, so user > can get this information directly. For example with ethtool > > -- > 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 |
On Fri, 16 Feb 2024 08:47:14 +0100 Oleksij Rempel <o.rempel@pengutronix.de> wrote: > > > > So, either somebody needs to understand 1000BaseT and can say the > > proposed binding works, or we explicitly document the binding is > > limited to 10BaseT and 100BaseT. > > I asked the internet and found the answer: Some PSE/PD implementations > are not compatible with 1000BaseT. > > See Figure 33–4—10BASE-T/100BASE-TX Endpoint PSE location overview. > Alternative B show a variant where power is injected directly to pairs > without using magnetics as it is done for Alternative A (phantom > delivery - over magnetics). > > So, we have following variants of 2 pairs PoE: > +---------+---------------+-------------------+---------------------+--------------------+ > | Variant | Alternative | Polarity | Power Feeding Type | > Compatibility with | | | (a/b) | (Direct/Reverse) | > (Direct/Phantom) | 1000BaseT | > +=========+===============+===================+=====================+====================+ > | 1 | a | Direct | Phantom | Yes > | > +---------+---------------+-------------------+---------------------+--------------------+ > | 2 | a | Reverse | Phantom | Yes > | > +---------+---------------+-------------------+---------------------+--------------------+ > | 3 | b | Direct | Phantom | Yes > | > +---------+---------------+-------------------+---------------------+--------------------+ > | 4 | b | Reverse | Phantom | Yes > | > +---------+---------------+-------------------+---------------------+--------------------+ > | 5 | b | Direct | Direct | No > | > +---------+---------------+-------------------+---------------------+--------------------+ > | 6 | b | Reverse | Direct | No > | > +---------+---------------+-------------------+---------------------+--------------------+ Maybe we could remove the polarity column on this table as it does not bring more information. It is also already explained on the PI pinout alternatives table. Also we should document that a 4pairs PSE supporting only 10/100BaseT (which mean no magnetics on pinout AlternativeB) may not be compatible with a 4pairs 1GBaseT PD. > For this case, it will be good if systems knows supported modes, so user > can get this information directly. For example with ethtool Yes. Regards,
On Mon, Feb 19, 2024 at 03:31:06PM +0100, Köry Maincent wrote: > On Fri, 16 Feb 2024 08:47:14 +0100 > Oleksij Rempel <o.rempel@pengutronix.de> wrote: > > > > > > So, either somebody needs to understand 1000BaseT and can say the > > > proposed binding works, or we explicitly document the binding is > > > limited to 10BaseT and 100BaseT. > > > > I asked the internet and found the answer: Some PSE/PD implementations > > are not compatible with 1000BaseT. > > > > See Figure 33–4—10BASE-T/100BASE-TX Endpoint PSE location overview. > > Alternative B show a variant where power is injected directly to pairs > > without using magnetics as it is done for Alternative A (phantom > > delivery - over magnetics). > > > > So, we have following variants of 2 pairs PoE: > > +---------+---------------+-------------------+---------------------+--------------------+ > > | Variant | Alternative | Polarity | Power Feeding Type | > > Compatibility with | | | (a/b) | (Direct/Reverse) | > > (Direct/Phantom) | 1000BaseT | > > +=========+===============+===================+=====================+====================+ > > | 1 | a | Direct | Phantom | Yes > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > | 2 | a | Reverse | Phantom | Yes > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > | 3 | b | Direct | Phantom | Yes > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > | 4 | b | Reverse | Phantom | Yes > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > | 5 | b | Direct | Direct | No > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > | 6 | b | Reverse | Direct | No > > | > > +---------+---------------+-------------------+---------------------+--------------------+ > > Maybe we could remove the polarity column on this table as it does not bring > more information. It is also already explained on the PI pinout alternatives > table. Ack. I'm still not sure if "Phantom" is correct description. > > Also we should document that a 4pairs PSE supporting only 10/100BaseT (which > mean no magnetics on pinout AlternativeB) may not be compatible with a 4pairs > 1GBaseT PD. Ack. s/may not/is not/ :) and 4pairs PSE is not always compatible with PoE4 as well. I assume this kind of knowledge we will get from PSE driver. Regards, Oleksij
diff --git a/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml new file mode 100644 index 000000000000..57ba5365157c --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml @@ -0,0 +1,157 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip PD692x0 Power Sourcing Equipment controller + +maintainers: + - Kory Maincent <kory.maincent@bootlin.com> + +allOf: + - $ref: pse-controller.yaml# + +properties: + compatible: + enum: + - microchip,pd69200 + - microchip,pd69210 + - microchip,pd69220 + + reg: + maxItems: 1 + + managers: + $ref: "#/$defs/managers" + description: + List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager + have 4 or 8 physical ports according to the chip version. No need to + specify the SPI chip select as it is automatically detected by the + PD692x0 PSE controller. The PSE managers have to be described from + the lowest chip select to the greatest one, which is the detection + behavior of the PD692x0 PSE controller. The PD692x0 support up to + 12 PSE managers which can expose up to 96 physical ports. All + physical ports available on a manager have to be described in the + incremental order even if they are not used. + +required: + - compatible + - reg + - pse_pis + +$defs: + manager: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + reg: + maxItems: 1 + + patternProperties: + '^port@[0-7]$': + type: object + required: + - reg + + required: + - reg + + managers: + type: object + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^manager@0[0-9]|1[0-2]$": + $ref: "#/$defs/manager" + + required: + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-pse@3c { + compatible = "microchip,pd69200"; + reg = <0x3c>; + + managers { + #address-cells = <1>; + #size-cells = <0>; + + manager@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + phys0: port@0 { + reg = <0>; + }; + + phys1: port@1 { + reg = <1>; + }; + + phys2: port@2 { + reg = <2>; + }; + + phys3: port@3 { + reg = <3>; + }; + }; + + manager@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + phys4: port@0 { + reg = <0>; + }; + + phys5: port@1 { + reg = <1>; + }; + + phys6: port@2 { + reg = <2>; + }; + + phys7: port@3 { + reg = <3>; + }; + }; + }; + + 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>; + }; + }; + }; + };