2019-04-06 21:08:09 +08:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
|
2018-04-21 00:18:10 +08:00
|
|
|
#include "skeleton.dtsi"
|
2018-12-21 16:56:34 +08:00
|
|
|
#include <dt-bindings/i2c/i2c.h>
|
2018-04-21 00:18:10 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2020-03-28 01:22:55 +08:00
|
|
|
cpu: cpu@0 {
|
2018-04-21 00:18:10 +08:00
|
|
|
device_type = "cpu";
|
2020-10-21 04:05:49 +08:00
|
|
|
compatible = "altr,nios2f";
|
2018-04-21 00:18:10 +08:00
|
|
|
reg = <0>;
|
2020-03-28 01:22:55 +08:00
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
2018-04-21 00:18:10 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
flash0: flash@0 {
|
2018-09-21 07:39:55 +08:00
|
|
|
compatible = "soc-nv-flash";
|
2018-04-21 00:18:10 +08:00
|
|
|
reg = <0x00 0xb8000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sram0: memory@400000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x400000 0x20000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
2020-03-28 01:22:55 +08:00
|
|
|
interrupt-parent = <&cpu>;
|
2018-04-21 00:18:10 +08:00
|
|
|
ranges;
|
|
|
|
|
2021-05-27 03:45:21 +08:00
|
|
|
uart0: uart@100000 {
|
2018-04-21 00:18:10 +08:00
|
|
|
compatible = "ns16550";
|
2021-05-27 03:45:21 +08:00
|
|
|
reg = <0x100000 0x400>;
|
2020-03-09 22:37:20 +08:00
|
|
|
clock-frequency = <50000000>;
|
2020-03-28 01:22:55 +08:00
|
|
|
interrupts = <1 0>;
|
2018-04-21 00:18:10 +08:00
|
|
|
label = "UART_0";
|
|
|
|
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2018-12-21 16:56:34 +08:00
|
|
|
i2c0: i2c@100200 {
|
|
|
|
compatible = "nios2,i2c";
|
|
|
|
clock-frequency = <I2C_BITRATE_ULTRA>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x100200 0x400>;
|
2021-03-03 09:58:46 +08:00
|
|
|
interrupts = <4 10>;
|
2018-12-21 16:56:34 +08:00
|
|
|
label = "I2C_0";
|
2021-03-02 05:56:27 +08:00
|
|
|
};
|
2018-12-21 16:56:34 +08:00
|
|
|
|
2021-03-02 05:56:27 +08:00
|
|
|
dma: dma@100200 {
|
|
|
|
compatible = "altr,msgdma";
|
|
|
|
reg = <0x1002c0 0x30>;
|
|
|
|
label = "DMA_0";
|
|
|
|
interrupts = <3 3>;
|
|
|
|
#dma-cells = <0>;
|
2018-12-21 16:56:34 +08:00
|
|
|
};
|
2018-04-21 00:18:10 +08:00
|
|
|
};
|
|
|
|
};
|