[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ee9bf56b-9624-b695-d724-2bf237c9c241@linaro.org>
Date: Tue, 30 Aug 2022 20:41:13 +0300
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Oleksij Rempel <o.rempel@...gutronix.de>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Russell King <linux@...linux.org.uk>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Jonathan Corbet <corbet@....net>
Cc: kernel@...gutronix.de, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-doc@...r.kernel.org, David Jander <david@...tonic.nl>,
Luka Perkov <luka.perkov@...tura.hr>,
Robert Marko <robert.marko@...tura.hr>
Subject: Re: [PATCH net-next v4 6/7] dt-bindings: net: pse-dt: add bindings
for generic PSE controller
On 28/08/2022 09:30, Oleksij Rempel wrote:
> Add binding for generic Ethernet PSE controller.
>
> Signed-off-by: Oleksij Rempel <o.rempel@...gutronix.de>
> ---
> 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
> ---
> .../bindings/net/pse-pd/pse-regulator.yaml | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/net/pse-pd/pse-regulator.yaml
>
> diff --git a/Documentation/devicetree/bindings/net/pse-pd/pse-regulator.yaml b/Documentation/devicetree/bindings/net/pse-pd/pse-regulator.yaml
> new file mode 100644
> index 0000000000000..1a906d2135a7a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/pse-pd/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/pse-regulator.yaml#
The convention is filename based on compatible, so "podl-pse-regulator.yaml"
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Regulator based Power Sourcing Equipment
> +
> +maintainers:
> + - Oleksij Rempel <o.rempel@...gutronix.de>
> +
> +description: Regulator based PSE controller. The device must be referenced by
> + the PHY node to control power injection to the Ethernet cable.
> +
> +properties:
> + compatible:
> + description: Regulator based PoDL PSE controller for a single twisted-pair
> + link.
Why description of compatible? Description of hardware goes to top-level
description.
> + const: podl-pse-regulator
> +
> + '#pse-cells':
> + const: 0
> +
> + pse-supply:
> + description: Power supply for the PSE controller
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - '#pse-cells'
> + - pse-supply
> +
> +examples:
> + - |
> + pse_t1l2: ethernet-pse-1 {
Node name: ethernet-pse
(unless -1 stands for something generic?)
Also, no need for label.
Best regards,
Krzysztof
Powered by blists - more mailing lists