GNU Linux-libre 6.8.9-gnu
[releases.git] / Documentation / devicetree / bindings / leds / mediatek,mt6370-flashlight.yaml
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-flashlight.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Flash 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 flash LED driver include 2-channel flash LED support Torch/Strobe Mode.
15
16 properties:
17   compatible:
18     const: mediatek,mt6370-flashlight
19
20   "#address-cells":
21     const: 1
22
23   "#size-cells":
24     const: 0
25
26 patternProperties:
27   "^led@[0-1]$":
28     type: object
29     $ref: common.yaml#
30     unevaluatedProperties: false
31
32     properties:
33       reg:
34         enum: [0, 1]
35
36 required:
37   - compatible
38   - "#address-cells"
39   - "#size-cells"
40
41 additionalProperties: false