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