Skip to content

Commit 2600bf8

Browse files
committed
Suppress DTC warnings
The DTC of version 1.6.1 generates the following warnings: 1. (unit_address_vs_reg) /soc: node has a reg or ranges property, but no unit name 2. (interrupt_provider): /cpus/cpu@0/interrupt-controller: Missing #address-cells in interrupt provider To suppress them, add unit-name with parent-bus-address to the SOC node and #address-cells to the CPU interrupt controller.
1 parent 0252892 commit 2600bf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

minimal.dts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
model = "semu";
77

88
aliases {
9-
serial0 = "/soc/serial@4000000";
9+
serial0 = "/soc@F0000000/serial@4000000";
1010
};
1111

1212
chosen {
@@ -28,6 +28,7 @@
2828
mmu-type = "riscv,rv32";
2929
cpu0_intc: interrupt-controller {
3030
#interrupt-cells = <1>;
31+
#address-cells = <0>;
3132
interrupt-controller;
3233
compatible = "riscv,cpu-intc";
3334
};
@@ -40,7 +41,7 @@
4041
reg-names = "sram0";
4142
};
4243

43-
soc {
44+
soc: soc@F0000000 {
4445
#address-cells = <1>;
4546
#size-cells = <1>;
4647
compatible = "simple-bus";

0 commit comments

Comments
 (0)