xref: /freebsd/sys/contrib/device-tree/Bindings/leds/mediatek,mt6370-indicator.yaml (revision 02e9120893770924227138ba49df1edb3896112a)
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
7title: LED driver for MT6370 PMIC from MediaTek Integrated.
8
9maintainers:
10  - Alice Chen <alice_chen@richtek.com>
11
12description: |
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
16properties:
17  compatible:
18    const: mediatek,mt6370-indicator
19
20  "#address-cells":
21    const: 1
22
23  "#size-cells":
24    const: 0
25
26patternProperties:
27  "^multi-led@[0-3]$":
28    type: object
29    $ref: leds-class-multicolor.yaml#
30    unevaluatedProperties: false
31
32    properties:
33      reg:
34        enum: [0, 1, 2, 3]
35
36      "#address-cells":
37        const: 1
38
39      "#size-cells":
40        const: 0
41
42    patternProperties:
43      "^led@[0-2]$":
44        type: object
45        $ref: common.yaml#
46        unevaluatedProperties: false
47
48        properties:
49          reg:
50            enum: [0, 1, 2]
51
52        required:
53          - reg
54          - color
55
56    required:
57      - reg
58      - color
59      - "#address-cells"
60      - "#size-cells"
61
62  "^led@[0-3]$":
63    type: object
64    $ref: common.yaml#
65    unevaluatedProperties: false
66
67    properties:
68      reg:
69        enum: [0, 1, 2, 3]
70
71    required:
72      - reg
73      - color
74
75required:
76  - compatible
77  - "#address-cells"
78  - "#size-cells"
79
80additionalProperties: false
81