Skip to content

Commit e19f975

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 719a85a commit e19f975

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/riscv/boot/dts/canaan/k210.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
#address-cells = <1>;
164164
#size-cells = <1>;
165165
compatible = "simple-pm-bus";
166-
ranges;
166+
ranges = <0x50200000 0x50200000 0x200000>;
167167
clocks = <&sysclk K210_CLK_APB0>;
168168

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

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

443443
spi0: spi@52000000 {

0 commit comments

Comments
 (0)