1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/ti.lm36922.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Texas Instruments - LM3692x Highly Efficient White LED Driver 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Dan Murphy <dmurphy@ti.com> 11*b2d2a78aSEmmanuel Vadot 12*b2d2a78aSEmmanuel Vadotdescription: | 13*b2d2a78aSEmmanuel Vadot The LM3692x is an ultra-compact, highly efficient, 14*b2d2a78aSEmmanuel Vadot white-LED driver designed for LCD display backlighting. 15*b2d2a78aSEmmanuel Vadot 16*b2d2a78aSEmmanuel Vadot The main difference between the LM36922 and LM36923 is the number of 17*b2d2a78aSEmmanuel Vadot LED strings it supports. The LM36922 supports two strings while the LM36923 18*b2d2a78aSEmmanuel Vadot supports three strings. 19*b2d2a78aSEmmanuel Vadot 20*b2d2a78aSEmmanuel Vadot For more product information please see the link below: 21*b2d2a78aSEmmanuel Vadot https://www.ti.com/lit/ds/snvsa29/snvsa29.pdf 22*b2d2a78aSEmmanuel Vadot 23*b2d2a78aSEmmanuel Vadotproperties: 24*b2d2a78aSEmmanuel Vadot compatible: 25*b2d2a78aSEmmanuel Vadot enum: 26*b2d2a78aSEmmanuel Vadot - ti,lm36922 27*b2d2a78aSEmmanuel Vadot - ti,lm36923 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot reg: 30*b2d2a78aSEmmanuel Vadot maxItems: 1 31*b2d2a78aSEmmanuel Vadot 32*b2d2a78aSEmmanuel Vadot "#address-cells": 33*b2d2a78aSEmmanuel Vadot const: 1 34*b2d2a78aSEmmanuel Vadot 35*b2d2a78aSEmmanuel Vadot "#size-cells": 36*b2d2a78aSEmmanuel Vadot const: 0 37*b2d2a78aSEmmanuel Vadot 38*b2d2a78aSEmmanuel Vadot enable-gpios: 39*b2d2a78aSEmmanuel Vadot description: gpio pin to enable/disable the device. 40*b2d2a78aSEmmanuel Vadot 41*b2d2a78aSEmmanuel Vadot vled-supply: 42*b2d2a78aSEmmanuel Vadot description: LED supply 43*b2d2a78aSEmmanuel Vadot 44*b2d2a78aSEmmanuel Vadot ti,ovp-microvolt: 45*b2d2a78aSEmmanuel Vadot description: Overvoltage protection. 46*b2d2a78aSEmmanuel Vadot default: 29000000 47*b2d2a78aSEmmanuel Vadot enum: [17000000, 21000000, 25000000, 29000000] 48*b2d2a78aSEmmanuel Vadot 49*b2d2a78aSEmmanuel VadotpatternProperties: 50*b2d2a78aSEmmanuel Vadot '^led@[0-3]$': 51*b2d2a78aSEmmanuel Vadot type: object 52*b2d2a78aSEmmanuel Vadot $ref: common.yaml 53*b2d2a78aSEmmanuel Vadot properties: 54*b2d2a78aSEmmanuel Vadot reg: 55*b2d2a78aSEmmanuel Vadot enum: [0, 1, 2, 3] 56*b2d2a78aSEmmanuel Vadot description: | 57*b2d2a78aSEmmanuel Vadot 0 - Will enable all LED sync paths 58*b2d2a78aSEmmanuel Vadot 1 - Will enable the LED1 sync 59*b2d2a78aSEmmanuel Vadot 2 - Will enable the LED2 sync 60*b2d2a78aSEmmanuel Vadot 3 - Will enable the LED3 sync (LM36923 only) 61*b2d2a78aSEmmanuel Vadot 62*b2d2a78aSEmmanuel Vadot unevaluatedProperties: false 63*b2d2a78aSEmmanuel Vadot 64*b2d2a78aSEmmanuel Vadotrequired: 65*b2d2a78aSEmmanuel Vadot - compatible 66*b2d2a78aSEmmanuel Vadot - reg 67*b2d2a78aSEmmanuel Vadot - "#address-cells" 68*b2d2a78aSEmmanuel Vadot - "#size-cells" 69*b2d2a78aSEmmanuel Vadot 70*b2d2a78aSEmmanuel VadotallOf: 71*b2d2a78aSEmmanuel Vadot - if: 72*b2d2a78aSEmmanuel Vadot properties: 73*b2d2a78aSEmmanuel Vadot compatible: 74*b2d2a78aSEmmanuel Vadot contains: 75*b2d2a78aSEmmanuel Vadot const: ti,lm36922 76*b2d2a78aSEmmanuel Vadot then: 77*b2d2a78aSEmmanuel Vadot properties: 78*b2d2a78aSEmmanuel Vadot led@3: false 79*b2d2a78aSEmmanuel Vadot 80*b2d2a78aSEmmanuel VadotadditionalProperties: false 81*b2d2a78aSEmmanuel Vadot 82*b2d2a78aSEmmanuel Vadotexamples: 83*b2d2a78aSEmmanuel Vadot - | 84*b2d2a78aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 85*b2d2a78aSEmmanuel Vadot #include <dt-bindings/leds/common.h> 86*b2d2a78aSEmmanuel Vadot 87*b2d2a78aSEmmanuel Vadot i2c { 88*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 89*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 90*b2d2a78aSEmmanuel Vadot 91*b2d2a78aSEmmanuel Vadot led-controller@36 { 92*b2d2a78aSEmmanuel Vadot compatible = "ti,lm36922"; 93*b2d2a78aSEmmanuel Vadot reg = <0x36>; 94*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 95*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 96*b2d2a78aSEmmanuel Vadot 97*b2d2a78aSEmmanuel Vadot enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 98*b2d2a78aSEmmanuel Vadot vled-supply = <&vbatt>; 99*b2d2a78aSEmmanuel Vadot ti,ovp-microvolt = <29000000>; 100*b2d2a78aSEmmanuel Vadot 101*b2d2a78aSEmmanuel Vadot led@0 { 102*b2d2a78aSEmmanuel Vadot reg = <0>; 103*b2d2a78aSEmmanuel Vadot function = LED_FUNCTION_BACKLIGHT; 104*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 105*b2d2a78aSEmmanuel Vadot linux,default-trigger = "backlight"; 106*b2d2a78aSEmmanuel Vadot led-max-microamp = <20000>; 107*b2d2a78aSEmmanuel Vadot }; 108*b2d2a78aSEmmanuel Vadot }; 109*b2d2a78aSEmmanuel Vadot }; 110*b2d2a78aSEmmanuel Vadot 111