OSDN Git Service

dt-bindings: riscv: Limit cpus schema to only check RiscV 'cpu' nodes
authorRob Herring <robh@kernel.org>
Wed, 26 Jun 2019 23:57:59 +0000 (17:57 -0600)
committerRob Herring <robh@kernel.org>
Sun, 21 Jul 2019 02:28:52 +0000 (20:28 -0600)
commit7d9ef7f37d1f37981344d1a8c8578b67bdf4736a
treea18df49f4904cd820cd473eaebaa908c77528a7a
parent15ffef1ae69e99ebb54326f0220916b1fe619b24
dt-bindings: riscv: Limit cpus schema to only check RiscV 'cpu' nodes

Matching on the 'cpus' node was a bad choice because the schema is
incorrectly applied to non-RiscV cpus nodes. As we now have a common cpus
schema which checks the general structure, it is also redundant to do so
in the Risc-V CPU schema.

The downside is one could conceivably mix different architecture's cpu
nodes or have typos in the compatible string. The latter problem pretty
much exists for every schema.

Acked-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/riscv/cpus.yaml