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