1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/awinic,aw200xx.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AWINIC AW200XX LED
10 - Martin Kurbanov <mmkurbanov@sberdevices.ru>
13 It is a matrix LED driver programmed via an I2C interface. Devices have
14 a set of individually controlled leds and support 3 pattern controllers
15 for auto breathing or group dimming control. Supported devices:
16 - AW20036 (3x12) 36 LEDs
17 - AW20054 (6x9) 54 LEDs
18 - AW20072 (6x12) 72 LEDs
19 - AW20108 (9x12) 108 LEDs
21 For more product information please see the link below:
22 aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs
23 aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs
24 aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs
25 aw20108 - https://www.awinic.com/en/productDetail/AW20108QNR#tech-docs
51 unevaluatedProperties: false
62 Note that a driver will take the minimum of all LED limits
63 since the chip has a single global setting.
64 The maximum output current of each LED is calculated by the
66 IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number)
67 And the minimum output current formula:
68 IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number)
69 where max-current-switch-number is determined by led configuration
70 and depends on how leds are physically connected to the led driver.
105 const: awinic,aw20072
119 const: awinic,aw20108
135 additionalProperties: false
139 #include <dt-bindings/gpio/gpio.h>
140 #include <dt-bindings/leds/common.h>
143 #address-cells = <1>;
147 compatible = "awinic,aw20036";
149 #address-cells = <1>;
151 enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
155 color = <LED_COLOR_ID_RED>;
156 led-max-microamp = <9780>;
161 color = <LED_COLOR_ID_GREEN>;
162 led-max-microamp = <9780>;
167 color = <LED_COLOR_ID_BLUE>;
168 led-max-microamp = <9780>;