132fcb75cSBrian Masney# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 232fcb75cSBrian Masney%YAML 1.2 332fcb75cSBrian Masney--- 432fcb75cSBrian Masney$id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# 532fcb75cSBrian Masney$schema: http://devicetree.org/meta-schemas/core.yaml# 632fcb75cSBrian Masney 732fcb75cSBrian Masneytitle: TI LM3630A High-Efficiency Dual-String White LED 832fcb75cSBrian Masney 932fcb75cSBrian Masneymaintainers: 1032fcb75cSBrian Masney - Lee Jones <lee.jones@linaro.org> 1132fcb75cSBrian Masney - Daniel Thompson <daniel.thompson@linaro.org> 1232fcb75cSBrian Masney - Jingoo Han <jingoohan1@gmail.com> 1332fcb75cSBrian Masney 1432fcb75cSBrian Masneydescription: | 1532fcb75cSBrian Masney The LM3630A is a current-mode boost converter which supplies the power and 1632fcb75cSBrian Masney controls the current in up to two strings of 10 LEDs per string. 1732fcb75cSBrian Masney https://www.ti.com/product/LM3630A 1832fcb75cSBrian Masney 1932fcb75cSBrian Masneyproperties: 2032fcb75cSBrian Masney compatible: 2132fcb75cSBrian Masney const: ti,lm3630a 2232fcb75cSBrian Masney 2332fcb75cSBrian Masney reg: 2432fcb75cSBrian Masney maxItems: 1 2532fcb75cSBrian Masney 26ef4db28cSBrian Masney '#address-cells': 27ef4db28cSBrian Masney const: 1 28ef4db28cSBrian Masney 29ef4db28cSBrian Masney '#size-cells': 30ef4db28cSBrian Masney const: 0 3132fcb75cSBrian Masney 32*ae92365cSAndreas Kemnade enable-gpios: 33*ae92365cSAndreas Kemnade description: GPIO to use to enable/disable the backlight (HWEN pin). 34*ae92365cSAndreas Kemnade maxItems: 1 35*ae92365cSAndreas Kemnade 3632fcb75cSBrian Masneyrequired: 3732fcb75cSBrian Masney - compatible 3832fcb75cSBrian Masney - reg 39ef4db28cSBrian Masney - '#address-cells' 40ef4db28cSBrian Masney - '#size-cells' 4132fcb75cSBrian Masney 4232fcb75cSBrian MasneypatternProperties: 4332fcb75cSBrian Masney "^led@[01]$": 4432fcb75cSBrian Masney type: object 4532fcb75cSBrian Masney description: | 4632fcb75cSBrian Masney Properties for a string of connected LEDs. 4732fcb75cSBrian Masney 4832fcb75cSBrian Masney properties: 4932fcb75cSBrian Masney reg: 5032fcb75cSBrian Masney description: | 5132fcb75cSBrian Masney The control bank that is used to program the two current sinks. The 5232fcb75cSBrian Masney LM3630A has two control banks (A and B) and are represented as 0 or 1 5332fcb75cSBrian Masney in this property. The two current sinks can be controlled 5432fcb75cSBrian Masney independently with both banks, or bank A can be configured to control 5532fcb75cSBrian Masney both sinks with the led-sources property. 5632fcb75cSBrian Masney minimum: 0 5732fcb75cSBrian Masney maximum: 1 5832fcb75cSBrian Masney 5932fcb75cSBrian Masney label: 6032fcb75cSBrian Masney maxItems: 1 6132fcb75cSBrian Masney 6232fcb75cSBrian Masney led-sources: 6332fcb75cSBrian Masney allOf: 6432fcb75cSBrian Masney - minItems: 1 6532fcb75cSBrian Masney maxItems: 2 6632fcb75cSBrian Masney items: 6732fcb75cSBrian Masney minimum: 0 6832fcb75cSBrian Masney maximum: 1 6932fcb75cSBrian Masney 7032fcb75cSBrian Masney default-brightness: 7132fcb75cSBrian Masney description: Default brightness level on boot. 7232fcb75cSBrian Masney minimum: 0 7332fcb75cSBrian Masney maximum: 255 7432fcb75cSBrian Masney 7532fcb75cSBrian Masney max-brightness: 7632fcb75cSBrian Masney description: Maximum brightness that is allowed during runtime. 7732fcb75cSBrian Masney minimum: 0 7832fcb75cSBrian Masney maximum: 255 7932fcb75cSBrian Masney 80ef4db28cSBrian Masney ti,linear-mapping-mode: 81ef4db28cSBrian Masney description: | 82ef4db28cSBrian Masney Enable linear mapping mode. If disabled, then it will use exponential 83ef4db28cSBrian Masney mapping mode in which the ramp up/down appears to have a more uniform 84ef4db28cSBrian Masney transition to the human eye. 85ef4db28cSBrian Masney type: boolean 86ef4db28cSBrian Masney 8732fcb75cSBrian Masney required: 8832fcb75cSBrian Masney - reg 8932fcb75cSBrian Masney 9032fcb75cSBrian Masney additionalProperties: false 9132fcb75cSBrian Masney 9232fcb75cSBrian MasneyadditionalProperties: false 9332fcb75cSBrian Masney 9432fcb75cSBrian Masneyexamples: 9532fcb75cSBrian Masney - | 9632fcb75cSBrian Masney i2c { 9732fcb75cSBrian Masney #address-cells = <1>; 9832fcb75cSBrian Masney #size-cells = <0>; 9932fcb75cSBrian Masney 10032fcb75cSBrian Masney led-controller@38 { 10132fcb75cSBrian Masney compatible = "ti,lm3630a"; 10232fcb75cSBrian Masney reg = <0x38>; 103*ae92365cSAndreas Kemnade enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; 10432fcb75cSBrian Masney 10532fcb75cSBrian Masney #address-cells = <1>; 10632fcb75cSBrian Masney #size-cells = <0>; 10732fcb75cSBrian Masney 10832fcb75cSBrian Masney led@0 { 10932fcb75cSBrian Masney reg = <0>; 11032fcb75cSBrian Masney led-sources = <0 1>; 11132fcb75cSBrian Masney label = "lcd-backlight"; 11232fcb75cSBrian Masney default-brightness = <200>; 11332fcb75cSBrian Masney max-brightness = <255>; 11432fcb75cSBrian Masney }; 11532fcb75cSBrian Masney }; 11632fcb75cSBrian Masney }; 11732fcb75cSBrian Masney - | 11832fcb75cSBrian Masney i2c { 11932fcb75cSBrian Masney #address-cells = <1>; 12032fcb75cSBrian Masney #size-cells = <0>; 12132fcb75cSBrian Masney 12232fcb75cSBrian Masney led-controller@38 { 12332fcb75cSBrian Masney compatible = "ti,lm3630a"; 12432fcb75cSBrian Masney reg = <0x38>; 12532fcb75cSBrian Masney 12632fcb75cSBrian Masney #address-cells = <1>; 12732fcb75cSBrian Masney #size-cells = <0>; 12832fcb75cSBrian Masney 12932fcb75cSBrian Masney led@0 { 13032fcb75cSBrian Masney reg = <0>; 13132fcb75cSBrian Masney default-brightness = <150>; 13232fcb75cSBrian Masney ti,linear-mapping-mode; 13332fcb75cSBrian Masney }; 13432fcb75cSBrian Masney 13532fcb75cSBrian Masney led@1 { 13632fcb75cSBrian Masney reg = <1>; 13732fcb75cSBrian Masney default-brightness = <225>; 13832fcb75cSBrian Masney ti,linear-mapping-mode; 13932fcb75cSBrian Masney }; 14032fcb75cSBrian Masney }; 14132fcb75cSBrian Masney }; 142