Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp557679rdb; Thu, 15 Feb 2024 08:12:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSp+iFt2nAJ5Og2tZJ/TsC2n1SkQmTR+AV0nKAXMKOX8GWxW1PkwyJMqkgNzK82Tn0UBNPGu2PYKpVQurDwwM8rH0K7CpwgWwQYM1MoQ== X-Google-Smtp-Source: AGHT+IGqtMYSRL97XGLEMmgZvLPdX1LmnfZJFq5flghBMQsnwqVHmCmC2kn/0mqFQvo3/AuA6baq X-Received: by 2002:a17:902:cf0e:b0:1db:a164:3e50 with SMTP id i14-20020a170902cf0e00b001dba1643e50mr77130plg.40.1708013546507; Thu, 15 Feb 2024 08:12:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708013546; cv=pass; d=google.com; s=arc-20160816; b=gA6OPLcAllA377jWDZHvN08ltBs/2eTysLbkbC4tyY9FSoBcv1EwxsFXyx2ae0cMkU 6zGe6WroMZJH8X9L09+euHncl5fVXnmOlUlhAKwqrlwYEgE06tezSgya7vn3/5bBwps8 0fKervWTYymKNGsXnwKduY5n8qoO0YWgQUF4IM0F1JGAEeWIfbVN6smhc3GlED7cpRV8 VCXHHsazO2R0eI3DBJGpaSMB+tEnTIFFPsxHJODmXbQveC05nDhu023mEA5GY0KsELmZ v/kvcMVmB4wd1KGO2tGGZZqUmvIIwpCMz7LsurpgwGJf65JD1KVRGxSYk4V+qHC/sInI VN/Q== 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=NHfOXmGaUCWGvL2tmiJ7L4fx51c194weRPAzEE++XMs=; fh=7S+YztZcCxZKIOm2mMOwIzm96FjMcKQ7LjGMKaNLlnQ=; b=Eep1jX90tR53vAhbVKserfVa9IvKOwXyWFSImH0IFYuSFTfFjdJ5QG7HzzMQn6xXgI iva3W+YJB0qJoVRmQwoKpcQB/JKkuGW7N2Ms5EbzPHsaMpz+j0pwU3GHuRVBft8TVXwR 0cUPZbyOkXP50GpAMfoJXqp5zzsU78xmeH93Tl9dmtxH5ZC1vY618XuTlu64z5WziStu XCpcRiGgWvh4hUT6E0un3D/AOlu16GAkBbSnuw5aQZIAi4Fd1bgzlg8hqLmR0seYLaub JdAyc8827LfSOEvbZbYXLHi9M71L61ZC6VMuy2Ep6/rV7NpN1VfEK6tNkXMZNasvDnas vMcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=T7feUJSj; 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-67274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k23-20020a6568d7000000b005dc98dad590si1360274pgt.68.2024.02.15.08.12.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:12:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67274-linux.lists.archive=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=T7feUJSj; 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-67274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67274-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 04974283CF3 for ; Thu, 15 Feb 2024 16:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FB0913B299; Thu, 15 Feb 2024 16:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="T7feUJSj" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 2697513A882; Thu, 15 Feb 2024 16:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013022; cv=none; b=r63QWj/cq8SIyo52J7PZBm2qRBqtzDuPI3K19c6Re0zs8wa2imMZze+w5iAT1GlnGXJxS8wO8R2fJaN78Zx6XhAIOkLaa4e+yCazpsU9ShI3yjZhGhyHJwrgqcHU7yKlvyAKwmmiceRIxDxVfg7ose/9IA9Dh2bXMpzPcDdj3zE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708013022; c=relaxed/simple; bh=Jzpc1GKKoqjXi9b6bn2FrwbTlzztHUETCpzTsZPNZBY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=P3UBZGs4Su8kGWTUoS0e8ETuNGtBU5OWGRuAnT2xchrQPA5dgQKF0aIsOtUMjhBPLPQ0Ak/VQEWtFIniMXhxeZwbTdd49/p3ebv1P8/8s/7w0Kx2HfdNQCphMz0Itwv2lRPV1pjZ9nMi83hHZeKwOBfP+KhyCMM2lDUARWkyBlY= 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=T7feUJSj; arc=none smtp.client-ip=217.70.183.200 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 5321920012; Thu, 15 Feb 2024 16:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708013018; 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=NHfOXmGaUCWGvL2tmiJ7L4fx51c194weRPAzEE++XMs=; b=T7feUJSjQB2S3OypsCjoQf14hxPed/lww184A28E/zZk5ZHdvRIthgak1+/gmzfjKF32H9 iO5PF+2L+1Mf+jQ0yTAtoQJgIze9Xmv14JEkMwckkHjdd6l9QxXypCj2pcEQ1khgcvV3wq xlOQWQ7kKCHYidStI1kSTrPbHue+FgdK2vrIGUlAqtP8cXj5A4SylCTSJvi9iVfDBsTUBq ica3U9eodnTDa/DVCU3s89nka+qPStDUnm3Ih9rWZrb6eS3+cXXfz8QtWMRWEHsb0zMNIV 4mc1+V8X1gaPcm6D6myZANCfEQoXlH5V+7S3rhEa+vqcKq5oo3gJle3FKEISHw== From: Kory Maincent Date: Thu, 15 Feb 2024 17:02:55 +0100 Subject: [PATCH net-next v4 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: <20240215-feature_poe-v4-14-35bb4c23266c@bootlin.com> References: <20240215-feature_poe-v4-0-35bb4c23266c@bootlin.com> In-Reply-To: <20240215-feature_poe-v4-0-35bb4c23266c@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 , Kory Maincent X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com Add the PD692x0 I2C Power Sourcing Equipment controller device tree bindings documentation. This patch is sponsored by Dent Project . Signed-off-by: Kory Maincent --- 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 + +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>; + }; + }; + }; + }; -- 2.25.1