xref: /linux/Documentation/devicetree/bindings/leds/samsung,s2mu005-flash.yaml (revision 6e717507bfbe8d6955f3f4c5604857a392c7e6fa)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/leds/samsung,s2mu005-flash.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Flash and Torch LED Controller for Samsung S2M series PMICs
8
9maintainers:
10  - Kaustabh Chakraborty <kauschluss@disroot.org>
11
12description: |
13  The Samsung S2M series PMIC flash LED has two led channels (typically
14  as back and front camera flashes), with support for both torch and
15  flash modes.
16
17  This is a part of device tree bindings for S2M and S5M family of Power
18  Management IC (PMIC).
19
20  See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for
21  additional information and example.
22
23properties:
24  compatible:
25    enum:
26      - samsung,s2mu005-flash
27
28  "#address-cells":
29    const: 1
30
31  "#size-cells":
32    const: 0
33
34patternProperties:
35  "^led@[0-1]$":
36    type: object
37    $ref: common.yaml#
38    unevaluatedProperties: false
39
40    properties:
41      reg:
42        enum: [0, 1]
43
44    required:
45      - reg
46
47required:
48  - compatible
49  - "#address-cells"
50  - "#size-cells"
51
52additionalProperties: false
53