17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 27ef62cebSEmmanuel Vadot%YAML 1.2 37ef62cebSEmmanuel Vadot--- 47ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 57ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 67ef62cebSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: MediaTek MT6370 Backlight 87ef62cebSEmmanuel Vadot 97ef62cebSEmmanuel Vadotmaintainers: 107ef62cebSEmmanuel Vadot - ChiaEn Wu <chiaen_wu@richtek.com> 117ef62cebSEmmanuel Vadot 127ef62cebSEmmanuel Vadotdescription: | 137ef62cebSEmmanuel Vadot This module is part of the MT6370 MFD device. 147ef62cebSEmmanuel Vadot The MT6370 Backlight WLED driver supports up to a 29V output voltage for 157ef62cebSEmmanuel Vadot 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current 167ef62cebSEmmanuel Vadot capability with 2048 current steps (11 bits, only for MT6370/MT6371) or 177ef62cebSEmmanuel Vadot 16384 current steps (14 bits, only for MT6372) in exponential or linear 187ef62cebSEmmanuel Vadot mapping curves. 197ef62cebSEmmanuel Vadot 207ef62cebSEmmanuel VadotallOf: 217ef62cebSEmmanuel Vadot - $ref: common.yaml# 227ef62cebSEmmanuel Vadot 237ef62cebSEmmanuel Vadotproperties: 247ef62cebSEmmanuel Vadot compatible: 257ef62cebSEmmanuel Vadot enum: 267ef62cebSEmmanuel Vadot - mediatek,mt6370-backlight 277ef62cebSEmmanuel Vadot - mediatek,mt6372-backlight 287ef62cebSEmmanuel Vadot 297ef62cebSEmmanuel Vadot default-brightness: 307ef62cebSEmmanuel Vadot minimum: 0 317ef62cebSEmmanuel Vadot 327ef62cebSEmmanuel Vadot max-brightness: 337ef62cebSEmmanuel Vadot minimum: 0 347ef62cebSEmmanuel Vadot 357ef62cebSEmmanuel Vadot enable-gpios: 367ef62cebSEmmanuel Vadot description: External backlight 'enable' pin 377ef62cebSEmmanuel Vadot maxItems: 1 387ef62cebSEmmanuel Vadot 397ef62cebSEmmanuel Vadot mediatek,bled-pwm-enable: 407ef62cebSEmmanuel Vadot description: | 417ef62cebSEmmanuel Vadot Enable external PWM input for backlight dimming 427ef62cebSEmmanuel Vadot type: boolean 437ef62cebSEmmanuel Vadot 447ef62cebSEmmanuel Vadot mediatek,bled-pwm-hys-enable: 457ef62cebSEmmanuel Vadot description: | 467ef62cebSEmmanuel Vadot Enable the backlight input-hysteresis for PWM mode 477ef62cebSEmmanuel Vadot type: boolean 487ef62cebSEmmanuel Vadot 497ef62cebSEmmanuel Vadot mediatek,bled-pwm-hys-input-th-steps: 507ef62cebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8 517ef62cebSEmmanuel Vadot enum: [1, 4, 16, 64] 527ef62cebSEmmanuel Vadot description: | 537ef62cebSEmmanuel Vadot The selection of the upper and lower bounds threshold of backlight 547ef62cebSEmmanuel Vadot PWM resolution. If we choose selection 64, the variation of PWM 557ef62cebSEmmanuel Vadot resolution needs more than 64 steps. 567ef62cebSEmmanuel Vadot 577ef62cebSEmmanuel Vadot mediatek,bled-ovp-shutdown: 587ef62cebSEmmanuel Vadot description: | 597ef62cebSEmmanuel Vadot Enable the backlight shutdown when OVP level triggered 607ef62cebSEmmanuel Vadot type: boolean 617ef62cebSEmmanuel Vadot 627ef62cebSEmmanuel Vadot mediatek,bled-ovp-microvolt: 637ef62cebSEmmanuel Vadot enum: [17000000, 21000000, 25000000, 29000000] 647ef62cebSEmmanuel Vadot description: | 657ef62cebSEmmanuel Vadot Backlight OVP level selection. 667ef62cebSEmmanuel Vadot 677ef62cebSEmmanuel Vadot mediatek,bled-ocp-shutdown: 687ef62cebSEmmanuel Vadot description: | 69*aa1a8ff2SEmmanuel Vadot Enable the backlight shutdown when OCP level triggered. 707ef62cebSEmmanuel Vadot type: boolean 717ef62cebSEmmanuel Vadot 727ef62cebSEmmanuel Vadot mediatek,bled-ocp-microamp: 737ef62cebSEmmanuel Vadot enum: [900000, 1200000, 1500000, 1800000] 747ef62cebSEmmanuel Vadot description: | 757ef62cebSEmmanuel Vadot Backlight OC level selection. 767ef62cebSEmmanuel Vadot 777ef62cebSEmmanuel Vadot mediatek,bled-exponential-mode-enable: 787ef62cebSEmmanuel Vadot description: | 797ef62cebSEmmanuel Vadot Enable the exponential mode of backlight brightness. If this property 807ef62cebSEmmanuel Vadot is not enabled, the default is to use linear mode. 817ef62cebSEmmanuel Vadot type: boolean 827ef62cebSEmmanuel Vadot 837ef62cebSEmmanuel Vadot mediatek,bled-channel-use: 847ef62cebSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint8 857ef62cebSEmmanuel Vadot description: | 867ef62cebSEmmanuel Vadot Backlight LED channel to be used. 877ef62cebSEmmanuel Vadot Each bit mapping to: 887ef62cebSEmmanuel Vadot - 0: CH4 897ef62cebSEmmanuel Vadot - 1: CH3 907ef62cebSEmmanuel Vadot - 2: CH2 917ef62cebSEmmanuel Vadot - 3: CH1 927ef62cebSEmmanuel Vadot minimum: 1 937ef62cebSEmmanuel Vadot maximum: 15 947ef62cebSEmmanuel Vadot 957ef62cebSEmmanuel Vadotif: 967ef62cebSEmmanuel Vadot properties: 977ef62cebSEmmanuel Vadot compatible: 987ef62cebSEmmanuel Vadot contains: 997ef62cebSEmmanuel Vadot const: mediatek,mt6372-backlight 1007ef62cebSEmmanuel Vadot 1017ef62cebSEmmanuel Vadotthen: 1027ef62cebSEmmanuel Vadot properties: 1037ef62cebSEmmanuel Vadot default-brightness: 1047ef62cebSEmmanuel Vadot maximum: 16384 1057ef62cebSEmmanuel Vadot 1067ef62cebSEmmanuel Vadot max-brightness: 1077ef62cebSEmmanuel Vadot maximum: 16384 1087ef62cebSEmmanuel Vadot 1097ef62cebSEmmanuel Vadotelse: 1107ef62cebSEmmanuel Vadot properties: 1117ef62cebSEmmanuel Vadot default-brightness: 1127ef62cebSEmmanuel Vadot maximum: 2048 1137ef62cebSEmmanuel Vadot 1147ef62cebSEmmanuel Vadot max-brightness: 1157ef62cebSEmmanuel Vadot maximum: 2048 1167ef62cebSEmmanuel Vadot 1177ef62cebSEmmanuel Vadotrequired: 1187ef62cebSEmmanuel Vadot - compatible 1197ef62cebSEmmanuel Vadot - mediatek,bled-channel-use 1207ef62cebSEmmanuel Vadot 1217ef62cebSEmmanuel VadotadditionalProperties: false 122