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

title: Silergy SY7758 6-channel High Efficiency LED Driver

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

description:
  Silergy SY7758 is a high efficiency 6-channels LED backlight
  driver with I2C brightness control.

allOf:
  - $ref: common.yaml#

properties:
  compatible:
    const: silergy,sy7758

  reg:
    maxItems: 1

  vdd-supply: true

  enable-gpios:
    maxItems: 1

required:
  - compatible
  - reg
  - enable-gpios

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

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

        backlight@11 {
            compatible = "silergy,sy7758";
            reg = <0x11>;
            vdd-supply = <&bl_vdd>;
            enable-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
        };
    };