From: Rob Herring <robh@kernel.org>
To: Christian Marangi <ansuelsmth@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Gregory Clement <gregory.clement@bootlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
John Crispin <john@phrozen.org>,
linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [net-next PATCH v6 10/16] dt-bindings: leds: Document support for generic ethernet LEDs
Date: Fri, 31 Mar 2023 15:09:22 -0500 [thread overview]
Message-ID: <20230331200922.GA2123749-robh@kernel.org> (raw)
In-Reply-To: <20230327141031.11904-11-ansuelsmth@gmail.com>
On Mon, Mar 27, 2023 at 04:10:25PM +0200, Christian Marangi wrote:
> Add documentation for support of generic ethernet LEDs.
> These LEDs are ethernet port LED and are controllable by the ethernet
> controller or the ethernet PHY.
>
> A port may expose multiple LEDs and reg is used to provide an index to
> differentiate them.
> Ethernet port LEDs follow generic LED implementation.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
> .../bindings/leds/leds-ethernet.yaml | 76 +++++++++++++++++++
> 1 file changed, 76 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/leds/leds-ethernet.yaml
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-ethernet.yaml b/Documentation/devicetree/bindings/leds/leds-ethernet.yaml
> new file mode 100644
> index 000000000000..0a03d65beea0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/leds-ethernet.yaml
> @@ -0,0 +1,76 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/leds/leds-ethernet.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Common properties for the ethernet port LED.
> +
> +maintainers:
> + - Christian Marangi <ansuelsmth@gmail.com>
> +
> +description:
> + Bindings for the LEDs present in ethernet port and controllable by
> + the ethernet controller or the ethernet PHY regs.
> +
> + These LEDs provide the same feature of a normal LED and follow
> + the same LED definitions.
> +
> + An ethernet port may expose multiple LEDs, reg binding is used to
> + differentiate them.
> +
> +properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> +patternProperties:
> + '^led@[a-f0-9]+$':
> + $ref: /schemas/leds/common.yaml#
> +
> + properties:
> + reg:
> + maxItems: 1
> + description:
> + This define the LED index in the PHY or the MAC. It's really
> + driver dependent and required for ports that define multiple
> + LED for the same port.
> +
> + required:
> + - reg
> +
> + unevaluatedProperties: false
This does nothing to help the issues I raised. If the 'led' nodes have
custom properties, then you need a schema for the 'led' nodes and just
the 'led' nodes. Not a schema for the 'leds' container node.
If your not going to allow extending, then this can all be 1 file like
you had (with unevaluatedProperties added of course).
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Christian Marangi <ansuelsmth@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
Gregory Clement <gregory.clement@bootlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
John Crispin <john@phrozen.org>,
linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [net-next PATCH v6 10/16] dt-bindings: leds: Document support for generic ethernet LEDs
Date: Fri, 31 Mar 2023 15:09:22 -0500 [thread overview]
Message-ID: <20230331200922.GA2123749-robh@kernel.org> (raw)
In-Reply-To: <20230327141031.11904-11-ansuelsmth@gmail.com>
On Mon, Mar 27, 2023 at 04:10:25PM +0200, Christian Marangi wrote:
> Add documentation for support of generic ethernet LEDs.
> These LEDs are ethernet port LED and are controllable by the ethernet
> controller or the ethernet PHY.
>
> A port may expose multiple LEDs and reg is used to provide an index to
> differentiate them.
> Ethernet port LEDs follow generic LED implementation.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
> .../bindings/leds/leds-ethernet.yaml | 76 +++++++++++++++++++
> 1 file changed, 76 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/leds/leds-ethernet.yaml
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-ethernet.yaml b/Documentation/devicetree/bindings/leds/leds-ethernet.yaml
> new file mode 100644
> index 000000000000..0a03d65beea0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/leds-ethernet.yaml
> @@ -0,0 +1,76 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/leds/leds-ethernet.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Common properties for the ethernet port LED.
> +
> +maintainers:
> + - Christian Marangi <ansuelsmth@gmail.com>
> +
> +description:
> + Bindings for the LEDs present in ethernet port and controllable by
> + the ethernet controller or the ethernet PHY regs.
> +
> + These LEDs provide the same feature of a normal LED and follow
> + the same LED definitions.
> +
> + An ethernet port may expose multiple LEDs, reg binding is used to
> + differentiate them.
> +
> +properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> +patternProperties:
> + '^led@[a-f0-9]+$':
> + $ref: /schemas/leds/common.yaml#
> +
> + properties:
> + reg:
> + maxItems: 1
> + description:
> + This define the LED index in the PHY or the MAC. It's really
> + driver dependent and required for ports that define multiple
> + LED for the same port.
> +
> + required:
> + - reg
> +
> + unevaluatedProperties: false
This does nothing to help the issues I raised. If the 'led' nodes have
custom properties, then you need a schema for the 'led' nodes and just
the 'led' nodes. Not a schema for the 'leds' container node.
If your not going to allow extending, then this can all be 1 file like
you had (with unevaluatedProperties added of course).
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-03-31 20:09 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-27 14:10 [net-next PATCH v6 00/16] net: Add basic LED support for switch/phy Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 01/16] net: dsa: qca8k: move qca8k_port_to_phy() to header Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 14:05 ` Florian Fainelli
2023-04-13 14:05 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 02/16] net: dsa: qca8k: add LEDs basic support Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 03/16] net: dsa: qca8k: add LEDs blink_set() support Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 14:06 ` Florian Fainelli
2023-04-13 14:06 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 04/16] leds: Provide stubs for when CLASS_LED & NEW_LEDS are disabled Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 13:58 ` Florian Fainelli
2023-04-13 13:58 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 05/16] net: phy: Add a binding for PHY LEDs Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-30 15:05 ` kernel test robot
2023-03-30 15:56 ` kernel test robot
2023-03-27 14:10 ` [net-next PATCH v6 06/16] net: phy: phy_device: Call into the PHY driver to set LED brightness Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 13:57 ` Florian Fainelli
2023-04-13 13:57 ` Florian Fainelli
2023-04-12 23:11 ` Christian Marangi
2023-04-12 23:11 ` Christian Marangi
2023-04-13 14:04 ` Florian Fainelli
2023-04-13 14:04 ` Florian Fainelli
2023-04-13 14:43 ` Andrew Lunn
2023-04-13 14:43 ` Andrew Lunn
2023-04-13 14:48 ` Andrew Lunn
2023-04-13 14:48 ` Andrew Lunn
2023-03-27 14:10 ` [net-next PATCH v6 07/16] net: phy: marvell: Add software control of the LEDs Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 13:55 ` Florian Fainelli
2023-04-13 13:55 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 08/16] net: phy: phy_device: Call into the PHY driver to set LED blinking Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 13:56 ` Florian Fainelli
2023-04-13 13:56 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 09/16] net: phy: marvell: Implement led_blink_set() Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-13 13:58 ` Florian Fainelli
2023-04-13 13:58 ` Florian Fainelli
2023-03-27 14:10 ` [net-next PATCH v6 10/16] dt-bindings: leds: Document support for generic ethernet LEDs Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-31 20:09 ` Rob Herring [this message]
2023-03-31 20:09 ` Rob Herring
2023-03-27 14:10 ` [net-next PATCH v6 11/16] dt-bindings: net: ethernet-controller: Document support for LEDs node Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 12/16] dt-bindings: net: dsa: qca8k: add LEDs definition example Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-06 14:10 ` Rob Herring
2023-04-06 14:10 ` Rob Herring
2023-04-12 22:42 ` Christian Marangi
2023-04-12 22:42 ` Christian Marangi
2023-04-13 13:49 ` Andrew Lunn
2023-04-13 13:49 ` Andrew Lunn
2023-03-27 14:10 ` [net-next PATCH v6 13/16] ARM: dts: qcom: ipq8064-rb3011: Drop unevaluated properties in switch nodes Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-04-09 16:15 ` Jonathan McDowell
2023-04-09 16:15 ` Jonathan McDowell
2023-03-27 14:10 ` [net-next PATCH v6 14/16] ARM: dts: qcom: ipq8064-rb3011: Add Switch LED for each port Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 15/16] dt-bindings: net: phy: Document support for LEDs node Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-27 14:10 ` [net-next PATCH v6 16/16] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port Christian Marangi
2023-03-27 14:10 ` Christian Marangi
2023-03-28 8:31 ` Pavel Machek
2023-03-28 8:31 ` Pavel Machek
2023-03-28 11:59 ` Andrew Lunn
2023-03-28 11:59 ` Andrew Lunn
2023-04-03 19:54 ` Pavel Machek
2023-04-03 19:54 ` Pavel Machek
2023-04-04 19:52 ` Andrew Lunn
2023-04-04 19:52 ` Andrew Lunn
2023-04-06 9:18 ` Pavel Machek
2023-04-06 9:18 ` Pavel Machek
2023-04-06 13:54 ` Andrew Lunn
2023-04-06 13:54 ` Andrew Lunn
2023-04-03 18:46 ` Rob Herring
2023-04-03 18:46 ` Rob Herring
2023-04-03 19:28 ` Andrew Lunn
2023-04-03 19:28 ` Andrew Lunn
2023-03-28 1:46 ` [net-next PATCH v6 00/16] net: Add basic LED support for switch/phy Jakub Kicinski
2023-03-28 1:46 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230331200922.GA2123749-robh@kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=andrew@lunn.ch \
--cc=ansuelsmth@gmail.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=gregory.clement@bootlin.com \
--cc=hkallweit1@gmail.com \
--cc=john@phrozen.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=pavel@ucw.cz \
--cc=sebastian.hesselbarth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.