blob: 9da21e7fd246f9f90dc7caed2428db53cf017c83 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Vineet Gupta5fa2daa2015-03-09 14:33:40 +05302/*
3 * Copyright (C) 2014, 2015 Synopsys, Inc. (www.synopsys.com)
Vineet Gupta5fa2daa2015-03-09 14:33:40 +05304 */
5
6/*
7 * Device tree for AXC003 CPU card: HS38x2 (Dual Core) with IDU intc
8 */
9
Vineet Gupta2e8cd932016-01-19 16:00:42 +053010/include/ "skeleton_hs_idu.dtsi"
11
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053012/ {
13 compatible = "snps,arc";
Eugeniy Paltsevf862b312017-06-26 14:47:25 +030014 #address-cells = <2>;
15 #size-cells = <2>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053016
17 cpu_card {
18 compatible = "simple-bus";
19 #address-cells = <1>;
20 #size-cells = <1>;
21
Eugeniy Paltsevf862b312017-06-26 14:47:25 +030022 ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053023
Eugeniy Paltsevf6a09ba2017-08-14 19:12:11 +030024 input_clk: input-clk {
Vineet Guptab3d6aba2016-01-01 18:48:40 +053025 #clock-cells = <0>;
26 compatible = "fixed-clock";
Eugeniy Paltsevf6a09ba2017-08-14 19:12:11 +030027 clock-frequency = <33333333>;
28 };
29
30 core_clk: core-clk@80 {
31 compatible = "snps,axs10x-arc-pll-clock";
32 reg = <0x80 0x10>, <0x100 0x10>;
33 #clock-cells = <0>;
34 clocks = <&input_clk>;
Eugeniy Paltsevfbd1cec2017-12-09 16:59:17 +030035
36 /*
37 * Set initial core pll output frequency to 100MHz.
38 * It will be applied at the core pll driver probing
39 * on early boot.
40 */
41 assigned-clocks = <&core_clk>;
42 assigned-clock-rates = <100000000>;
Vineet Guptab3d6aba2016-01-01 18:48:40 +053043 };
44
Vineet Gupta9ba76482016-01-28 09:57:12 +053045 core_intc: archs-intc@cpu {
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053046 compatible = "snps,archs-intc";
47 interrupt-controller;
48 #interrupt-cells = <1>;
49 };
50
51 idu_intc: idu-interrupt-controller {
52 compatible = "snps,archs-idu-intc";
53 interrupt-controller;
Vineet Gupta9ba76482016-01-28 09:57:12 +053054 interrupt-parent = <&core_intc>;
Yuriy Kolerovec69b2692017-02-02 03:13:32 +030055 #interrupt-cells = <1>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053056 };
57
58 /*
59 * this GPIO block ORs all interrupts on CPU card (creg,..)
60 * to uplink only 1 IRQ to ARC core intc
61 */
Alexey Brodkinef4c54c2019-01-24 15:17:03 +030062 dw-apb-gpio@2000 {
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053063 compatible = "snps,dw-apb-gpio";
64 reg = < 0x2000 0x80 >;
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 ictl_intc: gpio-controller@0 {
69 compatible = "snps,dw-apb-gpio-port";
70 gpio-controller;
71 #gpio-cells = <2>;
72 snps,nr-gpios = <30>;
73 reg = <0>;
74 interrupt-controller;
75 #interrupt-cells = <2>;
76 interrupt-parent = <&idu_intc>;
Yuriy Kolerovec69b2692017-02-02 03:13:32 +030077 interrupts = <1>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053078 };
79 };
80
Alexey Brodkinef4c54c2019-01-24 15:17:03 +030081 debug_uart: dw-apb-uart@5000 {
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053082 compatible = "snps,dw-apb-uart";
83 reg = <0x5000 0x100>;
84 clock-frequency = <33333000>;
85 interrupt-parent = <&ictl_intc>;
86 interrupts = <2 4>;
87 baud = <115200>;
88 reg-shift = <2>;
89 reg-io-width = <4>;
90 };
91
92 arcpct0: pct {
93 compatible = "snps,archs-pct";
94 #interrupt-cells = <1>;
Vineet Gupta9ba76482016-01-28 09:57:12 +053095 interrupt-parent = <&core_intc>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +053096 interrupts = <20>;
97 };
98 };
99
100 /*
Eugeniy Paltsev678c8112018-07-30 19:26:33 +0300101 * Mark DMA peripherals connected via IOC port as dma-coherent. We do
102 * it via overlay because peripherals defined in axs10x_mb.dtsi are
103 * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
104 * only AXS103 board has HW-coherent DMA peripherals)
105 * We don't need to mark pgu@17000 as dma-coherent because it uses
106 * external DMA buffer located outside of IOC aperture.
107 */
108 axs10x_mb {
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300109 ethernet@18000 {
Eugeniy Paltsev678c8112018-07-30 19:26:33 +0300110 dma-coherent;
111 };
112
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300113 ehci@40000 {
Eugeniy Paltsev678c8112018-07-30 19:26:33 +0300114 dma-coherent;
115 };
116
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300117 ohci@60000 {
Eugeniy Paltsev678c8112018-07-30 19:26:33 +0300118 dma-coherent;
119 };
120
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300121 mmc@15000 {
Eugeniy Paltsev678c8112018-07-30 19:26:33 +0300122 dma-coherent;
123 };
124 };
125
126 /*
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530127 * This INTC is actually connected to DW APB GPIO
128 * which acts as a wire between MB INTC and CPU INTC.
129 * GPIO INTC is configured in platform init code
130 * and here we mimic direct connection from MB INTC to
131 * CPU INTC, thus we set "interrupts = <0 1>" instead of
132 * "interrupts = <12>"
133 *
134 * This intc actually resides on MB, but we move it here to
135 * avoid duplicating the MB dtsi file given that IRQ from
136 * this intc to cpu intc are different for axs101 and axs103
137 */
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300138 mb_intc: dw-apb-ictl@e0012000 {
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530139 #interrupt-cells = <1>;
140 compatible = "snps,dw-apb-ictl";
Eugeniy Paltsevf862b312017-06-26 14:47:25 +0300141 reg = < 0x0 0xe0012000 0x0 0x200 >;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530142 interrupt-controller;
143 interrupt-parent = <&idu_intc>;
Yuriy Kolerovec69b2692017-02-02 03:13:32 +0300144 interrupts = <0>;
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530145 };
146
147 memory {
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530148 device_type = "memory";
Eugeniy Paltsev9ed68782017-08-15 21:13:54 +0300149 /* CONFIG_LINUX_RAM_BASE needs to match low mem start */
Eugeniy Paltsevf862b312017-06-26 14:47:25 +0300150 reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
151 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530152 };
Alexey Brodkincb2ad5e2016-04-27 16:59:50 +0300153
154 reserved-memory {
Eugeniy Paltsevf862b312017-06-26 14:47:25 +0300155 #address-cells = <2>;
156 #size-cells = <2>;
Alexey Brodkincb2ad5e2016-04-27 16:59:50 +0300157 ranges;
158 /*
Alexey Brodkinef4c54c2019-01-24 15:17:03 +0300159 * Move frame buffer out of IOC aperture (0x8z-0xaz).
Alexey Brodkincb2ad5e2016-04-27 16:59:50 +0300160 */
161 frame_buffer: frame_buffer@be000000 {
162 compatible = "shared-dma-pool";
Eugeniy Paltsevf862b312017-06-26 14:47:25 +0300163 reg = <0x0 0xbe000000 0x0 0x2000000>;
Alexey Brodkincb2ad5e2016-04-27 16:59:50 +0300164 no-map;
165 };
166 };
Vineet Gupta5fa2daa2015-03-09 14:33:40 +0530167};