lkml.org 
[lkml]   [2021]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9 1/2] dt-bindings: leds: Add Qualcomm Light Pulse Generator binding
On Tue, 22 Jun 2021 20:50:38 -0700
Bjorn Andersson <bjorn.andersson@linaro.org> wrote:

> +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml

The file name should be based on one of the compatible strings, for
example the first one:
qcom,pm8150b-lpg.yaml

> + led@1 {
> + reg = <1>;
> + label = "green:user1";
> + };

`label` is deprecated, please don't use in new bindings in examples.
Instead use color, function and function-enumerator, i.e.

color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_xxx;
function-enumerator = <N>;


\
 
 \ /
  Last update: 2021-06-25 01:20    [W:0.159 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site