Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2048031lqe; Tue, 9 Apr 2024 08:10:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4PFmCQdqjqCbcWRkVfbkBsNTpW1J6C0mKIH+6qpp/RNwr+Rpxod7dovz5b05aLwhknL2E7JPpCNVNKmUd2XLqfQ8y2YGkZINMkLTcEQ== X-Google-Smtp-Source: AGHT+IHZHOSsK98W++Nw2Wh6bzH0gHsvUW8NRFpHcC5NqHUJHwuwMgcZR/v+QxOFvRYD40ETtydm X-Received: by 2002:a05:620a:4d14:b0:78d:6b3d:9a34 with SMTP id wa20-20020a05620a4d1400b0078d6b3d9a34mr3779096qkn.43.1712675407551; Tue, 09 Apr 2024 08:10:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712675407; cv=pass; d=google.com; s=arc-20160816; b=TlY+tNXgK0rNRM70VEqLV3Fgc7HyEBKnTOyijUBMdpPlq1I2AuP6rp+vsxIoYnNMmm 6rjZ+0jM2nGVxDhUTcs+Vy5KWDg4xaXr6VDaNztBBIA9GV6nV7S6X1HFA0B3BOr50SiQ 6kMS5FvWI7dInqcZva9uXBaF/Q2e1b5lYDUo1KCYdb1pH1RFiczecLZmLp5bx+WqYhwS 78UE7fTlLPkfUdBPLXdM/oin4XeYMuTIyLxc3B2OVetIZTSPl06gGOwTNoOykdLk093U j1hZbgdSxi9db5lJtYqAbZG7fRLtXCLw/MzAFZ0KxefQiIgd4sm/CgHfxfl7D053PDnX xZZg== 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=CPHoLgoCYWNPRjYQDjhqdpSovLbTOdXuoILN9hCr0pFRrS6sj+f6v3KeXqQyZUC1U9 EsArVARWLIXKoeZxM5qYBmm1vc7gm9KhSMpxGz2XFw4SWzHRM+dsrg2mcpVW7EpwxfHN ZZvpf+9bvXIkw91DsN1K9P/mDwJcYihXsWu+BubU7yy2+k7J+9ZxuutALPHyK6C+QXyN Jlqy9K3joAdE+ZzNzYhDM38w9Y4irNqrbDPegzVdF8YRs5jFN3oL45I4EwzgSQ+2KUdj nUFKMVRF1YFc34TmtuITQTJ5uTb5tXLuxGkFThS4TRrWxLALzJJgfzKQkmBgE95DzgHz khSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dugHK1iT; 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-137173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137173-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. [147.75.199.223]) by mx.google.com with ESMTPS id ow16-20020a05620a821000b0078a176d6a36si10231248qkn.83.2024.04.09.08.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 08:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dugHK1iT; 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-137173-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137173-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 554851C22F78 for ; Tue, 9 Apr 2024 15:09:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E09AF13AA54; Tue, 9 Apr 2024 15:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dugHK1iT" 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 0A8A413A276; Tue, 9 Apr 2024 15:04:40 +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=1712675083; cv=none; b=jYQtm7Cb3yz0451T7LIN2IEl0y1XQTE4Tpj7xVDnG1Pe1dUyZpIK5RM84XOjFuxIh2BoCepXgyAa+Afej1TTxsoUYhnChwlEr6ixmNJ8PghLDhNINs15Usi+rU46LhsA78r5OullrI/vIBvENYbkOkgU+t0TlW80emkNxvjNmhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675083; c=relaxed/simple; bh=ZOgujZJeGStPMm3IlJW187ZYbZDubo00HsvPHLTtRrk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EENreHReflWoF8uJWoZTnr/cdU+Uiqja4G3AKn/IpEkXomXmfDkRZ9ox6qy4E5ExGbezWO0dsmfSFiG2VzJYPWJCEuM5v6wvIfvNujWzzx8kgCDxCagQbS8zzjaf1osmjTC2deb66i6AVHL5w12tHimOp+JFFfPGIZGZdm4x/oU= 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=dugHK1iT; 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 379D8C0010; Tue, 9 Apr 2024 15:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712675079; 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=dugHK1iTn6cV4PbQLIQVfO1WiMxuDJpwmKsU3ftvB/6gA0N2JE8dU8TKkE9V54E7goY+gL J5xpMx9jDvxExYC/C8uB4WNZNAA8kOwhcJ/sd3Gv+VLF2aCZBaOcFbB0FRPXgtbgod3INy VfnABas8DNcxYSw3z1/rRg4CjIdAnbrwzujqSwHAirkGcK7ynroLmW+fUla+iNpVXh6At5 R8d9nSlTY7ss5o77cVHfPYaf3JHD8+WcTvHhpQhMeUIVYaOa9rI78fIxX8jg8gyXUeVB4c VwpcZuLnADz1RdAPDuOqiMnHs8K+2ZDm7khNlDSlaDBdm3z6juJTpCSIQ4CkCw== From: Kory Maincent Date: Tue, 09 Apr 2024 17:04:06 +0200 Subject: [PATCH net-next v7 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: <20240409-feature_poe-v7-16-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 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