Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/leds-rt4505.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Richtek RT4505 Single Channel LED Driver
0008 
0009 maintainers:
0010   - ChiYuan Huang <cy_huang@richtek.com>
0011 
0012 description: |
0013   The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for
0014   torch and flash mode, respectively.
0015 
0016   The data sheet can be found at:
0017     https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf
0018 
0019 properties:
0020   compatible:
0021     const: richtek,rt4505
0022 
0023   reg:
0024     description: I2C slave address of the controller.
0025     maxItems: 1
0026 
0027   led:
0028     type: object
0029     $ref: common.yaml#
0030 
0031 required:
0032   - compatible
0033   - reg
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/leds/common.h>
0040 
0041     i2c0 {
0042       #address-cells = <1>;
0043       #size-cells = <0>;
0044 
0045       led-controller@63 {
0046         compatible = "richtek,rt4505";
0047         reg = <0x63>;
0048 
0049         rt4505_flash: led {
0050           function = LED_FUNCTION_FLASH;
0051           color = <LED_COLOR_ID_WHITE>;
0052           led-max-microamp = <375000>;
0053           flash-max-microamp = <1500000>;
0054           flash-max-timeout-us = <800000>;
0055         };
0056       };
0057     };