arm: dts: vexpress: Move mcc node back into motherboard node
authorAndre Przywara <andre.przywara@arm.com>
Wed, 3 Jun 2020 16:22:37 +0000 (17:22 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 4 Jun 2020 12:52:21 +0000 (13:52 +0100)
commit38ac46002d1df5707566a73486452851341028d2
tree232bbe44d27325f4a5780dfa0971952c63929220
parent94cc3f1baabac5e5c4dcc6c2f070353f8315d0ee
arm: dts: vexpress: Move mcc node back into motherboard node

Commit d9258898ad49 ("arm64: dts: arm: vexpress: Move fixed devices
out of bus node") moved the "mcc" DT node into the root node, because
it does not have any children using "reg" properties, so does violate
some dtc checks about "simple-bus" nodes.

However this broke the vexpress config-bus code, which walks up the
device tree to find the first node with an "arm,vexpress,site" property.
This gave the wrong result (matching the root node instead of the
motherboard node), so broke the clocks and some other devices for
VExpress boards.

Move the whole node back into its original position. This re-introduces
the dtc warning, but is conceptually the right thing to do. The dtc
warning seems to be overzealous here, there are discussions on fixing or
relaxing this check instead.

Link: https://lore.kernel.org/r/20200603162237.16319-1-andre.przywara@arm.com
Fixes: d9258898ad49 ("arm64: dts: vexpress: Move fixed devices out of bus node")
Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
arch/arm/boot/dts/vexpress-v2m-rs1.dtsi