2019-06-04 08:11:33 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2015-03-09 09:03:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Device tree for AXC003 CPU card: HS38x UP configuration
|
|
|
|
*/
|
|
|
|
|
2016-01-19 10:30:42 +00:00
|
|
|
/include/ "skeleton_hs.dtsi"
|
|
|
|
|
2015-03-09 09:03:40 +00:00
|
|
|
/ {
|
|
|
|
compatible = "snps,arc";
|
2017-06-26 11:47:25 +00:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
2015-03-09 09:03:40 +00:00
|
|
|
|
|
|
|
cpu_card {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2017-06-26 11:47:25 +00:00
|
|
|
ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
|
2015-03-09 09:03:40 +00:00
|
|
|
|
2017-08-14 16:12:11 +00:00
|
|
|
input_clk: input-clk {
|
2016-01-01 13:18:40 +00:00
|
|
|
#clock-cells = <0>;
|
|
|
|
compatible = "fixed-clock";
|
2017-08-14 16:12:11 +00:00
|
|
|
clock-frequency = <33333333>;
|
|
|
|
};
|
|
|
|
|
|
|
|
core_clk: core-clk@80 {
|
|
|
|
compatible = "snps,axs10x-arc-pll-clock";
|
|
|
|
reg = <0x80 0x10>, <0x100 0x10>;
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clocks = <&input_clk>;
|
2017-12-09 13:59:17 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set initial core pll output frequency to 90MHz.
|
|
|
|
* It will be applied at the core pll driver probing
|
|
|
|
* on early boot.
|
|
|
|
*/
|
|
|
|
assigned-clocks = <&core_clk>;
|
|
|
|
assigned-clock-rates = <90000000>;
|
2016-01-01 13:18:40 +00:00
|
|
|
};
|
|
|
|
|
2016-01-28 04:27:12 +00:00
|
|
|
core_intc: archs-intc@cpu {
|
2015-03-09 09:03:40 +00:00
|
|
|
compatible = "snps,archs-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 12:17:03 +00:00
|
|
|
dw-apb-gpio@2000 {
|
2015-03-09 09:03:40 +00: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 04:27:12 +00:00
|
|
|
interrupt-parent = <&core_intc>;
|
2015-03-09 09:03:40 +00:00
|
|
|
interrupts = <25>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-01-24 12:17:03 +00:00
|
|
|
debug_uart: dw-apb-uart@5000 {
|
2015-03-09 09:03:40 +00:00
|
|
|
compatible = "snps,dw-apb-uart";
|
|
|
|
reg = <0x5000 0x100>;
|
|
|
|
clock-frequency = <33333000>;
|
|
|
|
interrupt-parent = <&ictl_intc>;
|
|
|
|
interrupts = <2 4>;
|
|
|
|
baud = <115200>;
|
|
|
|
reg-shift = <2>;
|
|
|
|
reg-io-width = <4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
arcpct0: pct {
|
|
|
|
compatible = "snps,archs-pct";
|
|
|
|
#interrupt-cells = <1>;
|
2016-01-28 04:27:12 +00:00
|
|
|
interrupt-parent = <&core_intc>;
|
2015-03-09 09:03:40 +00:00
|
|
|
interrupts = <20>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-07-30 16:26:33 +00:00
|
|
|
/*
|
|
|
|
* Mark DMA peripherals connected via IOC port as dma-coherent. We do
|
|
|
|
* it via overlay because peripherals defined in axs10x_mb.dtsi are
|
|
|
|
* used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
|
|
|
|
* only AXS103 board has HW-coherent DMA peripherals)
|
|
|
|
* We don't need to mark pgu@17000 as dma-coherent because it uses
|
|
|
|
* external DMA buffer located outside of IOC aperture.
|
|
|
|
*/
|
|
|
|
axs10x_mb {
|
2019-01-24 12:17:03 +00:00
|
|
|
ethernet@18000 {
|
2018-07-30 16:26:33 +00:00
|
|
|
dma-coherent;
|
|
|
|
};
|
|
|
|
|
2019-01-24 12:17:03 +00:00
|
|
|
ehci@40000 {
|
2018-07-30 16:26:33 +00:00
|
|
|
dma-coherent;
|
|
|
|
};
|
|
|
|
|
2019-01-24 12:17:03 +00:00
|
|
|
ohci@60000 {
|
2018-07-30 16:26:33 +00:00
|
|
|
dma-coherent;
|
|
|
|
};
|
|
|
|
|
2019-01-24 12:17:03 +00:00
|
|
|
mmc@15000 {
|
2018-07-30 16:26:33 +00:00
|
|
|
dma-coherent;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-03-09 09:03:40 +00:00
|
|
|
/*
|
2015-08-19 11:53:58 +00:00
|
|
|
* The DW APB ICTL intc on MB is connected to CPU intc via a
|
|
|
|
* DT "invisible" DW APB GPIO block, configured to simply pass thru
|
|
|
|
* interrupts - setup accordinly in platform init (plat-axs10x/ax10x.c)
|
|
|
|
*
|
|
|
|
* So here we mimic a direct connection betwen them, ignoring the
|
|
|
|
* ABPG GPIO. Thus set "interrupts = <24>" (DW APB GPIO to core)
|
|
|
|
* instead of "interrupts = <12>" (DW APB ICTL to DW APB GPIO)
|
2015-03-09 09:03:40 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
2020-09-24 07:17:54 +00:00
|
|
|
mb_intc: interrupt-controller@e0012000 {
|
2015-03-09 09:03:40 +00:00
|
|
|
#interrupt-cells = <1>;
|
|
|
|
compatible = "snps,dw-apb-ictl";
|
2017-06-26 11:47:25 +00:00
|
|
|
reg = < 0x0 0xe0012000 0x0 0x200 >;
|
2015-03-09 09:03:40 +00:00
|
|
|
interrupt-controller;
|
2016-01-28 04:27:12 +00:00
|
|
|
interrupt-parent = <&core_intc>;
|
2015-03-09 09:03:40 +00:00
|
|
|
interrupts = < 24 >;
|
|
|
|
};
|
|
|
|
|
|
|
|
memory {
|
|
|
|
device_type = "memory";
|
2017-08-15 18:13:54 +00:00
|
|
|
/* CONFIG_LINUX_RAM_BASE needs to match low mem start */
|
2017-06-26 11:47:25 +00:00
|
|
|
reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
|
|
|
|
0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
|
2015-03-09 09:03:40 +00:00
|
|
|
};
|
2016-04-27 13:59:50 +00:00
|
|
|
|
|
|
|
reserved-memory {
|
2017-06-26 11:47:25 +00:00
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <2>;
|
2016-04-27 13:59:50 +00:00
|
|
|
ranges;
|
|
|
|
/*
|
2019-01-24 12:17:03 +00:00
|
|
|
* Move frame buffer out of IOC aperture (0x8z-0xaz).
|
2016-04-27 13:59:50 +00:00
|
|
|
*/
|
|
|
|
frame_buffer: frame_buffer@be000000 {
|
|
|
|
compatible = "shared-dma-pool";
|
2017-06-26 11:47:25 +00:00
|
|
|
reg = <0x0 0xbe000000 0x0 0x2000000>;
|
2016-04-27 13:59:50 +00:00
|
|
|
no-map;
|
|
|
|
};
|
|
|
|
};
|
2015-03-09 09:03:40 +00:00
|
|
|
};
|