116813ec5SChiYuan Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 216813ec5SChiYuan Huang%YAML 1.2 316813ec5SChiYuan Huang--- 416813ec5SChiYuan Huang$id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 516813ec5SChiYuan Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 616813ec5SChiYuan Huang 716813ec5SChiYuan Huangtitle: MediaTek MT6370 Backlight 816813ec5SChiYuan Huang 916813ec5SChiYuan Huangmaintainers: 1016813ec5SChiYuan Huang - ChiaEn Wu <chiaen_wu@richtek.com> 1116813ec5SChiYuan Huang 1216813ec5SChiYuan Huangdescription: | 1316813ec5SChiYuan Huang This module is part of the MT6370 MFD device. 1416813ec5SChiYuan Huang The MT6370 Backlight WLED driver supports up to a 29V output voltage for 1516813ec5SChiYuan Huang 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current 1616813ec5SChiYuan Huang capability with 2048 current steps (11 bits, only for MT6370/MT6371) or 1716813ec5SChiYuan Huang 16384 current steps (14 bits, only for MT6372) in exponential or linear 1816813ec5SChiYuan Huang mapping curves. 1916813ec5SChiYuan Huang 2016813ec5SChiYuan HuangallOf: 2116813ec5SChiYuan Huang - $ref: common.yaml# 2216813ec5SChiYuan Huang 2316813ec5SChiYuan Huangproperties: 2416813ec5SChiYuan Huang compatible: 2516813ec5SChiYuan Huang enum: 2616813ec5SChiYuan Huang - mediatek,mt6370-backlight 2716813ec5SChiYuan Huang - mediatek,mt6372-backlight 2816813ec5SChiYuan Huang 2916813ec5SChiYuan Huang default-brightness: 3016813ec5SChiYuan Huang minimum: 0 3116813ec5SChiYuan Huang 3216813ec5SChiYuan Huang max-brightness: 3316813ec5SChiYuan Huang minimum: 0 3416813ec5SChiYuan Huang 3516813ec5SChiYuan Huang enable-gpios: 3616813ec5SChiYuan Huang description: External backlight 'enable' pin 3716813ec5SChiYuan Huang maxItems: 1 3816813ec5SChiYuan Huang 3916813ec5SChiYuan Huang mediatek,bled-pwm-enable: 4016813ec5SChiYuan Huang description: | 4116813ec5SChiYuan Huang Enable external PWM input for backlight dimming 4216813ec5SChiYuan Huang type: boolean 4316813ec5SChiYuan Huang 4416813ec5SChiYuan Huang mediatek,bled-pwm-hys-enable: 4516813ec5SChiYuan Huang description: | 4616813ec5SChiYuan Huang Enable the backlight input-hysteresis for PWM mode 4716813ec5SChiYuan Huang type: boolean 4816813ec5SChiYuan Huang 4916813ec5SChiYuan Huang mediatek,bled-pwm-hys-input-th-steps: 5016813ec5SChiYuan Huang $ref: /schemas/types.yaml#/definitions/uint8 5116813ec5SChiYuan Huang enum: [1, 4, 16, 64] 5216813ec5SChiYuan Huang description: | 5316813ec5SChiYuan Huang The selection of the upper and lower bounds threshold of backlight 5416813ec5SChiYuan Huang PWM resolution. If we choose selection 64, the variation of PWM 5516813ec5SChiYuan Huang resolution needs more than 64 steps. 5616813ec5SChiYuan Huang 5716813ec5SChiYuan Huang mediatek,bled-ovp-shutdown: 5816813ec5SChiYuan Huang description: | 5916813ec5SChiYuan Huang Enable the backlight shutdown when OVP level triggered 6016813ec5SChiYuan Huang type: boolean 6116813ec5SChiYuan Huang 6216813ec5SChiYuan Huang mediatek,bled-ovp-microvolt: 6316813ec5SChiYuan Huang enum: [17000000, 21000000, 25000000, 29000000] 6416813ec5SChiYuan Huang description: | 6516813ec5SChiYuan Huang Backlight OVP level selection. 6616813ec5SChiYuan Huang 6716813ec5SChiYuan Huang mediatek,bled-ocp-shutdown: 6816813ec5SChiYuan Huang description: | 69*47aab533SBjorn Helgaas Enable the backlight shutdown when OCP level triggered. 7016813ec5SChiYuan Huang type: boolean 7116813ec5SChiYuan Huang 7216813ec5SChiYuan Huang mediatek,bled-ocp-microamp: 7316813ec5SChiYuan Huang enum: [900000, 1200000, 1500000, 1800000] 7416813ec5SChiYuan Huang description: | 7516813ec5SChiYuan Huang Backlight OC level selection. 7616813ec5SChiYuan Huang 7716813ec5SChiYuan Huang mediatek,bled-exponential-mode-enable: 7816813ec5SChiYuan Huang description: | 7916813ec5SChiYuan Huang Enable the exponential mode of backlight brightness. If this property 8016813ec5SChiYuan Huang is not enabled, the default is to use linear mode. 8116813ec5SChiYuan Huang type: boolean 8216813ec5SChiYuan Huang 8316813ec5SChiYuan Huang mediatek,bled-channel-use: 8416813ec5SChiYuan Huang $ref: /schemas/types.yaml#/definitions/uint8 8516813ec5SChiYuan Huang description: | 8616813ec5SChiYuan Huang Backlight LED channel to be used. 8716813ec5SChiYuan Huang Each bit mapping to: 8816813ec5SChiYuan Huang - 0: CH4 8916813ec5SChiYuan Huang - 1: CH3 9016813ec5SChiYuan Huang - 2: CH2 9116813ec5SChiYuan Huang - 3: CH1 9216813ec5SChiYuan Huang minimum: 1 9316813ec5SChiYuan Huang maximum: 15 9416813ec5SChiYuan Huang 9516813ec5SChiYuan Huangif: 9616813ec5SChiYuan Huang properties: 9716813ec5SChiYuan Huang compatible: 9816813ec5SChiYuan Huang contains: 9916813ec5SChiYuan Huang const: mediatek,mt6372-backlight 10016813ec5SChiYuan Huang 10116813ec5SChiYuan Huangthen: 10216813ec5SChiYuan Huang properties: 10316813ec5SChiYuan Huang default-brightness: 10416813ec5SChiYuan Huang maximum: 16384 10516813ec5SChiYuan Huang 10616813ec5SChiYuan Huang max-brightness: 10716813ec5SChiYuan Huang maximum: 16384 10816813ec5SChiYuan Huang 10916813ec5SChiYuan Huangelse: 11016813ec5SChiYuan Huang properties: 11116813ec5SChiYuan Huang default-brightness: 11216813ec5SChiYuan Huang maximum: 2048 11316813ec5SChiYuan Huang 11416813ec5SChiYuan Huang max-brightness: 11516813ec5SChiYuan Huang maximum: 2048 11616813ec5SChiYuan Huang 11716813ec5SChiYuan Huangrequired: 11816813ec5SChiYuan Huang - compatible 11916813ec5SChiYuan Huang - mediatek,bled-channel-use 12016813ec5SChiYuan Huang 12116813ec5SChiYuan HuangadditionalProperties: false 122