Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp958451lqp; Sun, 14 Apr 2024 07:27:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXy27dROVas1MrKLO8BBKPkontT73/biv+dFgDsBBihiYpFwB7Myz1XD1NIiD3xWU2GjZpOOBuVXr4bCMlsXp3giuDlzJkZRJ7PwNhwg== X-Google-Smtp-Source: AGHT+IHHGMZrhzuMguBS2eTu0KBvbmKd4aaSFw+jFCyKH4IN9i6MqQgSz+aWg0x82RKqzLbSONk4 X-Received: by 2002:a17:902:ea12:b0:1e3:dfdc:6972 with SMTP id s18-20020a170902ea1200b001e3dfdc6972mr10565093plg.9.1713104864644; Sun, 14 Apr 2024 07:27:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713104864; cv=pass; d=google.com; s=arc-20160816; b=DjGqyWswMuqc8dt85fSIuEAIiLYyjxaXFQnGbSgbdBnJf1rnJ8iIZuNwRc9AV1xn3E 5v8LlcDtFTTEasiRQMTSGiklVDP76XEPXdUc5Gu1PWp+TkIi5B4GFT/kKiOCUFZ0n9y5 iP3ndP03O/S9YMkeLtsD0MFf7h4ZB11Mfa32p24aQdwJIbJhpNYDbCCn0HFM3lhQZcR+ D83XAZdhXXLIvtH9szKCNMHW/GgsCefv3jxHQXF2zV5ebJezVNOcOlU/wkJfpmOXXoLN aAiyIVqpnJl7PGVwj0+QyuGYqpWnrLvvqHqMHw2q6ypPkNOzMkYqkMGRAykKHhja8IK2 31jA== 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=L9hX1BCOQKIV3YSF6ssyFtNKmLavs6REnvcUiW0GTwRJnCyswG0FrZeWwQXfkSVURG a+V1vLfMo4UVm58bo746nSi4xQNwdIeI0Ib5tZKQM0Rklmv4zqxGlGfpOqY+wrEfXIOu yLd3Gg8q6H50SwqKS5vxiTpPPsXZhI5JH/Qo4zyjfktUvtmH4ouT+HkuH5Vbp4BPmAQb QZvfALFueDsQrqUw9/GwD+F7Aba9LTkX8TjreG52N9BGFlQwuMBVXRiovvWGwG0Mi0iS r+E1t63prSxtZacKffxz46pNMsI3oKYeWC9CQQrGDpGQB2gxi6ijD5ti9lWWEdzgQ+oI v6FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OouyyuxL; 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-144205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i7-20020a170902cf0700b001dd013a3cc2si6785915plg.199.2024.04.14.07.27.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 07:27:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OouyyuxL; 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-144205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144205-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5CCF4B20DDB for ; Sun, 14 Apr 2024 14:27:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA6CC6CDB9; Sun, 14 Apr 2024 14:24:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="OouyyuxL" 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 C1FE656771; Sun, 14 Apr 2024 14:24:10 +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=1713104653; cv=none; b=Mjvqh5NoQ1iK3kqh22cicoG0p5E8jQZFhw3dSWJvpmtZavJ0p7UJprTiGs6aGFtZ0deXhsybWWI11JcBmXbMOnqfUEwaBiGCot9p/lWFmEebjR65xtkT+LOKFXX6BErqYj016HqNZ7fcVVdKOYxS92cZpUSTUfpWd2TsWTgSOk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713104653; c=relaxed/simple; bh=jr0C6sNwIGJdObduli6FVCaxDeCtBKhG3NSdzuSaMGY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E78s57vs4YSFRkTglFhqs3F7M5J8U0mlKOF++qqJ2g9t3pFRM11uDhv/NSEkmDBWSFqAu2xWrBi67uDH+5WtXbnkIHL+v3llWVI83XsRbP/oxgV+4byFHqa1pcHvVxEpW7t/Svu3CHKoc79TDB9CLLUYP5y7hwMiV1S7EmqRGTg= 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=OouyyuxL; 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 1CA0DC0006; Sun, 14 Apr 2024 14:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713104649; 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=OouyyuxLlB7BmRIgJpeX9rEnWWkdS/IyqUkH+PfXC8X/84NzbTPqbL3YvIL6mYlPkukm4R kcD23e4Y1c/lFg/u8DHNUduUzKzV2KF1vQBkZrs/t9Wj02w9/Lm/eZcl/OP4SDUMJBb347 nKZDLNlfbf9ADWgXkDTHZssHxKWYYY397ztRCI83dLXHt4w/ujTnlgX/KqvlACHm4Ri9Nd pwf6L7hE72/A3+vaQUKSzfSFIuSMRGUA9iSyFP1lbD9nWr/naGg2omrA+4A/Dror1iN+gJ bEDhxabB1Z7Ao0e/Jr9YKYW7w9wDLavKnjD+VpdM1mgwZkLpjub6RTwE45dHww== From: Kory Maincent Date: Sun, 14 Apr 2024 16:22:03 +0200 Subject: [PATCH net-next v8 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: <20240414-feature_poe-v8-14-e4bf1e860da5@bootlin.com> References: <20240414-feature_poe-v8-0-e4bf1e860da5@bootlin.com> In-Reply-To: <20240414-feature_poe-v8-0-e4bf1e860da5@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