dt-bindings: sifive-l2-cache: Fix 'select' matching
[ Upstream commit1c8094e394] When the schema fixups are applied to 'select' the result is a single entry is required for a match, but that will never match as there should be 2 entries. Also, a 'select' schema should have the widest possible match, so use 'contains' which matches the compatible string(s) in any position and not just the first position. Fixes:993dcfac64("dt-bindings: riscv: sifive-l2-cache: convert bindings to json-schema") Signed-off-by: Rob Herring <robh@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ad5329a533
commit
c5600b9146
@@ -24,9 +24,9 @@ allOf:
|
|||||||
select:
|
select:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
items:
|
contains:
|
||||||
- enum:
|
enum:
|
||||||
- sifive,fu540-c000-ccache
|
- sifive,fu540-c000-ccache
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|||||||
Reference in New Issue
Block a user