dt-bindings: sifive-l2-cache: Fix 'select' matching
authorRob Herring <robh@kernel.org>
Tue, 17 Aug 2021 17:47:55 +0000 (12:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:09:26 +0000 (10:09 +0200)
commitc5600b914690d440bb9593d41cd57d98a85cac21
treefd4ad681ff9db3559d1f11ff39de71d22854d589
parentad5329a5332771b03acd469a12e702b1cb9a53dd
dt-bindings: sifive-l2-cache: Fix 'select' matching

[ Upstream commit 1c8094e394bceb4f1880f9d539bdd255c130826e ]

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: 993dcfac64eb ("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>
Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml