Skip to content

Commit abb1bc7

Browse files
Alice Chenrobherring
authored andcommitted
dt-bindings: leds: Add MediaTek MT6370 flashlight
Add MediaTek MT6370 flashlight binding documentation. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Alice Chen <alice_chen@richtek.com> Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com> Link: https://lore.kernel.org/r/5632ef04d7807f78259e4e9f3d952849a839a50c.1663926551.git.chiaen_wu@richtek.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 440c57d commit abb1bc7

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)