1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*b2d2a78aSEmmanuel Vadot%YAML 1.2 3*b2d2a78aSEmmanuel Vadot--- 4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/sprd,sc2731-bltc.yaml# 5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b2d2a78aSEmmanuel Vadot 7*b2d2a78aSEmmanuel Vadottitle: Spreadtrum SC2731 PMIC breathing light controller 8*b2d2a78aSEmmanuel Vadot 9*b2d2a78aSEmmanuel Vadotmaintainers: 10*b2d2a78aSEmmanuel Vadot - Orson Zhai <orsonzhai@gmail.com> 11*b2d2a78aSEmmanuel Vadot - Baolin Wang <baolin.wang7@gmail.com> 12*b2d2a78aSEmmanuel Vadot - Chunyan Zhang <zhang.lyra@gmail.com> 13*b2d2a78aSEmmanuel Vadot 14*b2d2a78aSEmmanuel Vadotdescription: | 15*b2d2a78aSEmmanuel Vadot The SC2731 breathing light controller supports up to 3 outputs: 16*b2d2a78aSEmmanuel Vadot red LED, green LED and blue LED. Each LED can work at normal PWM mode 17*b2d2a78aSEmmanuel Vadot or breath light mode. 18*b2d2a78aSEmmanuel Vadot 19*b2d2a78aSEmmanuel Vadotproperties: 20*b2d2a78aSEmmanuel Vadot compatible: 21*b2d2a78aSEmmanuel Vadot const: sprd,sc2731-bltc 22*b2d2a78aSEmmanuel Vadot 23*b2d2a78aSEmmanuel Vadot reg: 24*b2d2a78aSEmmanuel Vadot maxItems: 1 25*b2d2a78aSEmmanuel Vadot 26*b2d2a78aSEmmanuel Vadot '#address-cells': 27*b2d2a78aSEmmanuel Vadot const: 1 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot '#size-cells': 30*b2d2a78aSEmmanuel Vadot const: 0 31*b2d2a78aSEmmanuel Vadot 32*b2d2a78aSEmmanuel VadotpatternProperties: 33*b2d2a78aSEmmanuel Vadot "^led@[0-2]$": 34*b2d2a78aSEmmanuel Vadot type: object 35*b2d2a78aSEmmanuel Vadot $ref: common.yaml# 36*b2d2a78aSEmmanuel Vadot unevaluatedProperties: false 37*b2d2a78aSEmmanuel Vadot 38*b2d2a78aSEmmanuel Vadot properties: 39*b2d2a78aSEmmanuel Vadot reg: 40*b2d2a78aSEmmanuel Vadot minimum: 0 41*b2d2a78aSEmmanuel Vadot maximum: 2 42*b2d2a78aSEmmanuel Vadot 43*b2d2a78aSEmmanuel Vadot required: 44*b2d2a78aSEmmanuel Vadot - reg 45*b2d2a78aSEmmanuel Vadot 46*b2d2a78aSEmmanuel Vadotrequired: 47*b2d2a78aSEmmanuel Vadot - compatible 48*b2d2a78aSEmmanuel Vadot - reg 49*b2d2a78aSEmmanuel Vadot - '#address-cells' 50*b2d2a78aSEmmanuel Vadot - '#size-cells' 51*b2d2a78aSEmmanuel Vadot 52*b2d2a78aSEmmanuel VadotadditionalProperties: false 53*b2d2a78aSEmmanuel Vadot 54*b2d2a78aSEmmanuel Vadotexamples: 55*b2d2a78aSEmmanuel Vadot - | 56*b2d2a78aSEmmanuel Vadot #include <dt-bindings/leds/common.h> 57*b2d2a78aSEmmanuel Vadot 58*b2d2a78aSEmmanuel Vadot pmic { 59*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 60*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 61*b2d2a78aSEmmanuel Vadot 62*b2d2a78aSEmmanuel Vadot led-controller@200 { 63*b2d2a78aSEmmanuel Vadot compatible = "sprd,sc2731-bltc"; 64*b2d2a78aSEmmanuel Vadot reg = <0x200>; 65*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 66*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 67*b2d2a78aSEmmanuel Vadot 68*b2d2a78aSEmmanuel Vadot led@0 { 69*b2d2a78aSEmmanuel Vadot reg = <0x0>; 70*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 71*b2d2a78aSEmmanuel Vadot }; 72*b2d2a78aSEmmanuel Vadot 73*b2d2a78aSEmmanuel Vadot led@1 { 74*b2d2a78aSEmmanuel Vadot reg = <0x1>; 75*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_GREEN>; 76*b2d2a78aSEmmanuel Vadot }; 77*b2d2a78aSEmmanuel Vadot 78*b2d2a78aSEmmanuel Vadot led@2 { 79*b2d2a78aSEmmanuel Vadot reg = <0x2>; 80*b2d2a78aSEmmanuel Vadot color = <LED_COLOR_ID_BLUE>; 81*b2d2a78aSEmmanuel Vadot }; 82*b2d2a78aSEmmanuel Vadot }; 83*b2d2a78aSEmmanuel Vadot }; 84*b2d2a78aSEmmanuel Vadot... 85