Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2061936lqe; Tue, 9 Apr 2024 08:30:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYrvBIF9oehJZS90kNorlD7CRHaPCeRnByx8xKetx4l4DyKfrPD8KpJeOA3RkAA3iZtqTGYYI360v8s4A/7XyIpU2lNJYbr+gFPgGCdA== X-Google-Smtp-Source: AGHT+IEGN9ElH/WMjm/NnshSSYDy71dRtuS/TVfO8rtISbBZKG28e20n1vkPKcyxBQYVUmigPXJO X-Received: by 2002:a17:906:6bd7:b0:a45:f9c5:3024 with SMTP id t23-20020a1709066bd700b00a45f9c53024mr2497882ejs.11.1712676655082; Tue, 09 Apr 2024 08:30:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712676655; cv=pass; d=google.com; s=arc-20160816; b=xVmLx4ufyXA7Rv/1DXw6kapVyh28OhwqsIx3Hq2wABdayfCxzzL91JUnqgnrEnTGRh CzLGiG6wLfe7CoW5ttJ+byW1Rlas0xM8P3Q10hD6JogYwLhNn9MYksqxSm5/Pr0Rah9n HmDzKgQaDtEJEmuA04yDa3GfQ19r/yqqo4aP4NWHLgDlKHeUtoyshF5Z/R6ffrY1MDkB s5Zvv7rUI2q45Z8CD4R8m+YrieI75aI3dqGhkvt4lDwcq+HLi7ccZ3QGQWg86dquG/Zw jbW3QMeBoIS0jfZKY/wMVPowbbImBHL+JxI0aha+VSrx0RtJwPZ/MaPAQbaAV+Te0Ppf 0sdA== 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=/M7MblF5FojAIwCImILZRFXjF6A2YTa3pBx7P1LIj6g=; fh=57ylmEJf4L+ab5JW9VDoPKBjQbUSU1WR6XAwF32mgs8=; b=W43xbvHicPJQ91PLpQ3sL4ZAFAZtmAQuah2fO4sgG5EsjMs6PQZVpOWPnJWsq/RPNi JT4XXAZ/UcnTDKv9GheMDAACZiUBx/sIUkeRA5/w3ydo3nYaB99De7RnDp0qHEG4k9fL ZYkmH0ClFVFxcO1zqK/O8jcNfomj+vJWcUkHCDiBzGifbindHhPAo+IeDkHnIC7InPMd JI0YEXM0ut/Iz6u9SBXZ56ZRFeqhzCa+rj00lz2dXStBwbRgXAQCD01D+Q4VDjOz+mq3 EkZYebbQl/mFLqT4dAS6Mt8nwvXez0o7Av1oxNpO/cN8SvwDULqhPDwpODimSOLNXG5g XrCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=R1M8lSj6; 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-137171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 25-20020a170906301900b00a51e004de3asi1541678ejz.809.2024.04.09.08.30.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 08:30:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137171-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=R1M8lSj6; 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-137171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137171-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 704B01F2A49E for ; Tue, 9 Apr 2024 15:09:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F66D139D1B; Tue, 9 Apr 2024 15:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="R1M8lSj6" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 EB3FF13959C; Tue, 9 Apr 2024 15:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675080; cv=none; b=aRGLn/PIAQ7r/XMgI2b7l0bdEd04D+djqwjnmenY11eIfL6oCL+PYFTFF1Fqc2+VbRTJabRNcgLGlRL30FD2ga2hsIU+U6NAxwkcLruCv8sVNeKwKGTde8rCQ+cUZWc+BS/LE41Tm4rAdVmsG3Y/fMc5evwuCADabNtMJfUneuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675080; c=relaxed/simple; bh=jr0C6sNwIGJdObduli6FVCaxDeCtBKhG3NSdzuSaMGY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=luqxXpr4udkU+1PRuS7ZqVpwOBZ/FWuyNAE0oD4VjCKG5ZXySnC4jeb73zMOGjZtQ3n1ATgC7yDYPxNqVHw/qQNHpSMYjjocdnmMmpBLiwusws5SmhCjJPEJj3NeAxMBTTyGtY/N+CldFZ9w5QLLCWw6VtNIY+5ptaBoPZZ6eoY= 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=R1M8lSj6; arc=none smtp.client-ip=217.70.183.198 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 0E25CC0007; Tue, 9 Apr 2024 15:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712675076; 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=/M7MblF5FojAIwCImILZRFXjF6A2YTa3pBx7P1LIj6g=; b=R1M8lSj6xkPF5c2NZdsSsoib8nRsYpLGnc82qzknsZdq3nQR5OdxJHWzBVN8GHsnqlz9DO Spr3JocX0l3psWEQ2zOp3rrQ5aUBKqYA9xwiGp1qH9R6nEleGNk4kk1F3+eIM1Cf7zTiqk hz4nRmMxSjIB2/CseedYX+Eja9N9ZK8pKlhpmMeD/2AWGuw5JBa2+9wQcxN4CqMa+YhJ09 LPKdBkltUsLPGozRcPySNiRKdMBB/KewQXYRNO93WNe7KzDumqJcON4WKrcp8C6r1GIkY5 kLYpJP5uTY2woEAc2U3hOXMHLuj0JqQNd5K3Aht0c6FAegD9Eyx7FDXnZ+d7CQ== From: Kory Maincent Date: Tue, 09 Apr 2024 17:04:04 +0200 Subject: [PATCH net-next v7 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240409-feature_poe-v7-14-11e38efd4dee@bootlin.com> References: <20240409-feature_poe-v7-0-11e38efd4dee@bootlin.com> In-Reply-To: <20240409-feature_poe-v7-0-11e38efd4dee@bootlin.com> To: "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 , Oleksij Rempel , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , kernel@pengutronix.de, Maxime Chevallier , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) Add the PD692x0 I2C Power Sourcing Equipment controller device tree bindings documentation. Signed-off-by: Kory Maincent Reviewed-by: Andrew Lunn --- 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. Changes in v5: - Remove defs used only once. - Replace underscore by dash. - Add description. Changes in v7: - Fix nit. - Add vpwr-supply property in the example. - Remove ports references for the manager node. --- .../bindings/net/pse-pd/microchip,pd692x0.yaml | 169 +++++++++++++++++++++ 1 file changed, 169 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..828439398fdf --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/microchip,pd692x0.yaml @@ -0,0 +1,169 @@ +# 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 + +allOf: + - $ref: pse-controller.yaml# + +properties: + compatible: + enum: + - microchip,pd69200 + - microchip,pd69210 + - microchip,pd69220 + + reg: + maxItems: 1 + + managers: + type: object + 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. + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + required: + - "#address-cells" + - "#size-cells" + + patternProperties: + "^manager@0[0-9a-b]$": + type: object + description: + PD69208T4/PD69204T4/PD69208M PSE manager exposing 4 or 8 physical + ports. + + properties: + reg: + description: + Incremental index of the PSE manager starting from 0, ranging + from lowest to highest chip select, up to 11. + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + '^port@[0-7]$': + type: object + required: + - reg + additionalProperties: false + + required: + - reg + - "#address-cells" + - "#size-cells" + +required: + - compatible + - reg + - pse-pis + +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>; + polarity-supported = "MDI", "S"; + vpwr-supply = <&vpwr1>; + }; + pse_pi1: pse-pi@1 { + reg = <1>; + #pse-cells = <0>; + pairset-names = "alternative-a"; + pairsets = <&phys2>; + polarity-supported = "MDI"; + vpwr-supply = <&vpwr2>; + }; + }; + }; + }; -- 2.34.1