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