Skip to content

Commit

Permalink
add address-cells = <0> to suppress warnings
Browse files Browse the repository at this point in the history
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: [sysprog21#37](sysprog21#37)
  • Loading branch information
Mes0903 committed Dec 13, 2024
1 parent 4020bff commit 214c713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gen-hart-dts.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def dtsi_template (cpu_list: str, plic_list, sswi_list, mtimer_list, mswi_list,
sswi0: sswi@4500000 {{
#interrupt-cells = <0>;
#address-cells = <0>;
interrupt-controller;
interrupts-extended = {sswi_list};
reg = <0x4500000 0x4000>;
Expand All @@ -76,6 +77,7 @@ def dtsi_template (cpu_list: str, plic_list, sswi_list, mtimer_list, mswi_list,
mswi0: mswi@4400000 {{
#interrupt-cells = <0>;
#address-cells = <0>;
interrupt-controller;
interrupts-extended = {mswi_list};
reg = <0x4400000 0x4000>;
Expand Down

0 comments on commit 214c713

Please sign in to comment.