1/*
2 * XLP5XX Device Tree Source for RVP boards
3 */
4
5/dts-v1/;
6/ {
7	model = "netlogic,XLP-RVP";
8	compatible = "netlogic,xlp";
9	#address-cells = <2>;
10	#size-cells = <2>;
11
12	soc {
13		#address-cells = <2>;
14		#size-cells = <1>;
15		compatible = "simple-bus";
16		ranges = <0 0  0 0x18000000  0x04000000   // PCIe CFG
17			  1 0  0 0x16000000  0x02000000>; // GBU chipselects
18
19		serial0: serial@30000 {
20			device_type = "serial";
21			compatible = "ns16550";
22			reg = <0 0x112100 0xa00>;
23			reg-shift = <2>;
24			reg-io-width = <4>;
25			clock-frequency = <125000000>;
26			interrupt-parent = <&pic>;
27			interrupts = <17>;
28		};
29		pic: pic@110000 {
30			compatible = "netlogic,xlp-pic";
31			#address-cells = <0>;
32			#interrupt-cells = <1>;
33			reg = <0 0x110000 0x200>;
34			interrupt-controller;
35		};
36
37		nor_flash@1,0 {
38			compatible = "cfi-flash";
39			#address-cells = <1>;
40			#size-cells = <1>;
41			bank-width = <2>;
42			reg = <1 0 0x1000000>;
43
44			partition@0 {
45				label = "x-loader";
46				reg = <0x0 0x100000>; /* 1M */
47				read-only;
48			};
49
50			partition@100000 {
51				label = "u-boot";
52				reg = <0x100000 0x100000>; /* 1M */
53			};
54
55			partition@200000 {
56				label = "kernel";
57				reg = <0x200000 0x500000>; /* 5M */
58			};
59
60			partition@700000 {
61				label = "rootfs";
62				reg = <0x700000 0x800000>; /* 8M */
63			};
64
65			partition@f00000 {
66				label = "env";
67				reg = <0xf00000 0x100000>; /* 1M */
68				read-only;
69			};
70		};
71
72		gpio: xlp_gpio@114100 {
73			compatible = "netlogic,xlp532-gpio";
74			reg = <0 0x114100 0x1000>;
75			#gpio-cells = <2>;
76			gpio-controller;
77
78			#interrupt-cells = <2>;
79			interrupt-parent = <&pic>;
80			interrupts = <39>;
81			interrupt-controller;
82		};
83	};
84
85	chosen {
86		bootargs = "console=ttyS0,115200 rdinit=/sbin/init";
87	};
88};
89