From patchwork Tue Feb 27 14:42:58 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: 207251 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2743214dyb; Tue, 27 Feb 2024 06:48:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUe8ZLqBk7EFPHFplK2RNS+XSm6XM+WPiFI9tOdYuuKyWvuFVRYcXt+sfFt74go7hN4Rico85jOlos1iYDOssrw+I7SuA== X-Google-Smtp-Source: AGHT+IGGnQfKGtar/VrkH/UUZGWu4Nm7TF8NteRTtueVEe3oUYNCmCyFg0cIXNXyNVQyhIYOU2wc X-Received: by 2002:a17:906:b15a:b0:a3f:5e8c:8a34 with SMTP id bt26-20020a170906b15a00b00a3f5e8c8a34mr7203988ejb.9.1709045315540; Tue, 27 Feb 2024 06:48:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709045315; cv=pass; d=google.com; s=arc-20160816; b=QnhnhChi2wTjJ8epHZPS35KB/vbpS7UACTv21evSFH7nYoZWtv581si0+/tTcjSukq H2D/OgJYiQ/FIp6EjEiK16nC9vl0EqSurrpkttC+Tm9wbYQRI9zk3j6TqvyXHkGkHuzn UhyDOxZECyWqEQqs27tYNQ8Zp4tpgixwM7IJyD/TLs/zXdMrehKLudUdCbYi3G1rYId/ SfJ0npgZc7dKmZrkowcbIy6DcX3eEMvdq9WzbXmi4IVnnG6qUG5hwARRmhyvi6g7sobN 4cIGTdiQL80wbNxF/RoaMtWNLgwG3nF+1w+9A10UMN+zbLCG1fSqIFDQSOT+R5rc0+2c 1Sqw== 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=zSZ/ILuosyRRQ7EsgLHagDHxoowXRN1aOIVGYsWym7U=; fh=7S+YztZcCxZKIOm2mMOwIzm96FjMcKQ7LjGMKaNLlnQ=; b=uuoBTBkh2Q6av9xhEamaWXPqW1NDH3fwrRlh84DlNHM2QWfzWpp08GpVN4ZGLOcR9/ +BBPSJQIhN5vKYfgovl/dyLKlQ9U5FYCoZ1tLPX9GQbiOQpQ6xcnIsCLnNoS4MeI//kG mPOJedbMfZ/RNij0g4xqLyzweNOdLe6Plp1ioqKSTdVCRSJSo/rk7d0vHR1KZZ/0JGLY Cql3YIo23rhpwV4Noi1B8MV2lmvJflZsa1ZN7GTNGWJhMKpQ7PxmEJF4P9nG9Imyw+qa AwmSQGqex8T2OBbL3gS2xDNoWSk6TEscZxSen7kzmOD0hkUkNOXzAPeTm0eS0VmMif99 akYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BmK2eHwg; 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-83426-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83426-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cm8-20020a170906f58800b00a3ec6800c31si828832ejd.998.2024.02.27.06.48.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:48:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83426-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BmK2eHwg; 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-83426-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83426-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2A84A1F2454F for ; Tue, 27 Feb 2024 14:48:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CEEA157E83; Tue, 27 Feb 2024 14:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BmK2eHwg" 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 D5B1014F974; Tue, 27 Feb 2024 14:43:27 +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=1709045010; cv=none; b=WNoudb5KLZFdoFAeXY6e+2vO4aRvq8W2iW/2xKgunNpwm5FZtF/xR+mYnh32f3w5oJtpEB8RYfjVeiRSfTyjheKphOYzTJBBQprlMA/DQkpcGGdRQAvPvkLCpMTK3T0+PkwJ6t69fyTV2ifKeve7VKzhKla8H9EaTN9F5XL7H1Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045010; c=relaxed/simple; bh=P9ba8VS4YVS2ewe5zfVwvyvT4c4G8yVngF9UH/nnnDI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nSKNQlkTMi3k/5C20qWxjfpvO/b4mDPzeD5Xd7xsMCxyw6P5g3uYXLi6s0gt91ByO71Ypk5xXpQXzSf5pLrwGlXzsi54y6k9x00GERTEsRKurn6P2+UXAEwHBnCH3q57RRcycoqc00kgWjcryR9jB3cK8y/m2PKsrNPSDhBebRQ= 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=BmK2eHwg; 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 03E9820002; Tue, 27 Feb 2024 14:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709045006; 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=zSZ/ILuosyRRQ7EsgLHagDHxoowXRN1aOIVGYsWym7U=; b=BmK2eHwgwWYSSkQKX5qGjt7xhy8AtHSl2xhI8C70WtUH2rhMxXh2H0tU5YnEVZ6wv7O8vn Sv5B+gXPZhONm/1PZzUInWdlQYrIRsODXNiPb26K+V6Cpk8V3krhJeb0c3erBH0ct7Oc1r FV89lTZXFzYygxUg1EfQKicOGMqTGJ+fM+8fHfESxeHL4lT1cJv37Z3e8HIN3ef0oJz7IT 1f4ILbV9VSyW7LKY7n5NJLmRTwJegNftkX2eRRCevt25LEWckmL4bPfqFWIg5KtyCpEkO/ XDlEhZrJkSG5V47w0LgbnBpOLFZX6u1JOTzPAsXWgJaA6KQhsWM+/g6XW/eedg== From: Kory Maincent Date: Tue, 27 Feb 2024 15:42:58 +0100 Subject: [PATCH net-next v5 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: <20240227-feature_poe-v5-16-28f0aa48246d@bootlin.com> References: <20240227-feature_poe-v5-0-28f0aa48246d@bootlin.com> In-Reply-To: <20240227-feature_poe-v5-0-28f0aa48246d@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: 1792063900604317687 X-GMAIL-MSGID: 1792063900604317687 Add the TPS23881 I2C Power Sourcing Equipment controller device tree bindings documentation. This patch is sponsored by Dent Project . Signed-off-by: Kory Maincent --- Change in v3: - New patch. Change in v4: - Rename the file to ti,tps23881 as it support only this version of the PSE controller. --- .../bindings/net/pse-pd/ti,tps23881.yaml | 93 ++++++++++++++++++++++ 1 file changed, 93 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..b8891d109e51 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml @@ -0,0 +1,93 @@ +# 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"; + }; + + pse_pi1: pse-pi@1 { + reg = <1>; + #pse-cells = <0>; + pairset-names = "alternative-a"; + pairsets = <&phys2>; + polarity-supported = "MDI"; + }; + }; + }; + };