MediaTek MT6370 Backlight

Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml#"

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

Maintainers (maintainers): "ChiaEn Wu <chiaen_wu@richtek.com>"

This module is part of the MT6370 MFD device. The MT6370 Backlight WLED driver supports up to a 29V output voltage for 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current capability with 2048 current steps (11 bits, only for MT6370/MT6371) or 16384 current steps (14 bits, only for MT6372) in exponential or linear mapping curves.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt6370-backlight", "mediatek,mt6372-backlight"

default-brightness — not listed as required here #

Minimum value (minimum): 0

max-brightness — not listed as required here #

Minimum value (minimum): 0

enable-gpios — not listed as required here #

External backlight 'enable' pin

Maximum number of items (maxItems): 1

mediatek,bled-pwm-enable — not listed as required here #

Enable external PWM input for backlight dimming

Value type (type): "boolean"

mediatek,bled-pwm-hys-enable — not listed as required here #

Enable the backlight input-hysteresis for PWM mode

Value type (type): "boolean"

mediatek,bled-pwm-hys-input-th-steps — not listed as required here #

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

Allowed values (enum): 1, 4, 16, 64

The selection of the upper and lower bounds threshold of backlight PWM resolution. If we choose selection 64, the variation of PWM resolution needs more than 64 steps.

mediatek,bled-ovp-shutdown — not listed as required here #

Enable the backlight shutdown when OVP level triggered

Value type (type): "boolean"

mediatek,bled-ovp-microvolt — not listed as required here #

Allowed values (enum): 17000000, 21000000, 25000000, 29000000

Backlight OVP level selection.

mediatek,bled-ocp-shutdown — not listed as required here #

Enable the backlight shutdown when OCP level triggered.

Value type (type): "boolean"

mediatek,bled-ocp-microamp — not listed as required here #

Allowed values (enum): 900000, 1200000, 1500000, 1800000

Backlight OC level selection.

mediatek,bled-exponential-mode-enable — not listed as required here #

Enable the exponential mode of backlight brightness. If this property is not enabled, the default is to use linear mode.

Value type (type): "boolean"

mediatek,bled-channel-use — required here #

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

Backlight LED channel to be used.
Each bit mapping to:
  - 0: CH4
  - 1: CH3
  - 2: CH2
  - 3: CH1

Minimum value (minimum): 1

Maximum value (maximum): 15

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt6372-backlight"

When the condition matches (then) #

Properties and child nodes (properties) #

default-brightness — not listed as required here #

Maximum value (maximum): 16384

max-brightness — not listed as required here #

Maximum value (maximum): 16384

When the condition does not match (else) #

Properties and child nodes (properties) #

default-brightness — not listed as required here #

Maximum value (maximum): 2048

max-brightness — not listed as required here #

Maximum value (maximum): 2048

Required in this object (required): "compatible", "mediatek,bled-channel-use"

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

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

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

Edit this page