1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/leds/ams,as3668.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Osram 4-channel i2c LED driver 8 9maintainers: 10 - Lukas Timmermann <linux@timmermann.space> 11 12description: 13 This IC can drive up to four separate LEDs. 14 Having four channels suggests it could be used with a single RGBW LED. 15 16properties: 17 compatible: 18 const: ams,as3668 19 20 reg: 21 maxItems: 1 22 23 "#address-cells": 24 const: 1 25 26 "#size-cells": 27 const: 0 28 29patternProperties: 30 "^led@[0-3]$": 31 type: object 32 $ref: common.yaml# 33 unevaluatedProperties: false 34 35 properties: 36 reg: 37 maxItems: 1 38 39required: 40 - compatible 41 - reg 42 - "#address-cells" 43 - "#size-cells" 44 45additionalProperties: false 46 47examples: 48 - | 49 #include <dt-bindings/leds/common.h> 50 51 i2c { 52 #address-cells = <1>; 53 #size-cells = <0>; 54 55 led-controller@42 { 56 compatible = "ams,as3668"; 57 reg = <0x42>; 58 #address-cells = <1>; 59 #size-cells = <0>; 60 61 led@0 { 62 reg = <0x0>; 63 function = LED_FUNCTION_STATUS; 64 color = <LED_COLOR_ID_RED>; 65 }; 66 67 led@1 { 68 reg = <0x1>; 69 function = LED_FUNCTION_STATUS; 70 color = <LED_COLOR_ID_GREEN>; 71 }; 72 }; 73 }; 74 75