1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*7ef62cebSEmmanuel Vadot%YAML 1.2 3*7ef62cebSEmmanuel Vadot--- 4*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 5*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*7ef62cebSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: MediaTek MT6370 Backlight 8*7ef62cebSEmmanuel Vadot 9*7ef62cebSEmmanuel Vadotmaintainers: 10*7ef62cebSEmmanuel Vadot - ChiaEn Wu <chiaen_wu@richtek.com> 11*7ef62cebSEmmanuel Vadot 12*7ef62cebSEmmanuel Vadotdescription: | 13*7ef62cebSEmmanuel Vadot This module is part of the MT6370 MFD device. 14*7ef62cebSEmmanuel Vadot The MT6370 Backlight WLED driver supports up to a 29V output voltage for 15*7ef62cebSEmmanuel Vadot 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current 16*7ef62cebSEmmanuel Vadot capability with 2048 current steps (11 bits, only for MT6370/MT6371) or 17*7ef62cebSEmmanuel Vadot 16384 current steps (14 bits, only for MT6372) in exponential or linear 18*7ef62cebSEmmanuel Vadot mapping curves. 19*7ef62cebSEmmanuel Vadot 20*7ef62cebSEmmanuel VadotallOf: 21*7ef62cebSEmmanuel Vadot - $ref: common.yaml# 22*7ef62cebSEmmanuel Vadot 23*7ef62cebSEmmanuel Vadotproperties: 24*7ef62cebSEmmanuel Vadot compatible: 25*7ef62cebSEmmanuel Vadot enum: 26*7ef62cebSEmmanuel Vadot - mediatek,mt6370-backlight 27*7ef62cebSEmmanuel Vadot - mediatek,mt6372-backlight 28*7ef62cebSEmmanuel Vadot 29*7ef62cebSEmmanuel Vadot default-brightness: 30*7ef62cebSEmmanuel Vadot minimum: 0 31*7ef62cebSEmmanuel Vadot 32*7ef62cebSEmmanuel Vadot max-brightness: 33*7ef62cebSEmmanuel Vadot minimum: 0 34*7ef62cebSEmmanuel Vadot 35*7ef62cebSEmmanuel Vadot enable-gpios: 36*7ef62cebSEmmanuel Vadot description: External backlight 'enable' pin 37*7ef62cebSEmmanuel Vadot maxItems: 1 38*7ef62cebSEmmanuel Vadot 39*7ef62cebSEmmanuel Vadot mediatek,bled-pwm-enable: 40*7ef62cebSEmmanuel Vadot description: | 41*7ef62cebSEmmanuel Vadot Enable external PWM input for backlight dimming 42*7ef62cebSEmmanuel Vadot type: boolean 43*7ef62cebSEmmanuel Vadot 44*7ef62cebSEmmanuel Vadot mediatek,bled-pwm-hys-enable: 45*7ef62cebSEmmanuel Vadot description: | 46*7ef62cebSEmmanuel Vadot Enable the backlight input-hysteresis for PWM mode 47*7ef62cebSEmmanuel Vadot type: boolean 48*7ef62cebSEmmanuel Vadot 49*7ef62cebSEmmanuel Vadot mediatek,bled-pwm-hys-input-th-steps: 50*7ef62cebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8 51*7ef62cebSEmmanuel Vadot enum: [1, 4, 16, 64] 52*7ef62cebSEmmanuel Vadot description: | 53*7ef62cebSEmmanuel Vadot The selection of the upper and lower bounds threshold of backlight 54*7ef62cebSEmmanuel Vadot PWM resolution. If we choose selection 64, the variation of PWM 55*7ef62cebSEmmanuel Vadot resolution needs more than 64 steps. 56*7ef62cebSEmmanuel Vadot 57*7ef62cebSEmmanuel Vadot mediatek,bled-ovp-shutdown: 58*7ef62cebSEmmanuel Vadot description: | 59*7ef62cebSEmmanuel Vadot Enable the backlight shutdown when OVP level triggered 60*7ef62cebSEmmanuel Vadot type: boolean 61*7ef62cebSEmmanuel Vadot 62*7ef62cebSEmmanuel Vadot mediatek,bled-ovp-microvolt: 63*7ef62cebSEmmanuel Vadot enum: [17000000, 21000000, 25000000, 29000000] 64*7ef62cebSEmmanuel Vadot description: | 65*7ef62cebSEmmanuel Vadot Backlight OVP level selection. 66*7ef62cebSEmmanuel Vadot 67*7ef62cebSEmmanuel Vadot mediatek,bled-ocp-shutdown: 68*7ef62cebSEmmanuel Vadot description: | 69*7ef62cebSEmmanuel Vadot Enable the backlight shutdown when OCP level triggerred. 70*7ef62cebSEmmanuel Vadot type: boolean 71*7ef62cebSEmmanuel Vadot 72*7ef62cebSEmmanuel Vadot mediatek,bled-ocp-microamp: 73*7ef62cebSEmmanuel Vadot enum: [900000, 1200000, 1500000, 1800000] 74*7ef62cebSEmmanuel Vadot description: | 75*7ef62cebSEmmanuel Vadot Backlight OC level selection. 76*7ef62cebSEmmanuel Vadot 77*7ef62cebSEmmanuel Vadot mediatek,bled-exponential-mode-enable: 78*7ef62cebSEmmanuel Vadot description: | 79*7ef62cebSEmmanuel Vadot Enable the exponential mode of backlight brightness. If this property 80*7ef62cebSEmmanuel Vadot is not enabled, the default is to use linear mode. 81*7ef62cebSEmmanuel Vadot type: boolean 82*7ef62cebSEmmanuel Vadot 83*7ef62cebSEmmanuel Vadot mediatek,bled-channel-use: 84*7ef62cebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8 85*7ef62cebSEmmanuel Vadot description: | 86*7ef62cebSEmmanuel Vadot Backlight LED channel to be used. 87*7ef62cebSEmmanuel Vadot Each bit mapping to: 88*7ef62cebSEmmanuel Vadot - 0: CH4 89*7ef62cebSEmmanuel Vadot - 1: CH3 90*7ef62cebSEmmanuel Vadot - 2: CH2 91*7ef62cebSEmmanuel Vadot - 3: CH1 92*7ef62cebSEmmanuel Vadot minimum: 1 93*7ef62cebSEmmanuel Vadot maximum: 15 94*7ef62cebSEmmanuel Vadot 95*7ef62cebSEmmanuel Vadotif: 96*7ef62cebSEmmanuel Vadot properties: 97*7ef62cebSEmmanuel Vadot compatible: 98*7ef62cebSEmmanuel Vadot contains: 99*7ef62cebSEmmanuel Vadot const: mediatek,mt6372-backlight 100*7ef62cebSEmmanuel Vadot 101*7ef62cebSEmmanuel Vadotthen: 102*7ef62cebSEmmanuel Vadot properties: 103*7ef62cebSEmmanuel Vadot default-brightness: 104*7ef62cebSEmmanuel Vadot maximum: 16384 105*7ef62cebSEmmanuel Vadot 106*7ef62cebSEmmanuel Vadot max-brightness: 107*7ef62cebSEmmanuel Vadot maximum: 16384 108*7ef62cebSEmmanuel Vadot 109*7ef62cebSEmmanuel Vadotelse: 110*7ef62cebSEmmanuel Vadot properties: 111*7ef62cebSEmmanuel Vadot default-brightness: 112*7ef62cebSEmmanuel Vadot maximum: 2048 113*7ef62cebSEmmanuel Vadot 114*7ef62cebSEmmanuel Vadot max-brightness: 115*7ef62cebSEmmanuel Vadot maximum: 2048 116*7ef62cebSEmmanuel Vadot 117*7ef62cebSEmmanuel Vadotrequired: 118*7ef62cebSEmmanuel Vadot - compatible 119*7ef62cebSEmmanuel Vadot - mediatek,bled-channel-use 120*7ef62cebSEmmanuel Vadot 121*7ef62cebSEmmanuel VadotadditionalProperties: false 122