1/*
2 * Copyright(c) 2015 EZchip Technologies.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11 * more details.
12 *
13 * The full GNU General Public License is included in this distribution in
14 * the file called "COPYING".
15 */
16
17/dts-v1/;
18
19/ {
20	compatible = "ezchip,arc-nps";
21	#address-cells = <1>;
22	#size-cells = <1>;
23	interrupt-parent = <&intc>;
24	present-cpus = "0-1,16-17";
25	possible-cpus = "0-4095";
26
27	aliases {
28		ethernet0 = &gmac0;
29	};
30
31	chosen {
32		bootargs = "earlycon=uart8250,mmio32be,0xf7209000,115200n8 console=ttyS0,115200n8";
33	};
34
35	memory {
36		device_type = "memory";
37		reg = <0x80000000 0x20000000>;	/* 512M */
38	};
39
40	clocks {
41		sysclk: sysclk {
42			compatible = "fixed-clock";
43			#clock-cells = <0>;
44			clock-frequency = <83333333>;
45		};
46	};
47
48	soc {
49		compatible = "simple-bus";
50		#address-cells = <1>;
51		#size-cells = <1>;
52
53		/* child and parent address space 1:1 mapped */
54		ranges;
55
56		intc: interrupt-controller {
57			compatible = "ezchip,nps400-ic";
58			interrupt-controller;
59			#interrupt-cells = <1>;
60		};
61
62		timer0: timer_clkevt {
63			compatible = "snps,arc-timer";
64			interrupts = <3>;
65			clocks = <&sysclk>;
66		};
67
68		timer1: timer_clksrc {
69			compatible = "ezchip,nps400-timer";
70			clocks = <&sysclk>;
71			clock-names="sysclk";
72		};
73
74		uart@f7209000 {
75			compatible = "snps,dw-apb-uart";
76			device_type = "serial";
77			reg = <0xf7209000 0x100>;
78			interrupts = <6>;
79			clocks = <&sysclk>;
80			clock-names="baudclk";
81			baud = <115200>;
82			reg-shift = <2>;
83			reg-io-width = <4>;
84			native-endian;
85		};
86
87		gmac0: ethernet@f7470000 {
88			compatible = "ezchip,nps-mgt-enet";
89			reg = <0xf7470000 0x1940>;
90			interrupts = <7>;
91			/* Filled in by U-Boot */
92			mac-address = [ 00 C0 00 F0 04 03 ];
93		};
94	};
95};
96