2019-06-04 16:11:33 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2014-01-27 21:51:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Device tree for AXC001 770D/EM6/AS221 CPU card
|
|
|
|
* Note that this file only supports the 770D CPU
|
|
|
|
*/
|
|
|
|
|
2016-01-19 18:30:42 +08:00
|
|
|
/include/ "skeleton.dtsi"
|
|
|
|
|
2014-01-27 21:51:34 +08:00
|
|
|
/ {
|
|
|
|
compatible = "snps,arc";
|
2017-06-26 19:47:25 +08:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
2014-01-27 21:51:34 +08:00
|
|
|
|
|
|
|
cpu_card {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2017-06-26 19:47:25 +08:00
|
|
|
ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
|
2014-01-27 21:51:34 +08:00
|
|
|
|
2016-01-01 21:18:40 +08:00
|
|
|
core_clk: core_clk {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <750000000>;
|
|
|
|
};
|
|
|
|
|
2019-11-19 21:22:14 +08:00
|
|
|
input_clk: input-clk {
|
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
clock-frequency = <33333333>;
|
|
|
|
};
|
|
|
|
|
2016-01-28 12:27:12 +08:00
|
|
|
core_intc: arc700-intc@cpu {
|
2014-01-27 21:51:34 +08:00
|
|
|
compatible = "snps,arc700-intc";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* this GPIO block ORs all interrupts on CPU card (creg,..)
|
|
|
|
* to uplink only 1 IRQ to ARC core intc
|
|
|
|
*/
|
2019-01-24 20:17:03 +08:00
|
|
|
dw-apb-gpio@2000 {
|
2014-01-27 21:51:34 +08:00
|
|
|
compatible = "snps,dw-apb-gpio";
|
|
|
|
reg = < 0x2000 0x80 >;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
ictl_intc: gpio-controller@0 {
|
|
|
|
compatible = "snps,dw-apb-gpio-port";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
snps,nr-gpios = <30>;
|
|
|
|
reg = <0>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
2016-01-28 12:27:12 +08:00
|
|
|
interrupt-parent = <&core_intc>;
|
2014-01-27 21:51:34 +08:00
|
|
|
interrupts = <15>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-01-24 20:17:03 +08:00
|
|
|
debug_uart: dw-apb-uart@5000 {
|
2014-01-27 21:51:34 +08:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x5000 0x100>;
|
|
|
|
clock-frequency = <33333000>;
|
|
|
|
interrupt-parent = <&ictl_intc>;
|
|
|
|
interrupts = <19 4>;
|
|
|
|
baud = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
};
|
|
|
|
|
2016-10-31 20:59:11 +08:00
|
|
|
arcpct0: pct {
|
2014-01-27 21:51:34 +08:00
|
|
|
compatible = "snps,arc700-pct";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-04-01 21:21:00 +08:00
|
|
|
/*
|
|
|
|
* This INTC is actually connected to DW APB GPIO
|
|
|
|
* which acts as a wire between MB INTC and CPU INTC.
|
|
|
|
* GPIO INTC is configured in platform init code
|
|
|
|
* and here we mimic direct connection from MB INTC to
|
|
|
|
* CPU INTC, thus we set "interrupts = <7>" instead of
|
|
|
|
* "interrupts = <12>"
|
|
|
|
*
|
|
|
|
* This intc actually resides on MB, but we move it here to
|
|
|
|
* avoid duplicating the MB dtsi file given that IRQ from
|
|
|
|
* this intc to cpu intc are different for axs101 and axs103
|
|
|
|
*/
|
2019-01-24 20:17:03 +08:00
|
|
|
mb_intc: dw-apb-ictl@e0012000 {
|
2015-04-01 21:21:00 +08:00
|
|
|
#interrupt-cells = <1>;
|
|
|
|
compatible = "snps,dw-apb-ictl";
|
2017-06-26 19:47:25 +08:00
|
|
|
reg = < 0x0 0xe0012000 0x0 0x200 >;
|
2015-04-01 21:21:00 +08:00
|
|
|
interrupt-controller;
|
2016-01-28 12:27:12 +08:00
|
|
|
interrupt-parent = <&core_intc>;
|
2015-04-01 21:21:00 +08:00
|
|
|
interrupts = < 7 >;
|
|
|
|
};
|
|
|
|
|
2014-01-27 21:51:34 +08:00
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
2017-08-16 02:13:54 +08:00
|
|
|
/* CONFIG_LINUX_RAM_BASE needs to match low mem start */
|
2017-06-26 19:47:25 +08:00
|
|
|
reg = <0x0 0x80000000 0x0 0x1b000000>; /* (512 - 32) MiB */
|
2016-04-27 21:59:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
reserved-memory {
|
2017-06-26 19:47:25 +08:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
2016-04-27 21:59:50 +08:00
|
|
|
ranges;
|
|
|
|
/*
|
|
|
|
* We just move frame buffer area to the very end of
|
|
|
|
* available DDR. And even though in case of ARC770 there's
|
|
|
|
* no strict requirement for a frame-buffer to be in any
|
|
|
|
* particular location it allows us to use the same
|
|
|
|
* base board's DT node for ARC PGU as for ARc HS38.
|
|
|
|
*/
|
|
|
|
frame_buffer: frame_buffer@9e000000 {
|
|
|
|
compatible = "shared-dma-pool";
|
2017-06-26 19:47:25 +08:00
|
|
|
reg = <0x0 0x9e000000 0x0 0x2000000>;
|
2016-04-27 21:59:50 +08:00
|
|
|
no-map;
|
|
|
|
};
|
2014-01-27 21:51:34 +08:00
|
|
|
};
|
|
|
|
};
|