1*2846c905SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*2846c905SEmmanuel Vadot%YAML 1.2 3*2846c905SEmmanuel Vadot--- 4*2846c905SEmmanuel Vadot$id: http://devicetree.org/schemas/leds/st,led1202.yaml# 5*2846c905SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*2846c905SEmmanuel Vadot 7*2846c905SEmmanuel Vadottitle: ST LED1202 LED controllers 8*2846c905SEmmanuel Vadot 9*2846c905SEmmanuel Vadotmaintainers: 10*2846c905SEmmanuel Vadot - Vicentiu Galanopulo <vicentiu.galanopulo@remote-tech.co.uk> 11*2846c905SEmmanuel Vadot 12*2846c905SEmmanuel Vadotdescription: | 13*2846c905SEmmanuel Vadot The LED1202 is a 12-channel low quiescent current LED controller 14*2846c905SEmmanuel Vadot programmable via I2C; The output current can be adjusted separately 15*2846c905SEmmanuel Vadot for each channel by 8-bit analog and 12-bit digital dimming control. 16*2846c905SEmmanuel Vadot Datasheet available at 17*2846c905SEmmanuel Vadot https://www.st.com/en/power-management/led1202.html 18*2846c905SEmmanuel Vadot 19*2846c905SEmmanuel Vadotproperties: 20*2846c905SEmmanuel Vadot compatible: 21*2846c905SEmmanuel Vadot const: st,led1202 22*2846c905SEmmanuel Vadot 23*2846c905SEmmanuel Vadot reg: 24*2846c905SEmmanuel Vadot maxItems: 1 25*2846c905SEmmanuel Vadot 26*2846c905SEmmanuel Vadot "#address-cells": 27*2846c905SEmmanuel Vadot const: 1 28*2846c905SEmmanuel Vadot 29*2846c905SEmmanuel Vadot "#size-cells": 30*2846c905SEmmanuel Vadot const: 0 31*2846c905SEmmanuel Vadot 32*2846c905SEmmanuel VadotpatternProperties: 33*2846c905SEmmanuel Vadot "^led@[0-9a-f]$": 34*2846c905SEmmanuel Vadot type: object 35*2846c905SEmmanuel Vadot $ref: common.yaml# 36*2846c905SEmmanuel Vadot unevaluatedProperties: false 37*2846c905SEmmanuel Vadot 38*2846c905SEmmanuel Vadot properties: 39*2846c905SEmmanuel Vadot reg: 40*2846c905SEmmanuel Vadot minimum: 0 41*2846c905SEmmanuel Vadot maximum: 11 42*2846c905SEmmanuel Vadot 43*2846c905SEmmanuel Vadot required: 44*2846c905SEmmanuel Vadot - reg 45*2846c905SEmmanuel Vadot 46*2846c905SEmmanuel Vadotrequired: 47*2846c905SEmmanuel Vadot - compatible 48*2846c905SEmmanuel Vadot - reg 49*2846c905SEmmanuel Vadot - "#address-cells" 50*2846c905SEmmanuel Vadot - "#size-cells" 51*2846c905SEmmanuel Vadot 52*2846c905SEmmanuel VadotadditionalProperties: false 53*2846c905SEmmanuel Vadot 54*2846c905SEmmanuel Vadotexamples: 55*2846c905SEmmanuel Vadot - | 56*2846c905SEmmanuel Vadot #include <dt-bindings/leds/common.h> 57*2846c905SEmmanuel Vadot 58*2846c905SEmmanuel Vadot i2c { 59*2846c905SEmmanuel Vadot #address-cells = <1>; 60*2846c905SEmmanuel Vadot #size-cells = <0>; 61*2846c905SEmmanuel Vadot 62*2846c905SEmmanuel Vadot led-controller@58 { 63*2846c905SEmmanuel Vadot compatible = "st,led1202"; 64*2846c905SEmmanuel Vadot reg = <0x58>; 65*2846c905SEmmanuel Vadot #address-cells = <1>; 66*2846c905SEmmanuel Vadot #size-cells = <0>; 67*2846c905SEmmanuel Vadot 68*2846c905SEmmanuel Vadot led@0 { 69*2846c905SEmmanuel Vadot reg = <0x0>; 70*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 71*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_RED>; 72*2846c905SEmmanuel Vadot function-enumerator = <1>; 73*2846c905SEmmanuel Vadot }; 74*2846c905SEmmanuel Vadot 75*2846c905SEmmanuel Vadot led@1 { 76*2846c905SEmmanuel Vadot reg = <0x1>; 77*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 78*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 79*2846c905SEmmanuel Vadot function-enumerator = <2>; 80*2846c905SEmmanuel Vadot }; 81*2846c905SEmmanuel Vadot 82*2846c905SEmmanuel Vadot led@2 { 83*2846c905SEmmanuel Vadot reg = <0x2>; 84*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 85*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 86*2846c905SEmmanuel Vadot function-enumerator = <3>; 87*2846c905SEmmanuel Vadot }; 88*2846c905SEmmanuel Vadot 89*2846c905SEmmanuel Vadot led@3 { 90*2846c905SEmmanuel Vadot reg = <0x3>; 91*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 92*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_RED>; 93*2846c905SEmmanuel Vadot function-enumerator = <4>; 94*2846c905SEmmanuel Vadot }; 95*2846c905SEmmanuel Vadot 96*2846c905SEmmanuel Vadot led@4 { 97*2846c905SEmmanuel Vadot reg = <0x4>; 98*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 99*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 100*2846c905SEmmanuel Vadot function-enumerator = <5>; 101*2846c905SEmmanuel Vadot }; 102*2846c905SEmmanuel Vadot 103*2846c905SEmmanuel Vadot led@5 { 104*2846c905SEmmanuel Vadot reg = <0x5>; 105*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 106*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 107*2846c905SEmmanuel Vadot function-enumerator = <6>; 108*2846c905SEmmanuel Vadot }; 109*2846c905SEmmanuel Vadot 110*2846c905SEmmanuel Vadot led@6 { 111*2846c905SEmmanuel Vadot reg = <0x6>; 112*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 113*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_RED>; 114*2846c905SEmmanuel Vadot function-enumerator = <7>; 115*2846c905SEmmanuel Vadot }; 116*2846c905SEmmanuel Vadot 117*2846c905SEmmanuel Vadot led@7 { 118*2846c905SEmmanuel Vadot reg = <0x7>; 119*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 120*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 121*2846c905SEmmanuel Vadot function-enumerator = <8>; 122*2846c905SEmmanuel Vadot }; 123*2846c905SEmmanuel Vadot 124*2846c905SEmmanuel Vadot led@8 { 125*2846c905SEmmanuel Vadot reg = <0x8>; 126*2846c905SEmmanuel Vadot function = LED_FUNCTION_STATUS; 127*2846c905SEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 128*2846c905SEmmanuel Vadot function-enumerator = <9>; 129*2846c905SEmmanuel Vadot }; 130*2846c905SEmmanuel Vadot }; 131*2846c905SEmmanuel Vadot }; 132*2846c905SEmmanuel Vadot... 133