1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Qualcomm PM8058 PMIC LED
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotmaintainers:
10*8bab661aSEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11*8bab661aSEmmanuel Vadot
12*8bab661aSEmmanuel Vadotdescription: |
13*8bab661aSEmmanuel Vadot  The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal
14*8bab661aSEmmanuel Vadot  LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted
15*8bab661aSEmmanuel Vadot  because sometimes these LED drivers are used for wildly different things than
16*8bab661aSEmmanuel Vadot  flash or keypad backlight:: their names are more of a suggestion than a
17*8bab661aSEmmanuel Vadot  hard-wired usecase.
18*8bab661aSEmmanuel Vadot
19*8bab661aSEmmanuel Vadot  Hardware-wise the different LEDs support slightly different output currents.
20*8bab661aSEmmanuel Vadot  The "flash" LEDs do not need to charge nor do they support external triggers.
21*8bab661aSEmmanuel Vadot  They are just powerful LED drivers.
22*8bab661aSEmmanuel Vadot
23*8bab661aSEmmanuel VadotallOf:
24*8bab661aSEmmanuel Vadot  - $ref: common.yaml#
25*8bab661aSEmmanuel Vadot
26*8bab661aSEmmanuel Vadotproperties:
27*8bab661aSEmmanuel Vadot  compatible:
28*8bab661aSEmmanuel Vadot    enum:
29*8bab661aSEmmanuel Vadot      - qcom,pm8058-led
30*8bab661aSEmmanuel Vadot      - qcom,pm8058-keypad-led
31*8bab661aSEmmanuel Vadot      - qcom,pm8058-flash-led
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot  reg:
34*8bab661aSEmmanuel Vadot    maxItems: 1
35*8bab661aSEmmanuel Vadot
36*8bab661aSEmmanuel Vadotrequired:
37*8bab661aSEmmanuel Vadot  - compatible
38*8bab661aSEmmanuel Vadot  - reg
39*8bab661aSEmmanuel Vadot
40*8bab661aSEmmanuel VadotunevaluatedProperties: false
41*8bab661aSEmmanuel Vadot
42*8bab661aSEmmanuel Vadotexamples:
43*8bab661aSEmmanuel Vadot  - |
44*8bab661aSEmmanuel Vadot    #include <dt-bindings/leds/common.h>
45*8bab661aSEmmanuel Vadot
46*8bab661aSEmmanuel Vadot    pmic {
47*8bab661aSEmmanuel Vadot        #address-cells = <1>;
48*8bab661aSEmmanuel Vadot        #size-cells = <0>;
49*8bab661aSEmmanuel Vadot
50*8bab661aSEmmanuel Vadot        led@131 {
51*8bab661aSEmmanuel Vadot            compatible = "qcom,pm8058-led";
52*8bab661aSEmmanuel Vadot            reg = <0x131>;
53*8bab661aSEmmanuel Vadot            label = "pm8058:red";
54*8bab661aSEmmanuel Vadot            color = <LED_COLOR_ID_RED>;
55*8bab661aSEmmanuel Vadot            default-state = "off";
56*8bab661aSEmmanuel Vadot        };
57*8bab661aSEmmanuel Vadot    };
58