dt-bindings: leds: Convert common LED binding to schema
authorRob Herring <robh@kernel.org>
Tue, 19 Nov 2019 17:25:53 +0000 (11:25 -0600)
committerRob Herring <robh@kernel.org>
Thu, 23 Jan 2020 21:15:53 +0000 (15:15 -0600)
commit24a71afe05a8859f1b490fc59f0023a890db16f0
treee9a8d801bc620208ba7641f5b18cecd1b529a6b4
parente1ac611f57c9315e79c4ca9fb2a21c81106d3680
dt-bindings: leds: Convert common LED binding to schema

Convert the common LEDs properties bindings to a schema. As trigger source
providers are different nodes, we need to split trigger source properties
to a separate file.

Bindings for LED controllers can reference the common schema for the LED
child nodes:

patternProperties:
  "^led@[0-4]":
    type: object
    allOf:
      - $ref: common.yaml#

Cc: Pavel Machek <pavel@ucw.cz>
Cc: Dan Murphy <dmurphy@ti.com>
Cc: linux-leds@vger.kernel.org
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/leds/common.txt
Documentation/devicetree/bindings/leds/common.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/leds/trigger-source.yaml [new file with mode: 0644]