diff options
author | Rob Herring <robh@kernel.org> | 2019-11-19 11:25:53 -0600 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-01-23 15:15:53 -0600 |
commit | 24a71afe05a8859f1b490fc59f0023a890db16f0 (patch) | |
tree | e9a8d801bc620208ba7641f5b18cecd1b529a6b4 /Documentation/devicetree/bindings/leds/trigger-source.yaml | |
parent | e1ac611f57c9315e79c4ca9fb2a21c81106d3680 (diff) | |
download | lwn-24a71afe05a8859f1b490fc59f0023a890db16f0.tar.gz lwn-24a71afe05a8859f1b490fc59f0023a890db16f0.zip |
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>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/trigger-source.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/leds/trigger-source.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/trigger-source.yaml b/Documentation/devicetree/bindings/leds/trigger-source.yaml new file mode 100644 index 000000000000..0618003e40bd --- /dev/null +++ b/Documentation/devicetree/bindings/leds/trigger-source.yaml @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/trigger-source.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Trigger source providers + +maintainers: + - Jacek Anaszewski <jacek.anaszewski@gmail.com> + - Pavel Machek <pavel@ucw.cz> + +description: + Each trigger source provider should be represented by a device tree node. It + may be e.g. a USB port or an Ethernet device. + +properties: + '#trigger-source-cells': + description: + Number of cells in a source trigger. Typically 0 for nodes of simple + trigger sources (e.g. a specific USB port). + enum: [ 0, 1 ] + +... |