dt-bindings: leds: Add bindings for leds-qti-tri-led driver
Add devicetree bindings for the leds-qti-tri-led driver. Change-Id: If2bcefb457dcf303c4b8e481f080c0b8fdb553c8 Signed-off-by: Varshitha H N <quic_vhn@quicinc.com>
This commit is contained in:
77
bindings/leds/qcom,leds-qti-tri-led.yaml
Normal file
77
bindings/leds/qcom,leds-qti-tri-led.yaml
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/leds/qcom,leds-qti-tri-led.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Qualcomm Technologies, Inc. TRI_LED driver specific document
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Subbaraman Narayanamurthy <subbaram@quicinc.com>
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding document describes the properties of TRI_LED module in
|
||||||
|
Qualcomm Technologies, Inc. PMIC chips.
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: qcom,tri-led
|
||||||
|
|
||||||
|
reg:
|
||||||
|
description: Register base of the TRI_LED module.
|
||||||
|
|
||||||
|
nvmem-names:
|
||||||
|
description: Nvmem device name for SDAM to do PBS trigger. It must be
|
||||||
|
defined as "pbs_sdam". This is required only for HR_LEDs.
|
||||||
|
|
||||||
|
nvmem:
|
||||||
|
description: Phandle of the nvmem device name to access SDAM to do PBS
|
||||||
|
trigger. This is required only for HR_LEDs.
|
||||||
|
|
||||||
|
pwms:
|
||||||
|
description: The PWM device (phandle) used for controlling LED.
|
||||||
|
|
||||||
|
led-sources:
|
||||||
|
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||||
|
Device current output identifiers are 0 - LED1_EN,
|
||||||
|
1 - LED2_EN, 2 - LED3_EN.
|
||||||
|
label:
|
||||||
|
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||||
|
|
||||||
|
linux,default-trigger:
|
||||||
|
description: see Documentation/devicetree/bindings/leds/common.txt;
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
- pwms
|
||||||
|
- led-sources
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: common.yaml#
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
pmi8998_rgb: tri-led@d000{
|
||||||
|
compatible = "qcom,tri-led";
|
||||||
|
reg = <0xd000>;
|
||||||
|
|
||||||
|
red {
|
||||||
|
label = "red";
|
||||||
|
pwms = <&pmi8998_lpg 4 1000000>;
|
||||||
|
led-sources = <0>;
|
||||||
|
};
|
||||||
|
green {
|
||||||
|
label = "green";
|
||||||
|
pwms = <&pmi8998_lpg 3 1000000>;
|
||||||
|
led-sources = <1>;
|
||||||
|
};
|
||||||
|
blue {
|
||||||
|
label = "blue";
|
||||||
|
pwms = <&pmi8998_lpg 2 1000000>;
|
||||||
|
led-sources = <2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
...
|
Reference in New Issue
Block a user