mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-05 19:53:48 +00:00
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: Lee Jones <lee@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221207204327.2810001-2-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
121164481b
commit
580f9896e0
@ -56,7 +56,8 @@ properties:
|
|||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^led@[0-2]$":
|
"^led@[0-2]$":
|
||||||
type: object
|
$ref: common.yaml#
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
reg:
|
reg:
|
||||||
|
|||||||
@ -30,9 +30,8 @@ properties:
|
|||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^led@[0-2]$":
|
"^led@[0-2]$":
|
||||||
type: object
|
$ref: common.yaml#
|
||||||
description: |
|
unevaluatedProperties: false
|
||||||
Properties for a single LED.
|
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
reg:
|
reg:
|
||||||
@ -41,10 +40,6 @@ patternProperties:
|
|||||||
minimum: 0
|
minimum: 0
|
||||||
maximum: 2
|
maximum: 2
|
||||||
|
|
||||||
label: true
|
|
||||||
|
|
||||||
linux,default-trigger: true
|
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- "#address-cells"
|
- "#address-cells"
|
||||||
|
|||||||
@ -26,26 +26,16 @@ properties:
|
|||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^led-[1-2]$":
|
"^led-[1-2]$":
|
||||||
type: object
|
$ref: common.yaml#
|
||||||
description:
|
unevaluatedProperties: false
|
||||||
Properties for a single LED.
|
|
||||||
properties:
|
properties:
|
||||||
#allOf:
|
|
||||||
#- $ref: "common.yaml#"
|
|
||||||
rohm,led-compatible:
|
rohm,led-compatible:
|
||||||
description: LED identification string
|
description: LED identification string
|
||||||
$ref: "/schemas/types.yaml#/definitions/string"
|
$ref: "/schemas/types.yaml#/definitions/string"
|
||||||
enum:
|
enum:
|
||||||
- bd71828-ambled
|
- bd71828-ambled
|
||||||
- bd71828-grnled
|
- 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:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user