~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/leds/backlight/ti,lm3509.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php