Skip to content

Commit 214c713

Browse files
committed
add address-cells = <0> to suppress warnings
The DTC of version 1.6.1 generates the warning "Missing #address-cells in interrupt provider". add `address-cells = <0>` to suppress "Missing \#address-cells" warning provided by DTC v1.6.1 Reference: [#37](#37)
1 parent 4020bff commit 214c713

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/gen-hart-dts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def dtsi_template (cpu_list: str, plic_list, sswi_list, mtimer_list, mswi_list,
6868
6969
sswi0: sswi@4500000 {{
7070
#interrupt-cells = <0>;
71+
#address-cells = <0>;
7172
interrupt-controller;
7273
interrupts-extended = {sswi_list};
7374
reg = <0x4500000 0x4000>;
@@ -76,6 +77,7 @@ def dtsi_template (cpu_list: str, plic_list, sswi_list, mtimer_list, mswi_list,
7677
7778
mswi0: mswi@4400000 {{
7879
#interrupt-cells = <0>;
80+
#address-cells = <0>;
7981
interrupt-controller;
8082
interrupts-extended = {mswi_list};
8183
reg = <0x4400000 0x4000>;

0 commit comments

Comments
 (0)