Awinic AW99706 6-channel WLED Backlight Driver

Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/awinic,aw99706.yaml#"

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

Maintainers (maintainers): "Junjie Cao <caojunjie650@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "awinic,aw99706"

reg — required here #

Maximum number of items (maxItems): 1

enable-gpios — required here #

GPIO to use to enable/disable the backlight (HWEN pin).

Maximum number of items (maxItems): 1

awinic,dim-mode — not listed as required here #

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

Select dimming mode of the device.
  0 = Bypass mode.
  1 = DC mode.
  2 = MIX mode(PWM at low brightness and DC at high brightness).
  3 = MIX-26k mode(MIX mode with different PWM frequency).

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

Default value (default): 1

awinic,sw-freq-hz — not listed as required here #

Boost switching frequency in Hz.

Allowed values (enum): 300000, 400000, 500000, 600000, 660000, 750000, 850000, 1000000, 1200000, 1330000, 1500000, 1700000

Default value (default): 750000

awinic,sw-ilmt-microamp — not listed as required here #

Switching current limitation in uA.

Allowed values (enum): 1500000, 2000000, 2500000, 3000000

Default value (default): 3000000

awinic,iled-max-microamp — not listed as required here #

Maximum LED current setting in uA.

Minimum value (minimum): 5000

Maximum value (maximum): 50000

Multiple of (multipleOf): 500

Default value (default): 20000

awinic,uvlo-thres-microvolt — not listed as required here #

UVLO(Under Voltage Lock Out) in uV.

Allowed values (enum): 2200000, 5000000

Default value (default): 2200000

awinic,ramp-ctl — not listed as required here #

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

Select ramp control and filter of the device.
  0 = Fade in/fade out.
  1 = Light filter.
  2 = Medium filter.
  3 = Heavy filter.

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

Default value (default): 2

Required in this object (required): "compatible", "reg", "enable-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    backlight@76 {
        compatible = "awinic,aw99706";
        reg = <0x76>;
        enable-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
        default-brightness = <2047>;
        max-brightness = <4095>;
        awinic,dim-mode = <1>;
        awinic,sw-freq-hz = <750000>;
        awinic,sw-ilmt-microamp = <3000000>;
        awinic,uvlo-thres-microvolt = <2200000>;
        awinic,iled-max-microamp = <20000>;
        awinic,ramp-ctl = <2>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page