# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/ti,lm3533-leds.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TI LM3533 low voltage control banks for individual LEDs

description:
  This is part of the TI LM3533 MFD device. It represents four low voltage
  control banks for individual LEDs provided by the TI LM3533.

maintainers:
  - Svyatoslav Ryhel <clamor95@gmail.com>

allOf:
  - $ref: /schemas/leds/common.yaml#

properties:
  compatible:
    const: ti,lm3533-leds

  reg:
    description:
      Control bank selection (2 = bank C, 3 = bank D, 4 = bank E, 5 = bank F).
    minimum: 2
    maximum: 5

  led-max-microamp:
    description: maximum current in uA with a 800 uA step.
    minimum: 5000
    maximum: 29800
    default: 5000

  led-sources:
    description: |
      LVLED associated with this control bank. May be more than 1 source per bank.
        0 - LVLED1
        1 - LVLED2
        2 - LVLED3
        3 - LVLED4
        4 - LVLED5
    minItems: 1
    maxItems: 5
    items:
      maximum: 4

  ti,pwm-config-mask:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: |
      Control Bank PWM Configuration Register mask that allows to configure
      PWM input in Zones 0-4
      BIT(0) - PWM Input is enabled
      BIT(1) - PWM Input is enabled in Zone 0
      BIT(2) - PWM Input is enabled in Zone 1
      BIT(3) - PWM Input is enabled in Zone 2
      BIT(4) - PWM Input is enabled in Zone 3
      BIT(5) - PWM Input is enabled in Zone 4
    default: 0

required:
  - compatible
  - reg

unevaluatedProperties: false

# see ti,lm3533.yaml for an example