2019-06-20 15:04:33 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018, Synopsys, Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "skeleton.dtsi"
|
|
|
|
|
|
|
|
//#include <dt-bindings/i2c/i2c.h>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
|
|
#define DT_APB_CLK_HZ 100000000
|
|
|
|
|
|
|
|
/ {
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
cpu@0 {
|
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "snps,arcem";
|
2019-08-05 14:50:16 +08:00
|
|
|
reg = <0>;
|
2019-06-20 15:04:33 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
intc: arcv2-intc {
|
|
|
|
compatible = "snps,arcv2-intc";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
iccm0: iccm@60000000 {
|
|
|
|
compatible = "arc,iccm";
|
|
|
|
reg = <0x60000000 0x20000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
dccm0: dccm@80000000 {
|
|
|
|
compatible = "arc,dccm";
|
|
|
|
reg = <0x80000000 0x20000>;
|
|
|
|
};
|
|
|
|
|
2020-07-23 22:28:15 +08:00
|
|
|
/* this is (Psuedo SRAM), so treat it like mmio-sram */
|
2019-06-20 15:04:33 +08:00
|
|
|
sram0: memory@10000000 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x10000000 0x1000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
soc {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "simple-bus";
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
|
|
|
|
uart0: uart@f0004000 {
|
|
|
|
compatible = "ns16550";
|
|
|
|
clock-frequency = <DT_APB_CLK_HZ>;
|
|
|
|
reg = <0xf0004000 0x1000>;
|
|
|
|
label = "UART_0";
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio0: gpio@f0002000 {
|
|
|
|
compatible = "snps,designware-gpio";
|
|
|
|
reg = <0xf0002000 0xc>;
|
|
|
|
bits = <4>;
|
|
|
|
label = "GPIO_0";
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio1: gpio@f000200c {
|
|
|
|
compatible = "snps,designware-gpio";
|
|
|
|
reg = <0xf000200c 0xc>;
|
|
|
|
bits = <8>;
|
|
|
|
label = "GPIO_1";
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <0 1>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|