Qualcomm Technologies, Inc. WLED driver

Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Kiran Gunda <quic_kgunda@quicinc.com>"

WLED (White Light Emitting Diode) driver is used for controlling display backlight that is part of PMIC on Qualcomm Technologies, Inc. reference platforms. The PMIC is connected to the host processor via SPMI bus.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pm8941-wled", "qcom,pmi8950-wled", "qcom,pmi8994-wled", "qcom,pmi8998-wled", "qcom,pm660l-wled", "qcom,pm6150l-wled", "qcom,pm8150l-wled"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

default-brightness — not listed as required here #

brightness value on boot.

label — required here #

true — No constraints added by this property rule.

max-brightness — not listed as required here #

Maximum brightness level.

qcom,cs-out — not listed as required here #

enable current sink output. This property is supported only for WLED3.

Value type (type): "boolean"

qcom,cabc — not listed as required here #

enable content adaptive backlight control.

Value type (type): "boolean"

qcom,ext-gen — not listed as required here #

use externally generated modulator signal to dim. This property is supported only for WLED3.

Value type (type): "boolean"

qcom,current-limit — not listed as required here #

mA; per-string current limit. This property is supported only for WLED3.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 20

Minimum value (minimum): 0

Maximum value (maximum): 25

qcom,current-limit-microamp — not listed as required here #

uA; per-string current limit.

Default value (default): 25

Minimum value (minimum): 0

Maximum value (maximum): 30000

Multiple of (multipleOf): 25

qcom,current-boost-limit — not listed as required here #

mA; boost current limit.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

qcom,switching-freq — not listed as required here #

kHz; switching frequency.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 600, 640, 685, 738, 800, 872, 960, 1066, 1200, 1371, 1600, 1920, 2400, 3200, 4800, 9600

qcom,ovp — not listed as required here #

V; Over-voltage protection limit. This property is supported only for WLED3.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 27, 29, 32, 35

Default value (default): 29

qcom,ovp-millivolt — not listed as required here #

Over-voltage protection limit. This property is for WLED4 only.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 17800

Maximum value (maximum): 31100

qcom,num-strings — not listed as required here #

number of led strings attached.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

qcom,enabled-strings — not listed as required here #

Array of the WLED strings numbered from 0 to 3. Each string of leds are operated individually. Specify the list of strings used by the device. Any combination of led strings can be used.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

qcom,external-pfet — not listed as required here #

Specify if external PFET control for short circuit protection is used. This property is supported only for WLED4.

Value type (type): "boolean"

qcom,auto-string-detection — not listed as required here #

Enables auto-detection of the WLED string configuration. This feature is not supported for WLED3.

Value type (type): "boolean"

interrupts — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

over voltage protection interrupt.

Item 2

short circuit interrupt.

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "ovp"

Item 2

Exact value (const): "short"

qcom,modulator-sel — not listed as required here #

Selects the modulator used for brightness modulation.
Allowed values are,
     0 - Modulator A
     1 - Modulator B
This property is applicable only to WLED5 peripheral.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1

Default value (default): 0

qcom,cabc-sel — not listed as required here #

Selects the CABC pin signal used for brightness modulation.
Allowed values are,
     0 - CABC disabled
     1 - CABC 1
     2 - CABC 2
     3 - External signal (e.g. LPG) is used for dimming
This property is applicable only to WLED5 peripheral.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,pm8941-wled"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

qcom,current-boost-limit — not listed as required here

Allowed values (enum): 105, 385, 525, 805, 980, 1260, 1400, 1680

Default value (default): 805

qcom,switching-freq — not listed as required here

Default value (default): 1600

qcom,num-strings — not listed as required here

Allowed values (enum): 1, 2, 3

interrupts — not listed as required here

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

qcom,current-boost-limit — not listed as required here

Allowed values (enum): 105, 280, 450, 620, 970, 1150, 1300, 1500

Default value (default): 970

qcom,switching-freq — not listed as required here

Default value (default): 800

qcom,num-strings — not listed as required here

Allowed values (enum): 1, 2, 3, 4

interrupts — not listed as required here

Minimum number of items (minItems): 2

interrupt-names — not listed as required here

Minimum number of items (minItems): 2

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,pm8150l-wled"

When the condition matches (then) #

Properties and child nodes (properties)

default-brightness — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 32767

max-brightness — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 32767

When the condition does not match (else) #

Properties and child nodes (properties)

default-brightness — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 4095

max-brightness — not listed as required here

Minimum value (minimum): 0

Maximum value (maximum): 4095

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,pmi8950-wled", "qcom,pmi8994-wled"

When the condition matches (then) #

Properties and child nodes (properties)

qcom,ovp-millivolt — not listed as required here

Allowed values (enum): 17800, 19400, 29500, 31000

Default value (default): 29500

When the condition does not match (else) #

Properties and child nodes (properties)

qcom,ovp-millivolt — not listed as required here

Allowed values (enum): 18100, 19600, 29600, 31100

Default value (default): 29600

Required in this object (required): "compatible", "reg", "label"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

backlight@d800 {
    compatible = "qcom,pm8941-wled";
    reg = <0xd800 0x100>;
    label = "backlight";

    qcom,cs-out;
    qcom,current-limit = <20>;
    qcom,current-boost-limit = <805>;
    qcom,switching-freq = <1600>;
    qcom,ovp = <29>;
    qcom,num-strings = <2>;
    qcom,enabled-strings = <0 1>;
 };

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page