18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: ROHM BD71828 Power Management Integrated Circuit LED driver
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cidescription: |
138c2ecf20Sopenharmony_ci  This module is part of the ROHM BD71828 MFD device. For more details
148c2ecf20Sopenharmony_ci  see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci  The LED controller is represented as a sub-node of the PMIC node on the device
178c2ecf20Sopenharmony_ci  tree.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci  The device has two LED outputs referred as GRNLED and AMBLED in data-sheet.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciselect: false
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciproperties:
248c2ecf20Sopenharmony_ci  compatible:
258c2ecf20Sopenharmony_ci    const: rohm,bd71828-leds
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cipatternProperties:
288c2ecf20Sopenharmony_ci  "^led-[1-2]$":
298c2ecf20Sopenharmony_ci    type: object
308c2ecf20Sopenharmony_ci    description:
318c2ecf20Sopenharmony_ci      Properties for a single LED.
328c2ecf20Sopenharmony_ci    properties:
338c2ecf20Sopenharmony_ci      #allOf:
348c2ecf20Sopenharmony_ci        #- $ref: "common.yaml#"
358c2ecf20Sopenharmony_ci      rohm,led-compatible:
368c2ecf20Sopenharmony_ci        description: LED identification string
378c2ecf20Sopenharmony_ci        $ref: "/schemas/types.yaml#/definitions/string"
388c2ecf20Sopenharmony_ci        enum:
398c2ecf20Sopenharmony_ci          - bd71828-ambled
408c2ecf20Sopenharmony_ci          - bd71828-grnled
418c2ecf20Sopenharmony_ci      function:
428c2ecf20Sopenharmony_ci        description:
438c2ecf20Sopenharmony_ci          Purpose of LED as defined in dt-bindings/leds/common.h
448c2ecf20Sopenharmony_ci        $ref: "/schemas/types.yaml#/definitions/string"
458c2ecf20Sopenharmony_ci      color:
468c2ecf20Sopenharmony_ci        description:
478c2ecf20Sopenharmony_ci          LED colour as defined in dt-bindings/leds/common.h
488c2ecf20Sopenharmony_ci        $ref: "/schemas/types.yaml#/definitions/uint32"
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_cirequired:
518c2ecf20Sopenharmony_ci  - compatible
528c2ecf20Sopenharmony_ciadditionalProperties: false
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci...
55