Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp958686lqp; Sun, 14 Apr 2024 07:28:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgM0fGEqSRXPWI5UeABTToQvbsg6yKJtF42AW5txrcCA9p5+mK05fceCPgtCtR+KJ67KlZ/MqJKoUArAWbpmlHLm+cVRJvKi53N75FBQ== X-Google-Smtp-Source: AGHT+IFYOkhxV6UUWcPh7hgNyBo+dlq/b+sybLcT6eeIMHgF3gmz2ieCwZEC48IBTIyLxhz2H8eT X-Received: by 2002:a0c:eb03:0:b0:69b:5740:496e with SMTP id j3-20020a0ceb03000000b0069b5740496emr11813742qvp.32.1713104903623; Sun, 14 Apr 2024 07:28:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713104903; cv=pass; d=google.com; s=arc-20160816; b=oB77oscdAYh05Vb+gGMdVneYlOjDjw7YLuNyj3+Vrn4Vnf/+/LFcY+se+Ks/Eh/sXs v56j7O6UNVEJx7alrX0EMyx2E8yuVZbzTcabLIGRna5Q8m+RFh/FHKVYAtPqu9Wodiig MqH4c4fYE/dODvI2asmfVrafHYDlaYlV9J5vHgvXtfp7Qgr8XW6UdhlP08IQGstQQVnZ 8NUY5GPSLmUBtoYPcdrKuf6YF4A/BuNKEEmT+r9GTI/x0+ppYAVKR/2jEOMAllto9f5t moF5png+dvfWIQxVem97SyCaQV+De1DfSvthD48S4uo1iQKh9F0deFinCJniZsEmOUNi 8fRQ== 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=Z9570PIByLTohnxFL2DuYK+rFm412uwcSfs1u3hj/ts=; fh=57ylmEJf4L+ab5JW9VDoPKBjQbUSU1WR6XAwF32mgs8=; b=Wmcy4iBi6VCs13WDOZy2eBKvCkBLuztvLZLrtCqLfEjw/a6WmGEzWkD3AloZ7LpRMb gWuVWah1RfAaz6I70ARaog1aFqh5gSjys0bcvRpqs3UAWpR0l8aCNV2iYYaaECUefXwV S2e6aYhaDk811qSHDIYKsiBxuC0QkLskTxrBMRTpb3Q+4sUxEgW8INPeRl5FHWVFEAzB Bbl2raG0r7wvvrN9bvPco6vKqUDMVRX8OEqBDYWsEnejyrc/BhuTnlDEDJYAd4iIk8xg +RZjhre3tG+AttPJtgZytOnQeaSCqyqWDecZe3tlJ+Wa3pFj4Wz9pB1cLG5muKGDgfOF nA7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=peDcyZz9; 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-144207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv6-20020ad45ce6000000b0069b4cc97811si8770586qvb.165.2024.04.14.07.28.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 07:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=peDcyZz9; 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-144207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144207-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5AEAA1C20AEE for ; Sun, 14 Apr 2024 14:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E60166E5FD; Sun, 14 Apr 2024 14:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="peDcyZz9" 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 D2E5269D2B; Sun, 14 Apr 2024 14:24:29 +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=1713104672; cv=none; b=K/C3MjUeKGZ3rcORBuY935n0+Q38tAOQQsVjVlR9QNfvBS3K2bWvc1EsMhesSwM51sgzsrtzukWSbRzJapZJ9y/HqUwj06RNX8GxGTbC2x2e66cy3gY8WdkB4mxvWUdNoRP11xeqeU3GHB1OpxbPxYbDBmu/hc1f0dPQ4WY6neU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713104672; c=relaxed/simple; bh=ZOgujZJeGStPMm3IlJW187ZYbZDubo00HsvPHLTtRrk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RCA2f0r0GQK6cqUGuj6Vth/+pXHh3a2tBYpWJ8fzgW3DDZ8xOgqahT0yF6JxWJZbKXBSE4I1LZvESq1tsLPUQFEs0trHshvn8Gakr6ic5dNKaozt9oolO4Wjkvu6kBRIUcziGbGldawrQMxPN0qM6JoXDbzc+H/UlqYJ1wlrxIE= 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=peDcyZz9; 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 CE944C0003; Sun, 14 Apr 2024 14:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713104668; 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=Z9570PIByLTohnxFL2DuYK+rFm412uwcSfs1u3hj/ts=; b=peDcyZz9X0e/G+dTbEecKbvw5x3vk3aq1l7OS/exZMGLg3MmauxbzQ/2zfG9rfxqThJb2T VmC94aF3PtT3sTLiDnmApW8pGk7rNn/ir0icDQyksTdykRb/jv/isfqlsMcBWJ5lxkhBXJ E7otCiH+AmbSl60qKCQHLARVCoPqt4JKTlV2pK90j8/05EHkkTfRIqWTZCQD9hWh8nMCM4 T5vsEVEI9jmnel0558OjMO214t/gWgoTVJSzILM0qq60VJlFjuIZwzvK9fdRKjIuevDNHK Se9xXfmSzpW4WwIaWWKG3OwuQOm7fIMC3J2UCKa3JCMPJMw5FjI+8Yiwy50gdw== From: Kory Maincent Date: Sun, 14 Apr 2024 16:22:05 +0200 Subject: [PATCH net-next v8 16/17] dt-bindings: net: pse-pd: Add bindings for TPS23881 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-16-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 TPS23881 I2C Power Sourcing Equipment controller device tree bindings documentation. Signed-off-by: Kory Maincent Reviewed-by: Andrew Lunn --- Change in v3: - New patch. Change in v4: - Rename the file to ti,tps23881 as it support only this version of the PSE controller. Change in v7: - Add vpwr-supply property in the example. --- .../bindings/net/pse-pd/ti,tps23881.yaml | 95 ++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml new file mode 100644 index 000000000000..4147adb11e10 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/ti,tps23881.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TPS23881 Power Sourcing Equipment controller + +maintainers: + - Kory Maincent + +allOf: + - $ref: pse-controller.yaml# + +properties: + compatible: + enum: + - ti,tps23881 + + reg: + maxItems: 1 + + '#pse-cells': + const: 1 + + channels: + description: each set of 8 ports can be assigned to one physical + channels or two for PoE4. This parameter describes the configuration + of the ports conversion matrix that establishes relationship between + the logical ports and the physical channels. + type: object + + patternProperties: + '^channel@[0-7]$': + type: object + required: + - reg + +unevaluatedProperties: false + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-pse@20 { + compatible = "ti,tps23881"; + reg = <0x20>; + + channels { + #address-cells = <1>; + #size-cells = <0>; + + phys0: channel@0 { + reg = <0>; + }; + + phys1: channel@1 { + reg = <1>; + }; + + phys2: channel@2 { + reg = <2>; + }; + }; + + 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