102c4e661SFlavio Suligoi# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 202c4e661SFlavio Suligoi%YAML 1.2 302c4e661SFlavio Suligoi--- 402c4e661SFlavio Suligoi$id: http://devicetree.org/schemas/leds/backlight/mps,mp3309c.yaml# 502c4e661SFlavio Suligoi$schema: http://devicetree.org/meta-schemas/core.yaml# 602c4e661SFlavio Suligoi 702c4e661SFlavio Suligoititle: MPS MP3309C backlight 802c4e661SFlavio Suligoi 902c4e661SFlavio Suligoimaintainers: 1002c4e661SFlavio Suligoi - Flavio Suligoi <f.suligoi@asem.it> 1102c4e661SFlavio Suligoi 1202c4e661SFlavio Suligoidescription: | 1302c4e661SFlavio Suligoi The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a 1402c4e661SFlavio Suligoi programmable switching frequency to optimize efficiency. 1502c4e661SFlavio Suligoi It supports two different dimming modes: 1602c4e661SFlavio Suligoi 17*87f33a1bSFlavio Suligoi - analog mode, via I2C commands, as default mode (32 dimming levels) 18*87f33a1bSFlavio Suligoi - PWM controlled mode (optional) 1902c4e661SFlavio Suligoi 2002c4e661SFlavio Suligoi The datasheet is available at: 2102c4e661SFlavio Suligoi https://www.monolithicpower.com/en/mp3309c.html 2202c4e661SFlavio Suligoi 2302c4e661SFlavio SuligoiallOf: 2402c4e661SFlavio Suligoi - $ref: common.yaml# 2502c4e661SFlavio Suligoi 2602c4e661SFlavio Suligoiproperties: 2702c4e661SFlavio Suligoi compatible: 2802c4e661SFlavio Suligoi const: mps,mp3309c 2902c4e661SFlavio Suligoi 3002c4e661SFlavio Suligoi reg: 3102c4e661SFlavio Suligoi maxItems: 1 3202c4e661SFlavio Suligoi 3302c4e661SFlavio Suligoi pwms: 3402c4e661SFlavio Suligoi description: if present, the backlight is controlled in PWM mode. 3502c4e661SFlavio Suligoi maxItems: 1 3602c4e661SFlavio Suligoi 3702c4e661SFlavio Suligoi enable-gpios: 3802c4e661SFlavio Suligoi description: GPIO used to enable the backlight in "analog-i2c" dimming mode. 3902c4e661SFlavio Suligoi maxItems: 1 4002c4e661SFlavio Suligoi 4102c4e661SFlavio Suligoi mps,overvoltage-protection-microvolt: 4202c4e661SFlavio Suligoi description: Overvoltage protection (13.5V, 24V or 35.5V). 4302c4e661SFlavio Suligoi enum: [ 13500000, 24000000, 35500000 ] 4402c4e661SFlavio Suligoi default: 35500000 4502c4e661SFlavio Suligoi 4602c4e661SFlavio Suligoi mps,no-sync-mode: 4702c4e661SFlavio Suligoi description: disable synchronous rectification mode 4802c4e661SFlavio Suligoi type: boolean 4902c4e661SFlavio Suligoi 5002c4e661SFlavio Suligoirequired: 5102c4e661SFlavio Suligoi - compatible 5202c4e661SFlavio Suligoi - reg 5302c4e661SFlavio Suligoi 5402c4e661SFlavio SuligoiunevaluatedProperties: false 5502c4e661SFlavio Suligoi 5602c4e661SFlavio Suligoiexamples: 5702c4e661SFlavio Suligoi - | 5802c4e661SFlavio Suligoi i2c { 5902c4e661SFlavio Suligoi #address-cells = <1>; 6002c4e661SFlavio Suligoi #size-cells = <0>; 6102c4e661SFlavio Suligoi 6202c4e661SFlavio Suligoi /* Backlight with PWM control */ 6302c4e661SFlavio Suligoi backlight_pwm: backlight@17 { 6402c4e661SFlavio Suligoi compatible = "mps,mp3309c"; 6502c4e661SFlavio Suligoi reg = <0x17>; 6602c4e661SFlavio Suligoi pwms = <&pwm1 0 3333333 0>; /* 300 Hz --> (1/f) * 1*10^9 */ 67*87f33a1bSFlavio Suligoi brightness-levels = <0 4 8 16 32 64 128 255>; 68*87f33a1bSFlavio Suligoi default-brightness = <6>; 6902c4e661SFlavio Suligoi mps,overvoltage-protection-microvolt = <24000000>; 7002c4e661SFlavio Suligoi }; 7102c4e661SFlavio Suligoi }; 72