Skip to content

Commit ec53e2e

Browse files
Dharma-Bstorulf
authored andcommitted
dt-bindings: mmc: mmc-slot: Make compatible property optional
The compatible property is required for some vendor-specific device trees, such as Amlogic's meson-mx-sdio, but is unnecessary for others, like Microchip's DTS. To resolve unintended warnings for configurations that do not require it, remove compatible from the required properties in mmc-slot.yaml. Since meson-mx-sdio still requires compatible, explicitly add it to its required list in amlogic,meson-mx-sdio.yaml. Signed-off-by: Dharma Balasubiramani <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent e01578e commit ec53e2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ patternProperties:
6060
bus-width:
6161
enum: [1, 4]
6262

63+
required:
64+
- compatible
65+
6366
unevaluatedProperties: false
6467

6568
required:

Documentation/devicetree/bindings/mmc/mmc-slot.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ properties:
2929
maxItems: 1
3030

3131
required:
32-
- compatible
3332
- reg
3433

3534
unevaluatedProperties: false

0 commit comments

Comments
 (0)