tools/litex_json2dts: Fix plic node
interrupt-controller@f0c00000: compatible:0: 'sifive,plic-1.0.0' is not one of ['sifive,fu540-c000-plic', 'canaan,k210-plic'] From schema: Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml interrupt-controller@f0c00000: compatible:1: 'sifive,plic-1.0.0' was expected From schema: Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml interrupt-controller@f0c00000: '#address-cells' is a required property From schema: Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml Fix this by correcting the order of the compatible values, and adding the missing #address-cells property. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
610bfe4d0c
commit
bcef9a68ca
|
@ -155,8 +155,9 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
||||||
if cpu_name == "vexriscv smp-linux":
|
if cpu_name == "vexriscv smp-linux":
|
||||||
dts += """
|
dts += """
|
||||||
intc0: interrupt-controller@{plic_base:x} {{
|
intc0: interrupt-controller@{plic_base:x} {{
|
||||||
compatible = "sifive,plic-1.0.0", "sifive,fu540-c000-plic";
|
compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";
|
||||||
reg = <0x{plic_base:x} 0x400000>;
|
reg = <0x{plic_base:x} 0x400000>;
|
||||||
|
#address-cells = <0>;
|
||||||
#interrupt-cells = <1>;
|
#interrupt-cells = <1>;
|
||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
interrupts-extended = <
|
interrupts-extended = <
|
||||||
|
|
Loading…
Reference in New Issue