0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ROHM BD71828 Power Management Integrated Circuit LED driver
0008
0009 maintainers:
0010 - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
0011
0012 description: |
0013 This module is part of the ROHM BD71828 MFD device. For more details
0014 see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
0015
0016 The LED controller is represented as a sub-node of the PMIC node on the device
0017 tree.
0018
0019 The device has two LED outputs referred as GRNLED and AMBLED in data-sheet.
0020
0021 select: false
0022
0023 properties:
0024 compatible:
0025 const: rohm,bd71828-leds
0026
0027 patternProperties:
0028 "^led-[1-2]$":
0029 type: object
0030 description:
0031 Properties for a single LED.
0032 properties:
0033 #allOf:
0034 #- $ref: "common.yaml#"
0035 rohm,led-compatible:
0036 description: LED identification string
0037 $ref: "/schemas/types.yaml#/definitions/string"
0038 enum:
0039 - bd71828-ambled
0040 - bd71828-grnled
0041 function:
0042 description:
0043 Purpose of LED as defined in dt-bindings/leds/common.h
0044 $ref: "/schemas/types.yaml#/definitions/string"
0045 color:
0046 description:
0047 LED colour as defined in dt-bindings/leds/common.h
0048 $ref: "/schemas/types.yaml#/definitions/uint32"
0049
0050 required:
0051 - compatible
0052 additionalProperties: false
0053
0054 ...