Skip to content

Commit

Permalink
README: Fixup dts
Browse files Browse the repository at this point in the history
Fixup warning:

hello.dts:24.36-28.6: Warning (interrupt_provider):
/cpus/cpu@0/interrupt-controller: Missing #address-cells in interrupt
provider
hello.dts:37.36-41.6: Warning (interrupt_provider):
/cpus/cpu@1/interrupt-controller: Missing #address-cells in interrupt
provider
hello.dts:50.36-54.6: Warning (interrupt_provider):
/cpus/cpu@2/interrupt-controller: Missing #address-cells in interrupt
provider
hello.dts:63.36-67.6: Warning (interrupt_provider):
/cpus/cpu@3/interrupt-controller: Missing #address-cells in interrupt
provider

Remove unnecessary plic setting.
  • Loading branch information
haijiang-xu authored and guoren83 committed Oct 26, 2023
1 parent 1634ef2 commit 0b08c1d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ The T-HEAD C9xx DTB provided to OpenSBI generic firmware will usually have
status = "okay";
compatible = "riscv";
riscv,isa = "rv64ima";
mmu-type = "riscv,sv48";
mmu-type = "riscv,sv57";
cpu0_intc: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand All @@ -54,8 +55,9 @@ The T-HEAD C9xx DTB provided to OpenSBI generic firmware will usually have
status = "okay";
compatible = "riscv";
riscv,isa = "rv64ima";
mmu-type = "riscv,sv48";
mmu-type = "riscv,sv57";
cpu1_intc: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand All @@ -67,8 +69,9 @@ The T-HEAD C9xx DTB provided to OpenSBI generic firmware will usually have
status = "okay";
compatible = "riscv";
riscv,isa = "rv64ima";
mmu-type = "riscv,sv48";
mmu-type = "riscv,sv57";
cpu2_intc: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand All @@ -80,8 +83,9 @@ The T-HEAD C9xx DTB provided to OpenSBI generic firmware will usually have
status = "okay";
compatible = "riscv";
riscv,isa = "rv64ima";
mmu-type = "riscv,sv48";
mmu-type = "riscv,sv57";
cpu3_intc: interrupt-controller {
#address-cells = <0>;
#interrupt-cells = <1>;
compatible = "riscv,cpu-intc";
interrupt-controller;
Expand Down Expand Up @@ -110,19 +114,17 @@ The T-HEAD C9xx DTB provided to OpenSBI generic firmware will usually have
intc: interrupt-controller@8000000 {
#address-cells = <0>;
#interrupt-cells = <2>;
#interrupt-cells = <1>;
compatible = "thead,c900-plic";
reg = <0x0 0x08000000 0x0 0x04000000>;
riscv,ndev = <80>;
interrupt-controller;
interrupts-extended = <
&cpu0_intc 0xffffffff &cpu0_intc 9
&cpu1_intc 0xffffffff &cpu1_intc 9
&cpu2_intc 0xffffffff &cpu2_intc 9
&cpu3_intc 0xffffffff &cpu3_intc 9
>;
reg = <0x0 0x08000000 0x0 0x04000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <80>;
};
};
};
Expand Down

0 comments on commit 0b08c1d

Please sign in to comment.