xref: /linux/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml (revision 873e443dd25ae7a9388d634543f8490a987c2095)
1*873e443dSMatti Vaittinen# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*873e443dSMatti Vaittinen%YAML 1.2
3*873e443dSMatti Vaittinen---
4*873e443dSMatti Vaittinen$id: http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml#
5*873e443dSMatti Vaittinen$schema: http://devicetree.org/meta-schemas/core.yaml#
6*873e443dSMatti Vaittinen
7*873e443dSMatti Vaittinentitle: ROHM BD71828 Power Management Integrated Circuit LED driver
8*873e443dSMatti Vaittinen
9*873e443dSMatti Vaittinenmaintainers:
10*873e443dSMatti Vaittinen  - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
11*873e443dSMatti Vaittinen
12*873e443dSMatti Vaittinendescription: |
13*873e443dSMatti Vaittinen  This module is part of the ROHM BD71828 MFD device. For more details
14*873e443dSMatti Vaittinen  see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
15*873e443dSMatti Vaittinen
16*873e443dSMatti Vaittinen  The LED controller is represented as a sub-node of the PMIC node on the device
17*873e443dSMatti Vaittinen  tree.
18*873e443dSMatti Vaittinen
19*873e443dSMatti Vaittinen  The device has two LED outputs referred as GRNLED and AMBLED in data-sheet.
20*873e443dSMatti Vaittinen
21*873e443dSMatti Vaittinenselect: false
22*873e443dSMatti Vaittinen
23*873e443dSMatti Vaittinenproperties:
24*873e443dSMatti Vaittinen  compatible:
25*873e443dSMatti Vaittinen    const: rohm,bd71828-leds
26*873e443dSMatti Vaittinen
27*873e443dSMatti VaittinenpatternProperties:
28*873e443dSMatti Vaittinen  "^led-[1-2]$":
29*873e443dSMatti Vaittinen    type: object
30*873e443dSMatti Vaittinen    description:
31*873e443dSMatti Vaittinen      Properties for a single LED.
32*873e443dSMatti Vaittinen    properties:
33*873e443dSMatti Vaittinen      #allOf:
34*873e443dSMatti Vaittinen        #- $ref: "common.yaml#"
35*873e443dSMatti Vaittinen      rohm,led-compatible:
36*873e443dSMatti Vaittinen        description: LED identification string
37*873e443dSMatti Vaittinen        allOf:
38*873e443dSMatti Vaittinen          - $ref: "/schemas/types.yaml#/definitions/string"
39*873e443dSMatti Vaittinen          - enum:
40*873e443dSMatti Vaittinen            - bd71828-ambled
41*873e443dSMatti Vaittinen            - bd71828-grnled
42*873e443dSMatti Vaittinen      function:
43*873e443dSMatti Vaittinen        description:
44*873e443dSMatti Vaittinen          Purpose of LED as defined in dt-bindings/leds/common.h
45*873e443dSMatti Vaittinen        $ref: "/schemas/types.yaml#/definitions/string"
46*873e443dSMatti Vaittinen      color:
47*873e443dSMatti Vaittinen        description:
48*873e443dSMatti Vaittinen          LED colour as defined in dt-bindings/leds/common.h
49*873e443dSMatti Vaittinen        $ref: "/schemas/types.yaml#/definitions/uint32"
50*873e443dSMatti Vaittinen
51*873e443dSMatti Vaittinenrequired:
52*873e443dSMatti Vaittinen  - compatible
53