Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2445895rwb; Mon, 3 Oct 2022 00:12:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xgIpjbmelU90J6HM2EFfGNWtqAPCXe8zK2j0hHNxgdfSkMH6FrGmD6W2Zhitiz9kdnPNM X-Received: by 2002:a17:906:da85:b0:741:40a7:d08d with SMTP id xh5-20020a170906da8500b0074140a7d08dmr14958465ejb.263.1664781171011; Mon, 03 Oct 2022 00:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664781171; cv=none; d=google.com; s=arc-20160816; b=LCF4XWi9iA0ronD6SOjI+TJuffyNckWY4Mdz521fP8MxojMlmYWxWEPMsqB0iz6Vdr gjr/JaqxUoTTpcB4BpIyU/uEAU4SsM6HRpP3N7NcG9GPgOtS4mqSm2OwGa091q0cGDUR hQujtntuh6nRICz1oaWJSdT4TMrTks0BoBpimM8nEBWa3nfo9GYFWnvY2pqz5jcCu/S2 Sn4ktXlmFirnMkEwoMQL3irgqF2LwIWWVVnjrZlEHR/QSRCh1T7pN8b1qEZhvrbnlpJX E0GRRMbPqJ8QlO52DcOgaH5OJ9R+veLDwogmZhbZ7pYWale+WDPI57N4JKoaUXUPvNas /b+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Szfk7ncx1NCkH/ud5R+3mDgAZvikhO5tOl0geW8MO7c=; b=v75uVkPjRfMcrBKFVwEfp/TRJOn4Roy2Z8v1Qxwez3X8M7FEB+orw+DzGscuPmCZYR qjc+Yl4Y9aICfTMFuF8JTUCkteIrGn0Qm+AtDxPcRZy4c66i2XYovL/2PVCVlQMmwRwz FkOZ3OlYvR+JgRMdlBNFgIy3lOY7vjTMP6kBYEhsM0XFaTZEMk4PKJY+AXSGXg38PXbO OreDNIMPHFV9Ox4BYIvAnKfR+1m1IVQ5iQt1pfKOo4rhZq+ZO+FXBKE3IgAQ2ckPYsEH ghVnkAAYJqeLUGvx6f2bALUes/9Cur8DNLx/3OkKgu6XnOhiVcMjkHxOs17nrTJWy6vb ajtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a509b47000000b00451a9bc10casi6689095edj.196.2022.10.03.00.12.26; Mon, 03 Oct 2022 00:12:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbiJCGwd (ORCPT + 99 others); Mon, 3 Oct 2022 02:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiJCGwZ (ORCPT ); Mon, 3 Oct 2022 02:52:25 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8F63EA4F for ; Sun, 2 Oct 2022 23:52:24 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofFJ9-0000yl-GX; Mon, 03 Oct 2022 08:52:07 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ofFJ8-004K5O-6Q; Mon, 03 Oct 2022 08:52:04 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ofFJ5-00GJlF-Gr; Mon, 03 Oct 2022 08:52:03 +0200 From: Oleksij Rempel To: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, David Jander , Luka Perkov , Robert Marko Subject: [PATCH net-next v8 6/7] dt-bindings: net: pse-dt: add bindings for regulator based PoDL PSE controller Date: Mon, 3 Oct 2022 08:52:01 +0200 Message-Id: <20221003065202.3889095-7-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221003065202.3889095-1-o.rempel@pengutronix.de> References: <20221003065202.3889095-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for the regulator based Ethernet PoDL PSE controller and generic bindings for all PSE controllers. Signed-off-by: Oleksij Rempel Reviewed-by: Andrew Lunn --- changes v6: - add description of PSE controller - change "^ethernet-pse(@[a-f0-9]+)?$" to "^ethernet-pse(@.*)?$" changes v5: - rename to podl-pse-regulator.yaml - remove compatible description - remove "-1" on node name - add pse-controller.yaml for common properties changes v4: - rename to PSE regulator - drop currently unused properties - use own compatible for PoDL PSE changes v2: - rename compatible to more generic "ieee802.3-pse" - add class and type properties for PoDL and PoE variants - add pairs property --- .../net/pse-pd/podl-pse-regulator.yaml | 40 +++++++++++++++++++ .../bindings/net/pse-pd/pse-controller.yaml | 33 +++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/pse-pd/podl-pse-regulator.yaml create mode 100644 Documentation/devicetree/bindings/net/pse-pd/pse-controller.yaml diff --git a/Documentation/devicetree/bindings/net/pse-pd/podl-pse-regulator.yaml b/Documentation/devicetree/bindings/net/pse-pd/podl-pse-regulator.yaml new file mode 100644 index 000000000000..c6b1c188abf7 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/podl-pse-regulator.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/podl-pse-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Regulator based Power Sourcing Equipment + +maintainers: + - Oleksij Rempel + +description: Regulator based PoDL PSE controller. The device must be referenced + by the PHY node to control power injection to the Ethernet cable. + +allOf: + - $ref: "pse-controller.yaml#" + +properties: + compatible: + const: podl-pse-regulator + + '#pse-cells': + const: 0 + + pse-supply: + description: Power supply for the PSE controller + +additionalProperties: false + +required: + - compatible + - pse-supply + +examples: + - | + ethernet-pse { + compatible = "podl-pse-regulator"; + pse-supply = <®_t1l1>; + #pse-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/net/pse-pd/pse-controller.yaml b/Documentation/devicetree/bindings/net/pse-pd/pse-controller.yaml new file mode 100644 index 000000000000..b110abb42597 --- /dev/null +++ b/Documentation/devicetree/bindings/net/pse-pd/pse-controller.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/pse-pd/pse-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Power Sourcing Equipment (PSE). + +description: Binding for the Power Sourcing Equipment (PSE) as defined in the + IEEE 802.3 specification. It is designed for hardware which is delivering + power over twisted pair/ethernet cable. The ethernet-pse nodes should be + used to describe PSE controller and referenced by the ethernet-phy node. + +maintainers: + - Oleksij Rempel + +properties: + $nodename: + pattern: "^ethernet-pse(@.*)?$" + + "#pse-cells": + description: + Used to uniquely identify a PSE instance within an IC. Will be + 0 on PSE nodes with only a single output and at least 1 on nodes + controlling several outputs. + enum: [0, 1] + +required: + - "#pse-cells" + +additionalProperties: true + +... -- 2.30.2