Unverified Commit e19f975a authored by Conor Dooley's avatar Conor Dooley Committed by Palmer Dabbelt
Browse files

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: default avatarNiklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220705215213.1802496-12-mail@conchuod.ie


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 719a85a2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "simple-pm-bus";
			ranges;
			ranges = <0x50200000 0x50200000 0x200000>;
			clocks = <&sysclk K210_CLK_APB0>;

			gpio1: gpio@50200000 {
@@ -382,7 +382,7 @@
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "simple-pm-bus";
			ranges;
			ranges = <0x50400000 0x50400000 0x40100>;
			clocks = <&sysclk K210_CLK_APB1>;

			wdt0: watchdog@50400000 {
@@ -437,7 +437,7 @@
			#address-cells = <1>;
			#size-cells = <1>;
			compatible = "simple-pm-bus";
			ranges;
			ranges = <0x52000000 0x52000000 0x2000200>;
			clocks = <&sysclk K210_CLK_APB2>;

			spi0: spi@52000000 {