linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] DT: leds: Fix 'label' property description and add 'colour' property
@ 2017-12-02 21:50 Jacek Anaszewski
  2017-12-04 10:43 ` Pavel Machek
  2017-12-08 16:01 ` Dan Murphy
  0 siblings, 2 replies; 8+ messages in thread
From: Jacek Anaszewski @ 2017-12-02 21:50 UTC (permalink / raw)
  To: linux-leds, linux-kernel
  Cc: robh, pavel, sakari.ailus, dmurphy, jacek.anaszewski

Label property was imposed a uniqueness requirement, which was erroneous,
since ePAPR defines it to "a human readable string describing a device".

Also the binding description misleadingly suggested direct usage of label
for LED class device name, whereas it should only define a LED function.

Therefore an additional 'colour' property is being introduced, which together
with the parent DT node name used for devicename shall be used for naming LED
class device according to the patterh <devicename>:<colour>:<function>.

Fixes: 116b8e164116 ("DT: leds: Add uniqueness requirement for 'label' property")
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
---
 Documentation/devicetree/bindings/leds/common.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/leds/common.txt b/Documentation/devicetree/bindings/leds/common.txt
index 1d4afe9..16973ee 100644
--- a/Documentation/devicetree/bindings/leds/common.txt
+++ b/Documentation/devicetree/bindings/leds/common.txt
@@ -14,10 +14,9 @@ Optional properties for child nodes:
 - led-sources : List of device current outputs the LED is connected to. The
 		outputs are identified by the numbers that must be defined
 		in the LED device binding documentation.
-- label : The label for this LED. If omitted, the label is taken from the node
-	  name (excluding the unit address). It has to uniquely identify
-	  a device, i.e. no other LED class device can be assigned the same
-	  label.
+- label : The label for this LED. It should describe its function. If omitted,
+          the label is taken from the node name (excluding the unit address).
+- colour : Colour of the LED.
 
 - default-state : The initial state of the LED. Valid values are "on", "off",
   and "keep". If the LED is already on or off and the default-state property is
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-02 12:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02 21:50 [PATCH/RFC] DT: leds: Fix 'label' property description and add 'colour' property Jacek Anaszewski
2017-12-04 10:43 ` Pavel Machek
2017-12-05 19:52   ` Jacek Anaszewski
2017-12-11 16:27   ` Rob Herring
2017-12-14 21:35     ` Jacek Anaszewski
     [not found]       ` <82dc0ed3-f4fe-d8a2-65ea-4212770b78e7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-12-17 12:49         ` Jacek Anaszewski
2018-03-02 12:51       ` Pavel Machek
2017-12-08 16:01 ` Dan Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).