Skip to content

Commit 580f989

Browse files
committed
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 <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 1211644 commit 580f989

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

Documentation/devicetree/bindings/leds/leds-lgm.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ properties:
5656

5757
patternProperties:
5858
"^led@[0-2]$":
59-
type: object
59+
$ref: common.yaml#
60+
unevaluatedProperties: false
6061

6162
properties:
6263
reg:

Documentation/devicetree/bindings/leds/leds-max77650.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ properties:
3030

3131
patternProperties:
3232
"^led@[0-2]$":
33-
type: object
34-
description: |
35-
Properties for a single LED.
33+
$ref: common.yaml#
34+
unevaluatedProperties: false
3635

3736
properties:
3837
reg:
@@ -41,10 +40,6 @@ patternProperties:
4140
minimum: 0
4241
maximum: 2
4342

44-
label: true
45-
46-
linux,default-trigger: true
47-
4843
required:
4944
- compatible
5045
- "#address-cells"

Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,16 @@ properties:
2626

2727
patternProperties:
2828
"^led-[1-2]$":
29-
type: object
30-
description:
31-
Properties for a single LED.
29+
$ref: common.yaml#
30+
unevaluatedProperties: false
31+
3232
properties:
33-
#allOf:
34-
#- $ref: "common.yaml#"
3533
rohm,led-compatible:
3634
description: LED identification string
3735
$ref: "/schemas/types.yaml#/definitions/string"
3836
enum:
3937
- bd71828-ambled
4038
- bd71828-grnled
41-
function:
42-
description:
43-
Purpose of LED as defined in dt-bindings/leds/common.h
44-
$ref: "/schemas/types.yaml#/definitions/string"
45-
color:
46-
description:
47-
LED colour as defined in dt-bindings/leds/common.h
48-
$ref: "/schemas/types.yaml#/definitions/uint32"
4939

5040
required:
5141
- compatible

0 commit comments

Comments
 (0)