Skip to content

Commit 440c57d

Browse files
ChiYuan Huangrobherring
authored andcommitted
dt-bindings: leds: mt6370: Add MediaTek MT6370 current sink type LED indicator
Add MediaTek MT6370 current sink type LED indicator binding documentation. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com> Link: https://lore.kernel.org/r/27df85c30277a171ae85ff6d5b7d867625765d0a.1663926551.git.chiaen_wu@richtek.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent cd42580 commit 440c57d

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/mediatek,mt6370-indicator.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: LED driver for MT6370 PMIC from MediaTek Integrated.
8+
9+
maintainers:
10+
- Alice Chen <alice_chen@richtek.com>
11+
12+
description: |
13+
This module is part of the MT6370 MFD device.
14+
Add MT6370 LED driver include 4-channel RGB LED support Register/PWM/Breath Mode
15+
16+
allOf:
17+
- $ref: leds-class-multicolor.yaml#
18+
19+
properties:
20+
compatible:
21+
const: mediatek,mt6370-indicator
22+
23+
"#address-cells":
24+
const: 1
25+
26+
"#size-cells":
27+
const: 0
28+
29+
patternProperties:
30+
"^multi-led@[0-3]$":
31+
type: object
32+
33+
properties:
34+
reg:
35+
enum: [0, 1, 2, 3]
36+
37+
"#address-cells":
38+
const: 1
39+
40+
"#size-cells":
41+
const: 0
42+
43+
patternProperties:
44+
"^led@[0-2]$":
45+
type: object
46+
$ref: common.yaml#
47+
unevaluatedProperties: false
48+
49+
properties:
50+
reg:
51+
enum: [0, 1, 2]
52+
53+
required:
54+
- reg
55+
- color
56+
57+
required:
58+
- reg
59+
- color
60+
- "#address-cells"
61+
- "#size-cells"
62+
63+
"^led@[0-3]$":
64+
type: object
65+
$ref: common.yaml#
66+
unevaluatedProperties: false
67+
68+
properties:
69+
reg:
70+
enum: [0, 1, 2, 3]
71+
72+
required:
73+
- reg
74+
- color
75+
76+
required:
77+
- compatible
78+
- "#address-cells"
79+
- "#size-cells"
80+
81+
additionalProperties: false

0 commit comments

Comments
 (0)