Richtek RT4505 Single Channel LED Driver

Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-rt4505.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"

The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for torch and flash mode, respectively.

The data sheet can be found at:
  https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "richtek,rt4505"

reg — required here #

I2C slave address of the controller.

Maximum number of items (maxItems): 1

led — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/leds/common.h>

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  led-controller@63 {
    compatible = "richtek,rt4505";
    reg = <0x63>;

    rt4505_flash: led {
      function = LED_FUNCTION_FLASH;
      color = <LED_COLOR_ID_WHITE>;
      led-max-microamp = <375000>;
      flash-max-microamp = <1500000>;
      flash-max-timeout-us = <800000>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page