xref: /linux/Documentation/devicetree/bindings/leds/mediatek,mt6370-indicator.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1440c57daSChiYuan Huang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2440c57daSChiYuan Huang%YAML 1.2
3440c57daSChiYuan Huang---
4440c57daSChiYuan Huang$id: http://devicetree.org/schemas/leds/mediatek,mt6370-indicator.yaml#
5440c57daSChiYuan Huang$schema: http://devicetree.org/meta-schemas/core.yaml#
6440c57daSChiYuan Huang
7440c57daSChiYuan Huangtitle: LED driver for MT6370 PMIC from MediaTek Integrated.
8440c57daSChiYuan Huang
9440c57daSChiYuan Huangmaintainers:
10440c57daSChiYuan Huang  - Alice Chen <alice_chen@richtek.com>
11440c57daSChiYuan Huang
12440c57daSChiYuan Huangdescription: |
13440c57daSChiYuan Huang  This module is part of the MT6370 MFD device.
14440c57daSChiYuan Huang  Add MT6370 LED driver include 4-channel RGB LED support Register/PWM/Breath Mode
15440c57daSChiYuan Huang
16440c57daSChiYuan Huangproperties:
17440c57daSChiYuan Huang  compatible:
18440c57daSChiYuan Huang    const: mediatek,mt6370-indicator
19440c57daSChiYuan Huang
20440c57daSChiYuan Huang  "#address-cells":
21440c57daSChiYuan Huang    const: 1
22440c57daSChiYuan Huang
23440c57daSChiYuan Huang  "#size-cells":
24440c57daSChiYuan Huang    const: 0
25440c57daSChiYuan Huang
26440c57daSChiYuan HuangpatternProperties:
27440c57daSChiYuan Huang  "^multi-led@[0-3]$":
28440c57daSChiYuan Huang    type: object
29*37a3a327SChiaEn Wu    $ref: leds-class-multicolor.yaml#
30*37a3a327SChiaEn Wu    unevaluatedProperties: false
31440c57daSChiYuan Huang
32440c57daSChiYuan Huang    properties:
33440c57daSChiYuan Huang      reg:
34440c57daSChiYuan Huang        enum: [0, 1, 2, 3]
35440c57daSChiYuan Huang
36440c57daSChiYuan Huang      "#address-cells":
37440c57daSChiYuan Huang        const: 1
38440c57daSChiYuan Huang
39440c57daSChiYuan Huang      "#size-cells":
40440c57daSChiYuan Huang        const: 0
41440c57daSChiYuan Huang
42440c57daSChiYuan Huang    patternProperties:
43440c57daSChiYuan Huang      "^led@[0-2]$":
44440c57daSChiYuan Huang        type: object
45440c57daSChiYuan Huang        $ref: common.yaml#
46440c57daSChiYuan Huang        unevaluatedProperties: false
47440c57daSChiYuan Huang
48440c57daSChiYuan Huang        properties:
49440c57daSChiYuan Huang          reg:
50440c57daSChiYuan Huang            enum: [0, 1, 2]
51440c57daSChiYuan Huang
52440c57daSChiYuan Huang        required:
53440c57daSChiYuan Huang          - reg
54440c57daSChiYuan Huang          - color
55440c57daSChiYuan Huang
56440c57daSChiYuan Huang    required:
57440c57daSChiYuan Huang      - reg
58440c57daSChiYuan Huang      - color
59440c57daSChiYuan Huang      - "#address-cells"
60440c57daSChiYuan Huang      - "#size-cells"
61440c57daSChiYuan Huang
62440c57daSChiYuan Huang  "^led@[0-3]$":
63440c57daSChiYuan Huang    type: object
64440c57daSChiYuan Huang    $ref: common.yaml#
65440c57daSChiYuan Huang    unevaluatedProperties: false
66440c57daSChiYuan Huang
67440c57daSChiYuan Huang    properties:
68440c57daSChiYuan Huang      reg:
69440c57daSChiYuan Huang        enum: [0, 1, 2, 3]
70440c57daSChiYuan Huang
71440c57daSChiYuan Huang    required:
72440c57daSChiYuan Huang      - reg
73440c57daSChiYuan Huang      - color
74440c57daSChiYuan Huang
75440c57daSChiYuan Huangrequired:
76440c57daSChiYuan Huang  - compatible
77440c57daSChiYuan Huang  - "#address-cells"
78440c57daSChiYuan Huang  - "#size-cells"
79440c57daSChiYuan Huang
80440c57daSChiYuan HuangadditionalProperties: false
81