1/*
2 * MPC8641 Silicon/SoC Device Tree Source (post include)
3 *
4 * Copyright 2016 Elettra-Sincrotrone Trieste S.C.p.A.
5 *
6 * This program is free software; you can redistribute  it and/or modify it
7 * under  the terms of  the GNU General  Public License as published by the
8 * Free Software Foundation;  either version 2 of the  License, or (at your
9 * option) any later version.
10 *
11 */
12
13&lbc {
14	#address-cells = <2>;
15	#size-cells = <1>;
16	compatible = "fsl,mpc8641-localbus", "simple-bus";
17	interrupts = <19 2 0 0>;
18};
19
20&soc {
21	#address-cells = <1>;
22	#size-cells = <1>;
23	device_type = "soc";
24	compatible = "fsl,mpc8641-soc", "simple-bus";
25	bus-frequency = <0>;
26
27	mcm-law@0 {
28		compatible = "fsl,mcm-law";
29		reg = <0x0 0x1000>;
30		fsl,num-laws = <10>;
31	};
32
33	mcm@1000 {
34		compatible = "fsl,mpc8641-mcm", "fsl,mcm";
35		reg = <0x1000 0x1000>;
36		interrupts = <17 2 0 0>;
37	};
38
39/include/ "pq3-i2c-0.dtsi"
40/include/ "pq3-i2c-1.dtsi"
41/include/ "pq3-duart-0.dtsi"
42	serial@4600 {
43		interrupts = <28 2 0 0>;
44	};
45/include/ "pq3-dma-0.dtsi"
46	dma@21300 {
47		compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma";
48	};
49	dma-channel@0 {
50		compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel";
51	};
52	dma-channel@80 {
53		compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel";
54	};
55	dma-channel@100 {
56		compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel";
57	};
58	dma-channel@180 {
59		compatible = "fsl,mpc8641-dma-channel", "fsl,eloplus-dma-channel";
60	};
61
62/include/ "pq3-etsec1-0.dtsi"
63	ethernet@24000 {
64		model = "TSEC";
65	};
66/include/ "pq3-etsec1-1.dtsi"
67	ethernet@25000 {
68		model = "TSEC";
69	};
70/include/ "pq3-etsec1-2.dtsi"
71	ethernet@26000 {
72		model = "TSEC";
73	};
74/include/ "pq3-etsec1-3.dtsi"
75	ethernet@27000 {
76		model = "TSEC";
77	};
78
79/include/ "qoriq-mpic.dtsi"
80	msi@41600 {
81		compatible = "fsl,mpc8641-msi", "fsl,mpic-msi";
82	};
83	msi@41800 {
84		compatible = "fsl,mpc8641-msi", "fsl,mpic-msi";
85	};
86	msi@41a00 {
87		compatible = "fsl,mpc8641-msi", "fsl,mpic-msi";
88	};
89
90	global-utilities@e0000 {
91		compatible = "fsl,mpc8641-guts";
92		reg = <0xe0000 0x1000>;
93		fsl,has-rstcr;
94	};
95};
96
97&pci0 {
98	compatible = "fsl,mpc8641-pcie";
99	device_type = "pci";
100	#interrupt-cells = <1>;
101	#size-cells = <2>;
102	#address-cells = <3>;
103	bus-range = <0x0 0xff>;
104	clock-frequency = <100000000>;
105	interrupts = <24 2 0 0>;
106
107	pcie@0 {
108		reg = <0 0 0 0 0>;
109		#interrupt-cells = <1>;
110		#size-cells = <2>;
111		#address-cells = <3>;
112		device_type = "pci";
113		interrupts = <24 2 0 0>;
114		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
115		interrupt-map = <
116			0x0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
117			0x0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
118			0x0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
119			0x0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
120			>;
121	};
122};
123
124&pci1 {
125	compatible = "fsl,mpc8641-pcie";
126	device_type = "pci";
127	#interrupt-cells = <1>;
128	#size-cells = <2>;
129	#address-cells = <3>;
130	bus-range = <0x0 0xff>;
131	clock-frequency = <100000000>;
132	interrupts = <25 2 0 0>;
133
134	pcie@0 {
135		reg = <0 0 0 0 0>;
136		#interrupt-cells = <1>;
137		#size-cells = <2>;
138		#address-cells = <3>;
139		device_type = "pci";
140		interrupts = <25 2 0 0>;
141		interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
142		interrupt-map = <
143			0x0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
144			0x0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
145			0x0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
146			0x0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
147			>;
148	};
149};
150