2023-02-03 15:06:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2023, Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <skeleton.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
cpu0: cpu@0 {
|
|
|
|
device_type = "cpu";
|
2024-01-16 20:53:22 +08:00
|
|
|
compatible = "intel,niosv", "riscv";
|
2023-09-05 21:15:25 +08:00
|
|
|
riscv,isa = "rv32ia_zicsr_zifencei";
|
2023-02-03 15:06:02 +08:00
|
|
|
reg = <0>;
|
|
|
|
clock-frequency = <50000000>;
|
|
|
|
|
|
|
|
/* Platform interrupts IRQs index start from 16 */
|
|
|
|
intc: interrupt-controller {
|
|
|
|
compatible = "riscv,cpu-intc";
|
|
|
|
#address-cells = <0>;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
interrupt-controller;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
sram0: memory@0 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
};
|
|
|
|
|
|
|
|
mtimer: machine-timer@90000 {
|
|
|
|
compatible = "niosv-machine-timer";
|
|
|
|
reg = <0x90000 0x10>;
|
|
|
|
interrupts = <7>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0: serial@90078 {
|
|
|
|
compatible = "altr,jtag-uart";
|
|
|
|
interrupts = <16>;
|
2023-09-12 16:57:49 +08:00
|
|
|
status = "disabled";
|
2023-02-03 15:06:02 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|