Skip to content

Commit 43f1078

Browse files
committed
ARC: [xplorer] Add device tree files for ARC Xplorer System
The ARC Xplorer System consists of a mainboard with peripherals, on which several daughter cards can be placed. This adds the device tree (include) files for: - the ARC Xplorer mainboard - the ARC Xplorer 770D CPU tile - the system that consists of the two above Signed-off-by: Mischa Jonker <[email protected]>
1 parent 1ee603b commit 43f1078

File tree

3 files changed

+240
-0
lines changed

3 files changed

+240
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
3+
*
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.
7+
*/
8+
9+
/*
10+
* Device tree for ARC Xplorer 770D/EM6/AS221 CPU tile
11+
*/
12+
13+
/ {
14+
compatible = "snps,arc";
15+
clock-frequency = <750000000>; /* 750 MHZ */
16+
#address-cells = <1>;
17+
#size-cells = <1>;
18+
19+
cpu_tile {
20+
compatible = "simple-bus";
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
24+
ranges = <0x00000000 0xf0000000 0x10000000>;
25+
26+
cpu_intc: arc700-intc@cpu {
27+
compatible = "snps,arc700-intc";
28+
interrupt-controller;
29+
#interrupt-cells = <1>;
30+
};
31+
32+
/* this GPIO block serves as an interrupt controller and
33+
uses multiple interrupts on the ARC700 */
34+
gpio_intc: dw-apb-gpio-intc@0x3000 {
35+
compatible = "snps,dw-apb-gpio-intc";
36+
interrupt-controller;
37+
reg = < 0x3000 0x80 >;
38+
#interrupt-cells = <1>;
39+
interrupt-parent = <&cpu_intc>;
40+
interrupts = < 5 6 7 8 9 >;
41+
};
42+
43+
/* this GPIO block serves as an interrupt controller and
44+
ORs all interrupts, so that only one interrupt on ARC700
45+
is used */
46+
ictl_intc: dw-apb-gpio-intc@0x2000 {
47+
compatible = "snps,dw-apb-gpio-intc";
48+
interrupt-controller;
49+
reg = < 0x2000 0x80 >;
50+
#interrupt-cells = <1>;
51+
interrupt-parent = <&cpu_intc>;
52+
interrupts = <15>;
53+
};
54+
55+
debug_uart: dw-apb-uart@0x5000 {
56+
compatible = "snps,dw-apb-uart";
57+
reg = <0x5000 0x100>;
58+
clock-frequency = <33333000>;
59+
interrupt-parent = <&ictl_intc>;
60+
interrupts = <19>;
61+
baud = <115200>;
62+
reg-shift = <2>;
63+
reg-io-width = <4>;
64+
};
65+
66+
arcpmu0: pmu {
67+
compatible = "snps,arc_pmu";
68+
};
69+
};
70+
71+
memory {
72+
#address-cells = <1>;
73+
#size-cells = <1>;
74+
ranges = <0x00000000 0x80000000 0x40000000>;
75+
device_type = "memory";
76+
reg = <0x00000000 0x20000000>; /* 512MiB */
77+
};
78+
};
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
/*
2+
* Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
3+
*
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.
7+
*/
8+
9+
/ {
10+
fpga {
11+
compatible = "simple-bus";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
#interrupt-cells = <1>;
15+
ranges = <0x00000000 0xe0000000 0x10000000>;
16+
interrupt-parent = <&fpga_intc>;
17+
18+
clocks {
19+
i2cclk: i2cclk {
20+
compatible = "fixed-clock";
21+
clock-frequency = <50000000>;
22+
#clock-cells = <0>;
23+
};
24+
25+
apbclk: apbclk {
26+
compatible = "fixed-clock";
27+
clock-frequency = <50000000>;
28+
#clock-cells = <0>;
29+
};
30+
31+
mmcclk: mmcclk {
32+
compatible = "fixed-clock";
33+
clock-frequency = <50000000>;
34+
#clock-cells = <0>;
35+
};
36+
};
37+
38+
fpga_intc: dw-apb-ictl@0x12000 {
39+
#interrupt-cells = <1>;
40+
compatible = "snps,dw-apb-ictl";
41+
reg = < 0x12000 0x200 >;
42+
interrupt-controller;
43+
interrupt-parent = <&gpio_intc>;
44+
/* gpio[12] is input for interrupts from FPGA */
45+
/* first pin is #10, so interrupt idx 2 */
46+
interrupts = < 12 >;
47+
};
48+
49+
ethernet@0x18000 {
50+
#interrupt-cells = <1>;
51+
compatible = "snps,dwmac";
52+
reg = < 0x18000 0x2000 >;
53+
interrupts = < 4 >;
54+
interrupt-names = "macirq";
55+
phy-mode = "rgmii";
56+
snps,phy-addr = < 1 >;
57+
snps,pbl = < 32 >;
58+
clocks = <&apbclk>;
59+
clock-names = "stmmaceth";
60+
};
61+
62+
ehci@0x40000 {
63+
compatible = "snps,h20apb-ehci";
64+
reg = < 0x40000 0x100 >;
65+
interrupts = < 8 >;
66+
};
67+
68+
/* ohci@0x60000 {
69+
compatible = "snps,h20apb-ohci";
70+
reg = < 0x60000 0x100 >;
71+
interrupts = < 8 >;
72+
}; */
73+
74+
mmc@0x15000 {
75+
compatible = "snps,dw-mshc";
76+
reg = < 0x15000 0x400 >;
77+
num-slots = < 1 >;
78+
fifo-depth = < 16 >;
79+
card-detect-delay = < 200 >;
80+
clocks = <&apbclk>, <&mmcclk>;
81+
clock-names = "biu", "ciu";
82+
interrupts = < 7 >;
83+
bus-width = < 4 >;
84+
};
85+
86+
uart@0x20000 {
87+
compatible = "snps,dw-apb-uart";
88+
reg = <0x20000 0x100>;
89+
clock-frequency = <33333333>;
90+
interrupts = <17>;
91+
baud = <115200>;
92+
reg-shift = <2>;
93+
reg-io-width = <4>;
94+
};
95+
96+
uart@0x21000 {
97+
compatible = "snps,dw-apb-uart";
98+
reg = <0x21000 0x100>;
99+
clock-frequency = <33333333>;
100+
interrupts = <18>;
101+
baud = <115200>;
102+
reg-shift = <2>;
103+
reg-io-width = <4>;
104+
};
105+
106+
uart@0x22000 {
107+
compatible = "snps,dw-apb-uart";
108+
reg = <0x22000 0x100>;
109+
clock-frequency = <33333333>;
110+
interrupts = <19>;
111+
baud = <115200>;
112+
reg-shift = <2>;
113+
reg-io-width = <4>;
114+
};
115+
116+
i2c@0x1d000 {
117+
compatible = "snps,designware-i2c";
118+
reg = <0x1d000 0x100>;
119+
clock-frequency = <400000>;
120+
clocks = <&i2cclk>;
121+
interrupts = <14>;
122+
};
123+
124+
i2c@0x1e000 {
125+
compatible = "snps,designware-i2c";
126+
reg = <0x1e000 0x100>;
127+
clock-frequency = <400000>;
128+
clocks = <&i2cclk>;
129+
interrupts = <15>;
130+
};
131+
132+
i2c@0x1f000 {
133+
compatible = "snps,designware-i2c";
134+
reg = <0x1f000 0x100>;
135+
clock-frequency = <400000>;
136+
clocks = <&i2cclk>;
137+
interrupts = <16>;
138+
};
139+
140+
};
141+
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
3+
*
4+
* ARC Xplorer System 770D/EM6/AS221
5+
*
6+
* This program is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License version 2 as
8+
* published by the Free Software Foundation.
9+
*/
10+
/dts-v1/;
11+
12+
/include/ "xplorer_cputile_770.dtsi"
13+
/include/ "xplorer_fpga.dtsi"
14+
15+
/ {
16+
compatible = "snps,xplorer770";
17+
18+
chosen {
19+
bootargs = "console=ttyS3,115200n8";
20+
};
21+
};

0 commit comments

Comments
 (0)