136cd9fb5SAndreas Kemnade# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 236cd9fb5SAndreas Kemnade%YAML 1.2 336cd9fb5SAndreas Kemnade--- 436cd9fb5SAndreas Kemnade$id: http://devicetree.org/schemas/leds/rohm,bd2606mvv.yaml# 536cd9fb5SAndreas Kemnade$schema: http://devicetree.org/meta-schemas/core.yaml# 636cd9fb5SAndreas Kemnade 736cd9fb5SAndreas Kemnadetitle: ROHM BD2606MVV LED controller 836cd9fb5SAndreas Kemnade 936cd9fb5SAndreas Kemnademaintainers: 1036cd9fb5SAndreas Kemnade - Andreas Kemnade <andreas@kemnade.info> 1136cd9fb5SAndreas Kemnade 1236cd9fb5SAndreas Kemnadedescription: 1336cd9fb5SAndreas Kemnade The BD2606 MVV is a programmable LED controller connected via I2C that can 1436cd9fb5SAndreas Kemnade drive 6 separate lines. Each of them can be individually switched on and off, 1536cd9fb5SAndreas Kemnade but the brightness setting is shared between pairs of them. 1636cd9fb5SAndreas Kemnade 1736cd9fb5SAndreas Kemnade Datasheet is available at 1836cd9fb5SAndreas Kemnade https://fscdn.rohm.com/en/products/databook/datasheet/ic/power/led_driver/bd2606mvv_1-e.pdf 1936cd9fb5SAndreas Kemnade 2036cd9fb5SAndreas Kemnadeproperties: 2136cd9fb5SAndreas Kemnade compatible: 2236cd9fb5SAndreas Kemnade const: rohm,bd2606mvv 2336cd9fb5SAndreas Kemnade 2436cd9fb5SAndreas Kemnade reg: 2536cd9fb5SAndreas Kemnade maxItems: 1 2636cd9fb5SAndreas Kemnade 2736cd9fb5SAndreas Kemnade "#address-cells": 2836cd9fb5SAndreas Kemnade const: 1 2936cd9fb5SAndreas Kemnade 3036cd9fb5SAndreas Kemnade "#size-cells": 3136cd9fb5SAndreas Kemnade const: 0 3236cd9fb5SAndreas Kemnade 3336cd9fb5SAndreas Kemnade enable-gpios: 3436cd9fb5SAndreas Kemnade maxItems: 1 3536cd9fb5SAndreas Kemnade description: GPIO pin to enable/disable the device. 3636cd9fb5SAndreas Kemnade 3736cd9fb5SAndreas KemnadepatternProperties: 38*51c8be0cSMarek Vasut "^led@[0-5]$": 3936cd9fb5SAndreas Kemnade type: object 4036cd9fb5SAndreas Kemnade $ref: common.yaml# 4136cd9fb5SAndreas Kemnade unevaluatedProperties: false 4236cd9fb5SAndreas Kemnade 4336cd9fb5SAndreas Kemnade properties: 4436cd9fb5SAndreas Kemnade reg: 4536cd9fb5SAndreas Kemnade minimum: 0 46*51c8be0cSMarek Vasut maximum: 5 4736cd9fb5SAndreas Kemnade 4836cd9fb5SAndreas Kemnade required: 4936cd9fb5SAndreas Kemnade - reg 5036cd9fb5SAndreas Kemnade 5136cd9fb5SAndreas KemnadeadditionalProperties: false 5236cd9fb5SAndreas Kemnade 5336cd9fb5SAndreas Kemnadeexamples: 5436cd9fb5SAndreas Kemnade - | 5536cd9fb5SAndreas Kemnade #include <dt-bindings/leds/common.h> 5636cd9fb5SAndreas Kemnade 5736cd9fb5SAndreas Kemnade i2c { 5836cd9fb5SAndreas Kemnade #address-cells = <1>; 5936cd9fb5SAndreas Kemnade #size-cells = <0>; 6036cd9fb5SAndreas Kemnade 6136cd9fb5SAndreas Kemnade led-controller@66 { 6236cd9fb5SAndreas Kemnade compatible = "rohm,bd2606mvv"; 6336cd9fb5SAndreas Kemnade reg = <0x66>; 6436cd9fb5SAndreas Kemnade #address-cells = <1>; 6536cd9fb5SAndreas Kemnade #size-cells = <0>; 6636cd9fb5SAndreas Kemnade 6736cd9fb5SAndreas Kemnade led@0 { 6836cd9fb5SAndreas Kemnade reg = <0x0>; 6936cd9fb5SAndreas Kemnade color = <LED_COLOR_ID_RED>; 7036cd9fb5SAndreas Kemnade function = LED_FUNCTION_POWER; 7136cd9fb5SAndreas Kemnade }; 7236cd9fb5SAndreas Kemnade 7336cd9fb5SAndreas Kemnade led@2 { 7436cd9fb5SAndreas Kemnade reg = <0x2>; 7536cd9fb5SAndreas Kemnade color = <LED_COLOR_ID_WHITE>; 7636cd9fb5SAndreas Kemnade function = LED_FUNCTION_STATUS; 7736cd9fb5SAndreas Kemnade }; 7836cd9fb5SAndreas Kemnade }; 7936cd9fb5SAndreas Kemnade }; 8036cd9fb5SAndreas Kemnade 8136cd9fb5SAndreas Kemnade... 82