mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Brophy <professor_jonny@hotmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
	Jonathan Brophy <professorjonny98@gmail.com>,
	lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Radoslav Tsvetkov <rtsvetkov@gradotech.eu>
Cc: "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-leds@vger.kernel.org" <linux-leds@vger.kernel.org>
Subject: RE: [PATCH v2 1/4] dt-bindings: leds: Add YAML bindings for Virtual Color LED Group driver
Date: Tue, 14 Oct 2025 03:08:23 +0000	[thread overview]
Message-ID: <DS0PR84MB374636FF53989F5D94D821D49FEBA@DS0PR84MB3746.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <8c3796eb-63d0-4650-b296-60894461a806@kernel.org>

on  14/10/ 12:42, Krzysztof Kozlowski wrote:

>> From: Jonathan Brophy <professor_jonny@hotmail.com>
>> 
>> Document Virtual Color device tree bindings.
>
>I don't see how you answered my comment about missing justification.
>
>Rob's questions also were not answered.

Ok I kind of justified the inclusion of the driver in the cover letter commit message, as for the multi-led binding I have done
the same thing I will make changes.

Sorry It’s a big learning curve for me and I may have put my justification in the wrong place.


>Few minor things follow up, but considering missing reasoning I did not perform full review.
>
>A nit, subject: drop second/last, redundant "YAML bindings for". The "dt-bindings" prefix is already stating that these are bindings.
>See also:
>https://elixir.bootlin.com/linux/v6.17-rc3/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
>
>... and driver. Again - explain the hardware. Bindings are not for driver.

I'm kind a little bit confused what you mean by this statement.

I'm guessing I should omit hardware info in the class yaml and move it to a group yaml like the multicolor ones as below?
If so that is just a mistake on my part not knowing the file structure well.

https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
https://elixir.bootlin.com/linux/v6.17.1/source/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml

>> 
>> +description: |
>> +  Bindings to show how to achieve logically grouped virtual LEDs.
>> +  The nodes and properties defined in this document are unique to the
>> +  virtualcolor LED class.
>
>That's completely redundant statement.

Ok fair enough, but I basically cloned this comment from the leds-group-multicolor as they have something simular.

>> +  Common LED nodes and properties are inherited from the common.yaml  
>> + within this documentation directory
>
>As well drop. Your description is pretty obvious and does not help at all.

Ok thanks

>> +    properties:
>> +      reg:
>> +        maxItems: 1
>> +        description: Virtual LED number
>> +
>> +      leds:
>> +        $ref: /schemas/types.yaml#/definitions/phandle-array
>> +        description: List of phandles to the monochromatic LEDs to 
>> + group
>> +
>> +      function:
>> +        description: |
>> +          For virtualcolor LEDs this property should be defined as
>> +          LED_FUNCTION_VIRTUAL_STATUS as outlined in:
>> +          include/dt-bindings/leds/common.h.
>> +
>> +      priority:
>> +        $ref: /schemas/types.yaml#/definitions/uint32
>> +        description: Priority level for LED activation
>> +          (higher value means higher priority)
>> +
>> +      blink-delay-on:
>> +        $ref: /schemas/types.yaml#/definitions/uint32
>> +        description: Time in milliseconds the LED is on during blink
>> +
>> +      blink-delay-off:
>> +        $ref: /schemas/types.yaml#/definitions/uint32
>> +        description: Time in milliseconds the LED is off during blink
>> +        note: Setting just one of the blink delays to a valid value while
>> +          setting the other to null will cause the LED to operate with a one-shot
>> +          on or off delay instead of a repeat cycle.
>
>
>And drop all above, except reg and leds. If these are new properties, then you need to use proper unit suffixes.
>
>https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml

Thanks for pointing this out I guessed there was a definition's somewhere,
At the moment the blink settings are unique to this driver I went this way as we were trying to get specific behaviour as the
native timing functions did not work as intended, but I'm looking at replacing it with standard functions if I can get it to
work.


Best regards,
Jonathan

  reply	other threads:[~2025-10-14  3:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13 12:09 [PATCH v2 0/4] leds: Add a virtual LED driver for groups of Jonathan Brophy
2025-10-13 12:09 ` [PATCH v2 1/4] dt-bindings: leds: Add YAML bindings for Virtual Color LED Group driver Jonathan Brophy
2025-10-13 23:41   ` Krzysztof Kozlowski
2025-10-14  3:08     ` Jonathan Brophy [this message]
2025-10-14  8:19       ` Krzysztof Kozlowski
2025-10-14 16:35   ` Rob Herring (Arm)
2025-10-13 12:09 ` [PATCH v2 2/4] ABI: sysfs-class-leds-virtualcolor: Document sysfs Jonathan Brophy
2025-10-13 12:09 ` [PATCH v2 3/4] dt-bindings: led: add virtual LED bindings Jonathan Brophy
2025-10-13 12:09 ` [PATCH v2 4/4] leds: Add Virtual Color LED Group driver Jonathan Brophy
2025-10-13 15:39   ` Thomas Weißschuh
2025-10-23 14:48   ` Dan Carpenter

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=DS0PR84MB374636FF53989F5D94D821D49FEBA@DS0PR84MB3746.NAMPRD84.PROD.OUTLOOK.COM \
    --to=professor_jonny@hotmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=pavel@kernel.org \
    --cc=professorjonny98@gmail.com \
    --cc=robh@kernel.org \
    --cc=rtsvetkov@gradotech.eu \
    /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

all inboxes | Powered by JetHome®