riscv: dts: canaan: fix bus {ranges,reg} warnings
authorConor Dooley <conor.dooley@microchip.com>
Tue, 5 Jul 2022 21:52:12 +0000 (22:52 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 14 Jul 2022 21:57:47 +0000 (14:57 -0700)
commite19f975a39f002846e144ab35a6cf15ef81fa6d8
tree16cdae51a160d20f2955aabe649218a4ea0e71f4
parent719a85a2c57fd7cce65f4a746ebf83d222e0c05f
riscv: dts: canaan: fix bus {ranges,reg} warnings

The k210 devicetrees warn about missing/empty reg and/or ranges
properties:
arch/riscv/boot/dts/canaan/k210.dtsi:408.22-460.5: Warning (unit_address_vs_reg): /soc/bus@52000000: node has a unit name, but no reg or ranges property
arch/riscv/boot/dts/canaan/k210.dtsi:352.22-406.5: Warning (simple_bus_reg): /soc/bus@50400000: missing or empty reg/ranges property

Add a ranges properties that naively caps the buses after the
allocation of their last devices.

Tested-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220705215213.1802496-12-mail@conchuod.ie
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/boot/dts/canaan/k210.dtsi