1c8891360SChiYuan Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c8891360SChiYuan Huang%YAML 1.2 3c8891360SChiYuan Huang--- 4c8891360SChiYuan Huang$id: http://devicetree.org/schemas/leds/leds-rt4505.yaml# 5c8891360SChiYuan Huang$schema: http://devicetree.org/meta-schemas/core.yaml# 6c8891360SChiYuan Huang 7c8891360SChiYuan Huangtitle: Richtek RT4505 Single Channel LED Driver 8c8891360SChiYuan Huang 9c8891360SChiYuan Huangmaintainers: 10c8891360SChiYuan Huang - ChiYuan Huang <cy_huang@richtek.com> 11c8891360SChiYuan Huang 12c8891360SChiYuan Huangdescription: | 13c8891360SChiYuan Huang The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for 14c8891360SChiYuan Huang torch and flash mode, respectively. 15c8891360SChiYuan Huang 16c8891360SChiYuan Huang The data sheet can be found at: 17c8891360SChiYuan Huang https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf 18c8891360SChiYuan Huang 19c8891360SChiYuan Huangproperties: 20c8891360SChiYuan Huang compatible: 21c8891360SChiYuan Huang const: richtek,rt4505 22c8891360SChiYuan Huang 23c8891360SChiYuan Huang reg: 24c8891360SChiYuan Huang description: I2C slave address of the controller. 25c8891360SChiYuan Huang maxItems: 1 26c8891360SChiYuan Huang 27c8891360SChiYuan Huang led: 28c8891360SChiYuan Huang type: object 29c8891360SChiYuan Huang $ref: common.yaml# 30fe469e83SKrzysztof Kozlowski unevaluatedProperties: false 31c8891360SChiYuan Huang 32c8891360SChiYuan Huangrequired: 33c8891360SChiYuan Huang - compatible 34c8891360SChiYuan Huang - reg 35c8891360SChiYuan Huang 36c8891360SChiYuan HuangadditionalProperties: false 37c8891360SChiYuan Huang 38c8891360SChiYuan Huangexamples: 39c8891360SChiYuan Huang - | 40c8891360SChiYuan Huang #include <dt-bindings/leds/common.h> 41c8891360SChiYuan Huang 42*20a72af1SRob Herring i2c { 43c8891360SChiYuan Huang #address-cells = <1>; 44c8891360SChiYuan Huang #size-cells = <0>; 45c8891360SChiYuan Huang 46c8891360SChiYuan Huang led-controller@63 { 47c8891360SChiYuan Huang compatible = "richtek,rt4505"; 48c8891360SChiYuan Huang reg = <0x63>; 49c8891360SChiYuan Huang 50c8891360SChiYuan Huang rt4505_flash: led { 51c8891360SChiYuan Huang function = LED_FUNCTION_FLASH; 52c8891360SChiYuan Huang color = <LED_COLOR_ID_WHITE>; 53c8891360SChiYuan Huang led-max-microamp = <375000>; 54c8891360SChiYuan Huang flash-max-microamp = <1500000>; 55c8891360SChiYuan Huang flash-max-timeout-us = <800000>; 56c8891360SChiYuan Huang }; 57c8891360SChiYuan Huang }; 58c8891360SChiYuan Huang }; 59