brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · fa03e73 Raw
58 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Qualcomm PM8058 PMIC LED8 9maintainers:10  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>11 12description: |13  The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal14  LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted15  because sometimes these LED drivers are used for wildly different things than16  flash or keypad backlight:: their names are more of a suggestion than a17  hard-wired usecase.18 19  Hardware-wise the different LEDs support slightly different output currents.20  The "flash" LEDs do not need to charge nor do they support external triggers.21  They are just powerful LED drivers.22 23allOf:24  - $ref: common.yaml#25 26properties:27  compatible:28    enum:29      - qcom,pm8058-led30      - qcom,pm8058-keypad-led31      - qcom,pm8058-flash-led32 33  reg:34    maxItems: 135 36required:37  - compatible38  - reg39 40unevaluatedProperties: false41 42examples:43  - |44    #include <dt-bindings/leds/common.h>45 46    pmic {47        #address-cells = <1>;48        #size-cells = <0>;49 50        led@131 {51            compatible = "qcom,pm8058-led";52            reg = <0x131>;53            label = "pm8058:red";54            color = <LED_COLOR_ID_RED>;55            default-state = "off";56        };57    };58