2019-06-04 18:25:44 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018, 2019, Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
2020-02-06 02:12:51 +08:00
|
|
|
#include <mem.h>
|
|
|
|
|
|
|
|
#ifndef ICCM_ADDR
|
|
|
|
#define ICCM_ADDR 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ICCM_SIZE
|
|
|
|
#define ICCM_SIZE DT_SIZE_K(512)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DCCM_ADDR
|
|
|
|
#define DCCM_ADDR 80000000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DCCM_SIZE
|
|
|
|
#define DCCM_SIZE DT_SIZE_K(512)
|
|
|
|
#endif
|
2019-06-04 18:25:44 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
intc: arcv2-intc {
|
|
|
|
compatible = "snps,arcv2-intc";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-02-06 02:12:51 +08:00
|
|
|
iccm0: iccm@ICCM_ADDR {
|
2019-06-04 18:25:44 +08:00
|
|
|
compatible = "arc,iccm";
|
2020-02-06 02:12:51 +08:00
|
|
|
reg = <DT_ADDR(ICCM_ADDR) ICCM_SIZE>;
|
2019-06-04 18:25:44 +08:00
|
|
|
};
|
|
|
|
|
2020-02-06 02:12:51 +08:00
|
|
|
dccm0: dccm@DCCM_ADDR {
|
2019-06-04 18:25:44 +08:00
|
|
|
compatible = "arc,dccm";
|
2020-02-06 02:12:51 +08:00
|
|
|
reg = <DT_ADDR(DCCM_ADDR) DCCM_SIZE>;
|
2019-06-04 18:25:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
uart0: uart@f0000000 {
|
2020-07-13 23:41:12 +08:00
|
|
|
compatible = "ns16550";
|
2020-10-07 20:56:33 +08:00
|
|
|
clock-frequency = <50000000>;
|
2020-07-13 23:41:12 +08:00
|
|
|
reg = <0xf0000000 0x400>;
|
|
|
|
current-speed = <115200>;
|
2019-06-04 18:25:44 +08:00
|
|
|
label = "UART_0";
|
2020-07-13 23:41:12 +08:00
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <24 1>;
|
2019-06-04 18:25:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &dccm0;
|
|
|
|
zephyr,console = &uart0;
|
|
|
|
zephyr,shell-uart = &uart0;
|
|
|
|
};
|
|
|
|
};
|