1*36cd9fb5SAndreas Kemnade# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*36cd9fb5SAndreas Kemnade%YAML 1.2 3*36cd9fb5SAndreas Kemnade--- 4*36cd9fb5SAndreas Kemnade$id: http://devicetree.org/schemas/leds/rohm,bd2606mvv.yaml# 5*36cd9fb5SAndreas Kemnade$schema: http://devicetree.org/meta-schemas/core.yaml# 6*36cd9fb5SAndreas Kemnade 7*36cd9fb5SAndreas Kemnadetitle: ROHM BD2606MVV LED controller 8*36cd9fb5SAndreas Kemnade 9*36cd9fb5SAndreas Kemnademaintainers: 10*36cd9fb5SAndreas Kemnade - Andreas Kemnade <andreas@kemnade.info> 11*36cd9fb5SAndreas Kemnade 12*36cd9fb5SAndreas Kemnadedescription: 13*36cd9fb5SAndreas Kemnade The BD2606 MVV is a programmable LED controller connected via I2C that can 14*36cd9fb5SAndreas Kemnade drive 6 separate lines. Each of them can be individually switched on and off, 15*36cd9fb5SAndreas Kemnade but the brightness setting is shared between pairs of them. 16*36cd9fb5SAndreas Kemnade 17*36cd9fb5SAndreas Kemnade Datasheet is available at 18*36cd9fb5SAndreas Kemnade https://fscdn.rohm.com/en/products/databook/datasheet/ic/power/led_driver/bd2606mvv_1-e.pdf 19*36cd9fb5SAndreas Kemnade 20*36cd9fb5SAndreas Kemnadeproperties: 21*36cd9fb5SAndreas Kemnade compatible: 22*36cd9fb5SAndreas Kemnade const: rohm,bd2606mvv 23*36cd9fb5SAndreas Kemnade 24*36cd9fb5SAndreas Kemnade reg: 25*36cd9fb5SAndreas Kemnade maxItems: 1 26*36cd9fb5SAndreas Kemnade 27*36cd9fb5SAndreas Kemnade "#address-cells": 28*36cd9fb5SAndreas Kemnade const: 1 29*36cd9fb5SAndreas Kemnade 30*36cd9fb5SAndreas Kemnade "#size-cells": 31*36cd9fb5SAndreas Kemnade const: 0 32*36cd9fb5SAndreas Kemnade 33*36cd9fb5SAndreas Kemnade enable-gpios: 34*36cd9fb5SAndreas Kemnade maxItems: 1 35*36cd9fb5SAndreas Kemnade description: GPIO pin to enable/disable the device. 36*36cd9fb5SAndreas Kemnade 37*36cd9fb5SAndreas KemnadepatternProperties: 38*36cd9fb5SAndreas Kemnade "^led@[0-6]$": 39*36cd9fb5SAndreas Kemnade type: object 40*36cd9fb5SAndreas Kemnade $ref: common.yaml# 41*36cd9fb5SAndreas Kemnade unevaluatedProperties: false 42*36cd9fb5SAndreas Kemnade 43*36cd9fb5SAndreas Kemnade properties: 44*36cd9fb5SAndreas Kemnade reg: 45*36cd9fb5SAndreas Kemnade minimum: 0 46*36cd9fb5SAndreas Kemnade maximum: 6 47*36cd9fb5SAndreas Kemnade 48*36cd9fb5SAndreas Kemnade required: 49*36cd9fb5SAndreas Kemnade - reg 50*36cd9fb5SAndreas Kemnade 51*36cd9fb5SAndreas KemnadeadditionalProperties: false 52*36cd9fb5SAndreas Kemnade 53*36cd9fb5SAndreas Kemnadeexamples: 54*36cd9fb5SAndreas Kemnade - | 55*36cd9fb5SAndreas Kemnade #include <dt-bindings/leds/common.h> 56*36cd9fb5SAndreas Kemnade 57*36cd9fb5SAndreas Kemnade i2c { 58*36cd9fb5SAndreas Kemnade #address-cells = <1>; 59*36cd9fb5SAndreas Kemnade #size-cells = <0>; 60*36cd9fb5SAndreas Kemnade 61*36cd9fb5SAndreas Kemnade led-controller@66 { 62*36cd9fb5SAndreas Kemnade compatible = "rohm,bd2606mvv"; 63*36cd9fb5SAndreas Kemnade reg = <0x66>; 64*36cd9fb5SAndreas Kemnade #address-cells = <1>; 65*36cd9fb5SAndreas Kemnade #size-cells = <0>; 66*36cd9fb5SAndreas Kemnade 67*36cd9fb5SAndreas Kemnade led@0 { 68*36cd9fb5SAndreas Kemnade reg = <0x0>; 69*36cd9fb5SAndreas Kemnade color = <LED_COLOR_ID_RED>; 70*36cd9fb5SAndreas Kemnade function = LED_FUNCTION_POWER; 71*36cd9fb5SAndreas Kemnade }; 72*36cd9fb5SAndreas Kemnade 73*36cd9fb5SAndreas Kemnade led@2 { 74*36cd9fb5SAndreas Kemnade reg = <0x2>; 75*36cd9fb5SAndreas Kemnade color = <LED_COLOR_ID_WHITE>; 76*36cd9fb5SAndreas Kemnade function = LED_FUNCTION_STATUS; 77*36cd9fb5SAndreas Kemnade }; 78*36cd9fb5SAndreas Kemnade }; 79*36cd9fb5SAndreas Kemnade }; 80*36cd9fb5SAndreas Kemnade 81*36cd9fb5SAndreas Kemnade... 82