From patchwork Thu Feb 8 13:08:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 198400 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp159553dyd; Thu, 8 Feb 2024 05:19:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZSdlS5YZjidgKouFaGOGMDhJhnGzh0qV+ZV/96HJMfNKXNY8BAgtd328Om8YH+J9Vs7iCsC9jvKBdnrIQDv+2UD8G6w== X-Google-Smtp-Source: AGHT+IH7WITAkeGkyaPVMefckVuLk8HADd9SvdteGgzeILsV04cJkrOGEqMf4r+C9WLwWBguQnZu X-Received: by 2002:a05:6a21:3a44:b0:19e:a3da:7199 with SMTP id zu4-20020a056a213a4400b0019ea3da7199mr5960747pzb.57.1707398350223; Thu, 08 Feb 2024 05:19:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707398350; cv=pass; d=google.com; s=arc-20160816; b=oSIJ7RqqKWmkjx2wdRju5HhR7Jfa4BHha2fyfBdv/l0g+bTNfs5Gi2FrA2W9sMqeA7 m8kaQeR4ZpZmHlUW+xQvVmEx8cotCM3xZ3NqeqVXdIOsTwnm+QYKn83ZpaBwWAu7X2Gh +bmpsu0X9idcw5GZZ5hSnqGvoffIy8Vg+DwtpURwR4sVIWKmvGe6kUX7MrE2j2NmncgQ 1Kt5yfl8nTNfXec2dlFWAeOMpRaLBXllLJs5zFjIMarQ5U8yXi45Ny1zyo0a2e5LNjCI LOLPaWjugyil/vVgFjNKpGobaalalkx/z8jeTd3phLFHdh5vZnOHoYO3ZzSXVQcDFDud /nmQ== 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=FXFwJT19YJDvj0g5CBxFwDiBaTGPiB8UaSvwGPQSBPo=; fh=i61Nw4QTn2yNzPrIal9BccC7dxB5wdK1sk5eaeqKh20=; b=GH8wraeFhGmDmfxY/5egKUHlXK7AKyavIdEdNIHp7+wp3PChLWTWa07URTB5s0+Ivw 6wi7jam3sAUU51Y6Uis+Qeeog8u1exRjjZQjhADeHb9xstpvOXFZdWD+bmS4ptc7t9UE 9jbKEMIeIvphgAdq7kVXr7IoCTWl2BxrgQO1G6OSP+r3n5jBiQZf9MsUUoo76ezVaXTB fuaBwpX9wuC2E4Q9vdFm5WdBnWZE2coGG4+8nYU+6oZRbOE3JsTpNFZKqxNT86eZJaHF K5sA7H8jtdjni1p6eS4dALAj3xtA29Q4U81XG0y60iRvZCqsgfAJSi7KayEB6ZO/BCvi Hqlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="fCbJ9/yq"; 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-58127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58127-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCVDv96QXT1pGGP3lFvic3VD2P1Vs34Q4B0g9ORjULFKIhdrbOpmMfpJ/kwUCuyiQkCIDYTUlu9BI9laQ4pye/5syfumGg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b18-20020a170903229200b001d94c1d01besi4406936plh.276.2024.02.08.05.19.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:19:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="fCbJ9/yq"; 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-58127-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58127-ouuuleilei=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 5AAEB28F8EE for ; Thu, 8 Feb 2024 13:17:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DC79127B74; Thu, 8 Feb 2024 13:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fCbJ9/yq" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 E9AB582D7E; Thu, 8 Feb 2024 13:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397816; cv=none; b=S1X8FmKzwEMN1r4oKr4CnIXvD/wYkD6C6/5wAxDp18hpAsRA+w2sqJ52kruF0UuqqW3vTYzZgxZKUDC4IPAwu1X/oXD9V2zIHfYw5ErrPN/5bMA1JK7YxN5ggcA2MUf8bl8CaaRETQHlyfBbt0mC4BFamjPpSUZ6dKahBBiQpWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707397816; c=relaxed/simple; bh=kmr1Nd1bmbLLH9eIZCBhG4wGgiHV97Oa9Fg57Loagdk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IG1f5LznbY2dsABNGsYzTuRpVVgBSv92Cij2aT0WULADjGcFff3e/u7YtdwclVWRP2i/4DaKJAeyu/vwriDe/HqSsllGznK31+wCssuJWOCbGjulTMM5yrNIaor7mahGhxWUX43mulcOW99NDtqKvSJ8FD1IOOumPv4NbhZ9lp8= 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=fCbJ9/yq; arc=none smtp.client-ip=217.70.183.201 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 28A871BF215; Thu, 8 Feb 2024 13:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707397811; 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=FXFwJT19YJDvj0g5CBxFwDiBaTGPiB8UaSvwGPQSBPo=; b=fCbJ9/yq7WPMT1Oi6AEyKzJvKCvZ8Y+5ecxgtLRvj7WUAiOr2TYEyV6OvC4p4jN2I8RRh/ ve3eaTu1r3Iu5iN9TC7tiU4v/9GS/hEShnV+lgEpNTQR0mx4KeN2vJEtiv9sDwSRSLnJIH d7BRWa9mnb195luUVu8LF8Z/hdXlJuZAp3VKyxd9b6Yx6IqEBQa9qmnywhLDBPddpbCg2d Bd8oHz2Fi3Q/VoeKKVWoYUKyNIghl3/EZo006BJzcgazPWWuLk4Lk5xDNJBqrhnqghDBdT 0pSWdK7Q+aDS1YT/iahyplDO3DHJq8vfzz21nHhLkR80tWLKXKx9T3KJz/fj6Q== From: Kory Maincent Date: Thu, 08 Feb 2024 14:08:53 +0100 Subject: [PATCH net-next v3 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 Message-Id: <20240208-feature_poe-v3-16-531d2674469e@bootlin.com> References: <20240208-feature_poe-v3-0-531d2674469e@bootlin.com> In-Reply-To: <20240208-feature_poe-v3-0-531d2674469e@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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790336932360732232 X-GMAIL-MSGID: 1790336932360732232 Add the TPS23881 I2C Power Sourcing Equipment controller device tree bindings documentation. Sponsored-by: Dent Project Signed-off-by: Kory Maincent --- Change in v3: - New patch. --- .../bindings/net/pse-pd/ti,tps2388x.yaml | 112 +++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps2388x.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps2388x.yaml new file mode 100644 index 000000000000..ccd1a80befa5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps2388x.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/ti,tps2388x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TPS2388x Power Sourcing Equipment controller + +maintainers: + - Kory Maincent + +allOf: + - $ref: pse-controller.yaml# + +properties: + compatible: + enum: + - ti,tps23880 + - 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,tps2388x"; + reg = <0x20>; + + channels { + #address-cells = <1>; + #size-cells = <0>; + + phys0: channel@0 { + reg = <0>; + }; + + phys1: channel@1 { + reg = <1>; + }; + + phys2: channel@2 { + reg = <2>; + }; + + phys3: channel@3 { + reg = <3>; + }; + + phys4: channel@4 { + reg = <4>; + }; + + phys5: channel@5 { + reg = <5>; + }; + + phys6: channel@6 { + reg = <6>; + }; + + phys7: channel@7 { + reg = <7>; + }; + }; + + 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>; + }; + }; + }; + };