2 * Copyright (C) 2014, 2015 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 * Device tree for AXC003 CPU card: HS38x2 (Dual Core) with IDU intc
14 compatible = "snps,arc";
15 clock-frequency = <90000000>;
20 compatible = "simple-bus";
24 ranges = <0x00000000 0xf0000000 0x10000000>;
26 cpu_intc: archs-intc@cpu {
27 compatible = "snps,archs-intc";
29 #interrupt-cells = <1>;
32 idu_intc: idu-interrupt-controller {
33 compatible = "snps,archs-idu-intc";
35 interrupt-parent = <&cpu_intc>;
38 * <hwirq distribution>
39 * distribution: 0=RR; 1=cpu0, 2=cpu1, 4=cpu2, 8=cpu3
41 #interrupt-cells = <2>;
44 * upstream irqs to core intc - downstream these are
51 * this GPIO block ORs all interrupts on CPU card (creg,..)
52 * to uplink only 1 IRQ to ARC core intc
55 compatible = "snps,dw-apb-gpio";
56 reg = < 0x2000 0x80 >;
60 ictl_intc: gpio-controller@0 {
61 compatible = "snps,dw-apb-gpio-port";
67 #interrupt-cells = <2>;
68 interrupt-parent = <&idu_intc>;
71 * cmn irq 1 -> cpu irq 25
72 * Distribute to cpu0 only
78 debug_uart: dw-apb-uart@0x5000 {
79 compatible = "snps,dw-apb-uart";
81 clock-frequency = <33333000>;
82 interrupt-parent = <&ictl_intc>;
90 compatible = "snps,archs-pct";
91 #interrupt-cells = <1>;
92 interrupt-parent = <&cpu_intc>;
98 * This INTC is actually connected to DW APB GPIO
99 * which acts as a wire between MB INTC and CPU INTC.
100 * GPIO INTC is configured in platform init code
101 * and here we mimic direct connection from MB INTC to
102 * CPU INTC, thus we set "interrupts = <0 1>" instead of
103 * "interrupts = <12>"
105 * This intc actually resides on MB, but we move it here to
106 * avoid duplicating the MB dtsi file given that IRQ from
107 * this intc to cpu intc are different for axs101 and axs103
109 mb_intc: dw-apb-ictl@0xe0012000 {
110 #interrupt-cells = <1>;
111 compatible = "snps,dw-apb-ictl";
112 reg = < 0xe0012000 0x200 >;
113 interrupt-controller;
114 interrupt-parent = <&idu_intc>;
115 interrupts = <0 1>; /* cmn irq 0 -> cpu irq 24
116 distribute to cpu0 only */
120 #address-cells = <1>;
122 ranges = <0x00000000 0x80000000 0x40000000>;
123 device_type = "memory";
124 reg = <0x80000000 0x20000000>; /* 512MiB */