Commit 580f9896 authored by Rob Herring's avatar Rob Herring

dt-bindings: leds: Add missing references to common LED schema

'led' nodes should have a reference to LED common.yaml schema. Add it where
missing and drop any duplicate properties.
Acked-by: default avatarLee Jones <lee@kernel.org>
Acked-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221207204327.2810001-2-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 12116448
......@@ -56,7 +56,8 @@ properties:
patternProperties:
"^led@[0-2]$":
type: object
$ref: common.yaml#
unevaluatedProperties: false
properties:
reg:
......
......@@ -30,9 +30,8 @@ properties:
patternProperties:
"^led@[0-2]$":
type: object
description: |
Properties for a single LED.
$ref: common.yaml#
unevaluatedProperties: false
properties:
reg:
......@@ -41,10 +40,6 @@ patternProperties:
minimum: 0
maximum: 2
label: true
linux,default-trigger: true
required:
- compatible
- "#address-cells"
......
......@@ -26,26 +26,16 @@ properties:
patternProperties:
"^led-[1-2]$":
type: object
description:
Properties for a single LED.
$ref: common.yaml#
unevaluatedProperties: false
properties:
#allOf:
#- $ref: "common.yaml#"
rohm,led-compatible:
description: LED identification string
$ref: "/schemas/types.yaml#/definitions/string"
enum:
- bd71828-ambled
- bd71828-grnled
function:
description:
Purpose of LED as defined in dt-bindings/leds/common.h
$ref: "/schemas/types.yaml#/definitions/string"
color:
description:
LED colour as defined in dt-bindings/leds/common.h
$ref: "/schemas/types.yaml#/definitions/uint32"
required:
- compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment