1*0aaee23dSPatrick Gansterer# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*0aaee23dSPatrick Gansterer%YAML 1.2 3*0aaee23dSPatrick Gansterer--- 4*0aaee23dSPatrick Gansterer$id: http://devicetree.org/schemas/leds/backlight/ti,lm3509.yaml# 5*0aaee23dSPatrick Gansterer$schema: http://devicetree.org/meta-schemas/core.yaml# 6*0aaee23dSPatrick Gansterer 7*0aaee23dSPatrick Gansterertitle: TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays 8*0aaee23dSPatrick Gansterer 9*0aaee23dSPatrick Gansterermaintainers: 10*0aaee23dSPatrick Gansterer - Patrick Gansterer <paroga@paroga.com> 11*0aaee23dSPatrick Gansterer 12*0aaee23dSPatrick Ganstererdescription: 13*0aaee23dSPatrick Gansterer The LM3509 current mode boost converter offers two separate outputs. 14*0aaee23dSPatrick Gansterer https://www.ti.com/product/LM3509 15*0aaee23dSPatrick Gansterer 16*0aaee23dSPatrick Ganstererproperties: 17*0aaee23dSPatrick Gansterer compatible: 18*0aaee23dSPatrick Gansterer const: ti,lm3509 19*0aaee23dSPatrick Gansterer 20*0aaee23dSPatrick Gansterer reg: 21*0aaee23dSPatrick Gansterer maxItems: 1 22*0aaee23dSPatrick Gansterer 23*0aaee23dSPatrick Gansterer "#address-cells": 24*0aaee23dSPatrick Gansterer const: 1 25*0aaee23dSPatrick Gansterer 26*0aaee23dSPatrick Gansterer "#size-cells": 27*0aaee23dSPatrick Gansterer const: 0 28*0aaee23dSPatrick Gansterer 29*0aaee23dSPatrick Gansterer reset-gpios: 30*0aaee23dSPatrick Gansterer maxItems: 1 31*0aaee23dSPatrick Gansterer 32*0aaee23dSPatrick Gansterer ti,brightness-rate-of-change-us: 33*0aaee23dSPatrick Gansterer description: Brightness Rate of Change in microseconds. 34*0aaee23dSPatrick Gansterer enum: [51, 13000, 26000, 52000] 35*0aaee23dSPatrick Gansterer 36*0aaee23dSPatrick Gansterer ti,oled-mode: 37*0aaee23dSPatrick Gansterer description: Enable OLED mode. 38*0aaee23dSPatrick Gansterer type: boolean 39*0aaee23dSPatrick Gansterer 40*0aaee23dSPatrick GanstererpatternProperties: 41*0aaee23dSPatrick Gansterer "^led@[01]$": 42*0aaee23dSPatrick Gansterer type: object 43*0aaee23dSPatrick Gansterer description: Properties for a string of connected LEDs. 44*0aaee23dSPatrick Gansterer $ref: common.yaml# 45*0aaee23dSPatrick Gansterer 46*0aaee23dSPatrick Gansterer properties: 47*0aaee23dSPatrick Gansterer reg: 48*0aaee23dSPatrick Gansterer description: 49*0aaee23dSPatrick Gansterer The control register that is used to program the two current sinks. 50*0aaee23dSPatrick Gansterer The LM3509 has two registers (BMAIN and BSUB) and are represented 51*0aaee23dSPatrick Gansterer as 0 or 1 in this property. The two current sinks can be controlled 52*0aaee23dSPatrick Gansterer independently with both registers, or register BMAIN can be 53*0aaee23dSPatrick Gansterer configured to control both sinks with the led-sources property. 54*0aaee23dSPatrick Gansterer minimum: 0 55*0aaee23dSPatrick Gansterer maximum: 1 56*0aaee23dSPatrick Gansterer 57*0aaee23dSPatrick Gansterer label: true 58*0aaee23dSPatrick Gansterer 59*0aaee23dSPatrick Gansterer led-sources: 60*0aaee23dSPatrick Gansterer minItems: 1 61*0aaee23dSPatrick Gansterer maxItems: 2 62*0aaee23dSPatrick Gansterer items: 63*0aaee23dSPatrick Gansterer minimum: 0 64*0aaee23dSPatrick Gansterer maximum: 1 65*0aaee23dSPatrick Gansterer 66*0aaee23dSPatrick Gansterer default-brightness: 67*0aaee23dSPatrick Gansterer minimum: 0 68*0aaee23dSPatrick Gansterer maximum: 31 69*0aaee23dSPatrick Gansterer default: 18 70*0aaee23dSPatrick Gansterer 71*0aaee23dSPatrick Gansterer max-brightness: 72*0aaee23dSPatrick Gansterer minimum: 0 73*0aaee23dSPatrick Gansterer maximum: 31 74*0aaee23dSPatrick Gansterer default: 31 75*0aaee23dSPatrick Gansterer 76*0aaee23dSPatrick Gansterer required: 77*0aaee23dSPatrick Gansterer - reg 78*0aaee23dSPatrick Gansterer 79*0aaee23dSPatrick Gansterer additionalProperties: false 80*0aaee23dSPatrick Gansterer 81*0aaee23dSPatrick Ganstererrequired: 82*0aaee23dSPatrick Gansterer - compatible 83*0aaee23dSPatrick Gansterer - reg 84*0aaee23dSPatrick Gansterer 85*0aaee23dSPatrick GanstereradditionalProperties: false 86*0aaee23dSPatrick Gansterer 87*0aaee23dSPatrick Ganstererexamples: 88*0aaee23dSPatrick Gansterer - | 89*0aaee23dSPatrick Gansterer #include <dt-bindings/gpio/gpio.h> 90*0aaee23dSPatrick Gansterer i2c { 91*0aaee23dSPatrick Gansterer #address-cells = <1>; 92*0aaee23dSPatrick Gansterer #size-cells = <0>; 93*0aaee23dSPatrick Gansterer 94*0aaee23dSPatrick Gansterer backlight@36 { 95*0aaee23dSPatrick Gansterer compatible = "ti,lm3509"; 96*0aaee23dSPatrick Gansterer reg = <0x36>; 97*0aaee23dSPatrick Gansterer reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; 98*0aaee23dSPatrick Gansterer 99*0aaee23dSPatrick Gansterer ti,oled-mode; 100*0aaee23dSPatrick Gansterer ti,brightness-rate-of-change-us = <52000>; 101*0aaee23dSPatrick Gansterer 102*0aaee23dSPatrick Gansterer #address-cells = <1>; 103*0aaee23dSPatrick Gansterer #size-cells = <0>; 104*0aaee23dSPatrick Gansterer 105*0aaee23dSPatrick Gansterer led@0 { 106*0aaee23dSPatrick Gansterer reg = <0>; 107*0aaee23dSPatrick Gansterer led-sources = <0 1>; 108*0aaee23dSPatrick Gansterer label = "lcd-backlight"; 109*0aaee23dSPatrick Gansterer default-brightness = <12>; 110*0aaee23dSPatrick Gansterer max-brightness = <31>; 111*0aaee23dSPatrick Gansterer }; 112*0aaee23dSPatrick Gansterer }; 113*0aaee23dSPatrick Gansterer }; 114*0aaee23dSPatrick Gansterer - | 115*0aaee23dSPatrick Gansterer i2c { 116*0aaee23dSPatrick Gansterer #address-cells = <1>; 117*0aaee23dSPatrick Gansterer #size-cells = <0>; 118*0aaee23dSPatrick Gansterer 119*0aaee23dSPatrick Gansterer backlight@36 { 120*0aaee23dSPatrick Gansterer compatible = "ti,lm3509"; 121*0aaee23dSPatrick Gansterer reg = <0x36>; 122*0aaee23dSPatrick Gansterer 123*0aaee23dSPatrick Gansterer #address-cells = <1>; 124*0aaee23dSPatrick Gansterer #size-cells = <0>; 125*0aaee23dSPatrick Gansterer 126*0aaee23dSPatrick Gansterer led@0 { 127*0aaee23dSPatrick Gansterer reg = <0>; 128*0aaee23dSPatrick Gansterer default-brightness = <12>; 129*0aaee23dSPatrick Gansterer }; 130*0aaee23dSPatrick Gansterer 131*0aaee23dSPatrick Gansterer led@1 { 132*0aaee23dSPatrick Gansterer reg = <1>; 133*0aaee23dSPatrick Gansterer default-brightness = <15>; 134*0aaee23dSPatrick Gansterer }; 135*0aaee23dSPatrick Gansterer }; 136*0aaee23dSPatrick Gansterer }; 137