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