From: Krzysztof Kozlowski <krzk@kernel.org>
To: Ante Knezic <ante.knezic@helmholz.de>
Cc: linux-leds@vger.kernel.org, lee@kernel.org, pavel@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
corbet@lwn.net, knezic@helmholz.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: leds: add binding for WL-ICLED
Date: Tue, 15 Apr 2025 09:55:33 +0200 [thread overview]
Message-ID: <20250415-dashing-impartial-baboon-70d086@shite> (raw)
In-Reply-To: <35c7f697070b3939727f1115d3a279e280f72cd6.1744636666.git.knezic@helmholz.com>
On Mon, Apr 14, 2025 at 03:28:50PM GMT, Ante Knezic wrote:
> From: Ante Knezic <knezic@helmholz.com>
>
> WL-ICLED is a RGB LED with integrated IC from Wurth Elektronik.
> Individual color brightness can be controlled via SPI protocol.
>
> Signed-off-by: Ante Knezic <knezic@helmholz.com>
> ---
> .../bindings/leds/leds-wl-icled.yaml | 88 +++++++++++++++++++
Filename based on compatible. Choose one compatible and use it here.
> 1 file changed, 88 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/leds/leds-wl-icled.yaml
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-wl-icled.yaml b/Documentation/devicetree/bindings/leds/leds-wl-icled.yaml
> new file mode 100644
> index 000000000000..bf79c7a1719b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/leds-wl-icled.yaml
> @@ -0,0 +1,88 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/leds/leds-wl-icled.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LED driver for WL-ICLEDs from Wurth Elektronik.
driver as Linux driver? Then drop and describe hardware.
Also drop full stop
> +
> +maintainers:
> + - Ante Knezic <ante.knezic@helmholz.de>
> +
> +description: |
> + The WL-ICLEDs are RGB LEDs with integrated controller that can be
> + daisy-chained to arbitrary number of LEDs. Communication with LEDs is
> + via SPI interface and can be single or two wire, depending on the model.
> + For more product information please see the link below:
> + https://www.we-online.com/en/components/products/WL-ICLED
> +
> +properties:
> + compatible:
> + enum:
> + - we,1315x246
> + - we,1315x002
> + - we,131x000
> + - we,131161x
> + - we,131212x
Is that a wildcard in each compatible?
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> +patternProperties:
> + '^led@[0-9a-f]$':
> + type: object
> + $ref: leds-class-multicolor.yaml#
> + unevaluatedProperties: false
> +
> + properties:
> + reg:
> + maxItems: 1
> + description:
> + This property denotes the LED position in the daisy chain
> + series. It is a zero based LED identifier.
> +
> +required:
> + - compatible
> + - reg
> +
Missing ref to spi periph schema. See other bindings.
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/leds/common.h>
> +
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + icled@1 {
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
led-controller
> + compatible = "we,131x000";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + reg = <1>;
> + cs-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
> +
> + led@0 {
> + reg = <0>;
> + color = <LED_COLOR_ID_RGB>;
> + function = "error";
Use standard defines.
> + };
> +
> + led@1 {
> + reg = <1>;
> + color = <LED_COLOR_ID_RGB>;
> + function = "warning";
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-04-15 7:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 13:28 [PATCH 0/3] Add support for WL-ICLEDs from Wurth Elektronik Ante Knezic
2025-04-14 13:28 ` [PATCH 1/3] Documentation: leds: Add docs for Wurth Elektronik WL-ICLED Ante Knezic
2025-04-15 2:27 ` Bagas Sanjaya
2025-04-14 13:28 ` [PATCH 2/3] dt-bindings: leds: add binding for WL-ICLED Ante Knezic
2025-04-14 15:27 ` Rob Herring (Arm)
2025-04-15 7:55 ` Krzysztof Kozlowski [this message]
2025-04-16 9:06 ` Ante Knezic
2025-04-16 10:21 ` Krzysztof Kozlowski
2025-04-14 13:28 ` [PATCH 3/3] leds: add WL-ICLED SPI driver Ante Knezic
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=20250415-dashing-impartial-baboon-70d086@shite \
--to=krzk@kernel.org \
--cc=ante.knezic@helmholz.de \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=knezic@helmholz.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=robh@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox