1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8ccc0d23SEmmanuel Vadot%YAML 1.2 3*8ccc0d23SEmmanuel Vadot--- 4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/leds/ti,tlc59116.yaml# 5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8ccc0d23SEmmanuel Vadot 7*8ccc0d23SEmmanuel Vadottitle: LEDs connected to tlc59116 or tlc59108 8*8ccc0d23SEmmanuel Vadot 9*8ccc0d23SEmmanuel Vadotmaintainers: 10*8ccc0d23SEmmanuel Vadot - Andrew Lunn <andrew@lunn.ch> 11*8ccc0d23SEmmanuel Vadot 12*8ccc0d23SEmmanuel Vadotproperties: 13*8ccc0d23SEmmanuel Vadot compatible: 14*8ccc0d23SEmmanuel Vadot enum: 15*8ccc0d23SEmmanuel Vadot - ti,tlc59108 16*8ccc0d23SEmmanuel Vadot - ti,tlc59116 17*8ccc0d23SEmmanuel Vadot 18*8ccc0d23SEmmanuel Vadot reg: 19*8ccc0d23SEmmanuel Vadot maxItems: 1 20*8ccc0d23SEmmanuel Vadot 21*8ccc0d23SEmmanuel Vadot "#address-cells": 22*8ccc0d23SEmmanuel Vadot const: 1 23*8ccc0d23SEmmanuel Vadot 24*8ccc0d23SEmmanuel Vadot "#size-cells": 25*8ccc0d23SEmmanuel Vadot const: 0 26*8ccc0d23SEmmanuel Vadot 27*8ccc0d23SEmmanuel VadotpatternProperties: 28*8ccc0d23SEmmanuel Vadot "^led@[0-9a-f]$": 29*8ccc0d23SEmmanuel Vadot type: object 30*8ccc0d23SEmmanuel Vadot $ref: common.yaml# 31*8ccc0d23SEmmanuel Vadot properties: 32*8ccc0d23SEmmanuel Vadot reg: 33*8ccc0d23SEmmanuel Vadot items: 34*8ccc0d23SEmmanuel Vadot minimum: 0 35*8ccc0d23SEmmanuel Vadot maximum: 15 36*8ccc0d23SEmmanuel Vadot 37*8ccc0d23SEmmanuel Vadot unevaluatedProperties: false 38*8ccc0d23SEmmanuel Vadot 39*8ccc0d23SEmmanuel Vadotrequired: 40*8ccc0d23SEmmanuel Vadot - compatible 41*8ccc0d23SEmmanuel Vadot - reg 42*8ccc0d23SEmmanuel Vadot - "#address-cells" 43*8ccc0d23SEmmanuel Vadot - "#size-cells" 44*8ccc0d23SEmmanuel Vadot 45*8ccc0d23SEmmanuel VadotallOf: 46*8ccc0d23SEmmanuel Vadot - if: 47*8ccc0d23SEmmanuel Vadot properties: 48*8ccc0d23SEmmanuel Vadot compatible: 49*8ccc0d23SEmmanuel Vadot contains: 50*8ccc0d23SEmmanuel Vadot const: ti,tlc59108 51*8ccc0d23SEmmanuel Vadot then: 52*8ccc0d23SEmmanuel Vadot patternProperties: 53*8ccc0d23SEmmanuel Vadot "^led@[0-9a-f]$": 54*8ccc0d23SEmmanuel Vadot properties: 55*8ccc0d23SEmmanuel Vadot reg: 56*8ccc0d23SEmmanuel Vadot items: 57*8ccc0d23SEmmanuel Vadot maximum: 7 58*8ccc0d23SEmmanuel Vadot 59*8ccc0d23SEmmanuel VadotadditionalProperties: false 60*8ccc0d23SEmmanuel Vadot 61*8ccc0d23SEmmanuel Vadotexamples: 62*8ccc0d23SEmmanuel Vadot - | 63*8ccc0d23SEmmanuel Vadot i2c { 64*8ccc0d23SEmmanuel Vadot #address-cells = <1>; 65*8ccc0d23SEmmanuel Vadot #size-cells = <0>; 66*8ccc0d23SEmmanuel Vadot 67*8ccc0d23SEmmanuel Vadot led-controller@68 { 68*8ccc0d23SEmmanuel Vadot compatible = "ti,tlc59116"; 69*8ccc0d23SEmmanuel Vadot reg = <0x68>; 70*8ccc0d23SEmmanuel Vadot #address-cells = <1>; 71*8ccc0d23SEmmanuel Vadot #size-cells = <0>; 72*8ccc0d23SEmmanuel Vadot 73*8ccc0d23SEmmanuel Vadot led@0 { 74*8ccc0d23SEmmanuel Vadot reg = <0x0>; 75*8ccc0d23SEmmanuel Vadot label = "wrt1900ac:amber:wan"; 76*8ccc0d23SEmmanuel Vadot }; 77*8ccc0d23SEmmanuel Vadot 78*8ccc0d23SEmmanuel Vadot led@2 { 79*8ccc0d23SEmmanuel Vadot reg = <0x2>; 80*8ccc0d23SEmmanuel Vadot label = "wrt1900ac:white:2g"; 81*8ccc0d23SEmmanuel Vadot }; 82*8ccc0d23SEmmanuel Vadot 83*8ccc0d23SEmmanuel Vadot led@9 { 84*8ccc0d23SEmmanuel Vadot reg = <0x9>; 85*8ccc0d23SEmmanuel Vadot label = "wrt1900ac:green:alive"; 86*8ccc0d23SEmmanuel Vadot linux,default-trigger = "heartbeat"; 87*8ccc0d23SEmmanuel Vadot }; 88*8ccc0d23SEmmanuel Vadot }; 89*8ccc0d23SEmmanuel Vadot }; 90*8ccc0d23SEmmanuel Vadot 91