1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * T4240RDB Device Tree Source
3dc37374bSHongtao Jia *
484e0f1c1SIgal Liberman * Copyright 2014 - 2015 Freescale Semiconductor Inc.
5dc37374bSHongtao Jia *
6dc37374bSHongtao Jia * Redistribution and use in source and binary forms, with or without
7dc37374bSHongtao Jia * modification, are permitted provided that the following conditions are met:
8dc37374bSHongtao Jia *     * Redistributions of source code must retain the above copyright
9dc37374bSHongtao Jia *	 notice, this list of conditions and the following disclaimer.
10dc37374bSHongtao Jia *     * Redistributions in binary form must reproduce the above copyright
11dc37374bSHongtao Jia *	 notice, this list of conditions and the following disclaimer in the
12dc37374bSHongtao Jia *	 documentation and/or other materials provided with the distribution.
13dc37374bSHongtao Jia *     * Neither the name of Freescale Semiconductor nor the
14dc37374bSHongtao Jia *	 names of its contributors may be used to endorse or promote products
15dc37374bSHongtao Jia *	 derived from this software without specific prior written permission.
16dc37374bSHongtao Jia *
17dc37374bSHongtao Jia *
18dc37374bSHongtao Jia * ALTERNATIVELY, this software may be distributed under the terms of the
19dc37374bSHongtao Jia * GNU General Public License ("GPL") as published by the Free Software
20dc37374bSHongtao Jia * Foundation, either version 2 of that License or (at your option) any
21dc37374bSHongtao Jia * later version.
22dc37374bSHongtao Jia *
23dc37374bSHongtao Jia * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
24dc37374bSHongtao Jia * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25dc37374bSHongtao Jia * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26dc37374bSHongtao Jia * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27dc37374bSHongtao Jia * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28dc37374bSHongtao Jia * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29dc37374bSHongtao Jia * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30dc37374bSHongtao Jia * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31dc37374bSHongtao Jia * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32dc37374bSHongtao Jia * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33dc37374bSHongtao Jia */
34dc37374bSHongtao Jia
35dc37374bSHongtao Jia/include/ "t4240si-pre.dtsi"
36dc37374bSHongtao Jia
37dc37374bSHongtao Jia/ {
38dc37374bSHongtao Jia	model = "fsl,T4240RDB";
39dc37374bSHongtao Jia	compatible = "fsl,T4240RDB";
40dc37374bSHongtao Jia	#address-cells = <2>;
41dc37374bSHongtao Jia	#size-cells = <2>;
42dc37374bSHongtao Jia	interrupt-parent = <&mpic>;
43dc37374bSHongtao Jia
4484e0f1c1SIgal Liberman	aliases {
4584e0f1c1SIgal Liberman		sgmii_phy21 = &sgmiiphy21;
4684e0f1c1SIgal Liberman		sgmii_phy22 = &sgmiiphy22;
4784e0f1c1SIgal Liberman		sgmii_phy23 = &sgmiiphy23;
4884e0f1c1SIgal Liberman		sgmii_phy24 = &sgmiiphy24;
4984e0f1c1SIgal Liberman		sgmii_phy41 = &sgmiiphy41;
5084e0f1c1SIgal Liberman		sgmii_phy42 = &sgmiiphy42;
5184e0f1c1SIgal Liberman		sgmii_phy43 = &sgmiiphy43;
5284e0f1c1SIgal Liberman		sgmii_phy44 = &sgmiiphy44;
5384e0f1c1SIgal Liberman	};
5484e0f1c1SIgal Liberman
55dc37374bSHongtao Jia	ifc: localbus@ffe124000 {
56dc37374bSHongtao Jia		reg = <0xf 0xfe124000 0 0x2000>;
57dc37374bSHongtao Jia		ranges = <0 0 0xf 0xe8000000 0x08000000
58dc37374bSHongtao Jia			  2 0 0xf 0xff800000 0x00010000
59dc37374bSHongtao Jia			  3 0 0xf 0xffdf0000 0x00008000>;
60dc37374bSHongtao Jia
61dc37374bSHongtao Jia		nor@0,0 {
62dc37374bSHongtao Jia			#address-cells = <1>;
63dc37374bSHongtao Jia			#size-cells = <1>;
64dc37374bSHongtao Jia			compatible = "cfi-flash";
65dc37374bSHongtao Jia			reg = <0x0 0x0 0x8000000>;
66dc37374bSHongtao Jia
67dc37374bSHongtao Jia			bank-width = <2>;
68dc37374bSHongtao Jia			device-width = <1>;
69dc37374bSHongtao Jia		};
70dc37374bSHongtao Jia
71dc37374bSHongtao Jia		nand@2,0 {
72dc37374bSHongtao Jia			#address-cells = <1>;
73dc37374bSHongtao Jia			#size-cells = <1>;
74dc37374bSHongtao Jia			compatible = "fsl,ifc-nand";
75dc37374bSHongtao Jia			reg = <0x2 0x0 0x10000>;
76dc37374bSHongtao Jia		};
77dc37374bSHongtao Jia	};
78dc37374bSHongtao Jia
79dc37374bSHongtao Jia	memory {
80dc37374bSHongtao Jia		device_type = "memory";
81dc37374bSHongtao Jia	};
82dc37374bSHongtao Jia
83dc37374bSHongtao Jia	reserved-memory {
84dc37374bSHongtao Jia		#address-cells = <2>;
85dc37374bSHongtao Jia		#size-cells = <2>;
86dc37374bSHongtao Jia		ranges;
87dc37374bSHongtao Jia
88dc37374bSHongtao Jia		bman_fbpr: bman-fbpr {
89dc37374bSHongtao Jia			size = <0 0x1000000>;
90dc37374bSHongtao Jia			alignment = <0 0x1000000>;
91dc37374bSHongtao Jia		};
92dc37374bSHongtao Jia		qman_fqd: qman-fqd {
93dc37374bSHongtao Jia			size = <0 0x400000>;
94dc37374bSHongtao Jia			alignment = <0 0x400000>;
95dc37374bSHongtao Jia		};
96dc37374bSHongtao Jia		qman_pfdr: qman-pfdr {
97dc37374bSHongtao Jia			size = <0 0x2000000>;
98dc37374bSHongtao Jia			alignment = <0 0x2000000>;
99dc37374bSHongtao Jia		};
100dc37374bSHongtao Jia	};
101dc37374bSHongtao Jia
102dc37374bSHongtao Jia	dcsr: dcsr@f00000000 {
103dc37374bSHongtao Jia		ranges = <0x00000000 0xf 0x00000000 0x01072000>;
104dc37374bSHongtao Jia	};
105dc37374bSHongtao Jia
106dc37374bSHongtao Jia	bportals: bman-portals@ff4000000 {
107dc37374bSHongtao Jia		ranges = <0x0 0xf 0xf4000000 0x2000000>;
108dc37374bSHongtao Jia	};
109dc37374bSHongtao Jia
110dc37374bSHongtao Jia	qportals: qman-portals@ff6000000 {
111dc37374bSHongtao Jia		ranges = <0x0 0xf 0xf6000000 0x2000000>;
112dc37374bSHongtao Jia	};
113dc37374bSHongtao Jia
114dc37374bSHongtao Jia	soc: soc@ffe000000 {
115dc37374bSHongtao Jia		ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
116dc37374bSHongtao Jia		reg = <0xf 0xfe000000 0 0x00001000>;
117dc37374bSHongtao Jia		spi@110000 {
118dc37374bSHongtao Jia			flash@0 {
119dc37374bSHongtao Jia				#address-cells = <1>;
120dc37374bSHongtao Jia				#size-cells = <1>;
121fba4e9f9SHou Zhiqiang				compatible = "sst,sst25wf040", "jedec,spi-nor";
122dc37374bSHongtao Jia				reg = <0>;
123dc37374bSHongtao Jia				spi-max-frequency = <40000000>; /* input clock */
124dc37374bSHongtao Jia			};
125dc37374bSHongtao Jia		};
126dc37374bSHongtao Jia
127dc37374bSHongtao Jia		i2c@118000 {
1288ba1baabSFlorian Larysch			hwmon@2f {
1298ba1baabSFlorian Larysch				compatible = "winbond,w83793";
1308ba1baabSFlorian Larysch				reg = <0x2f>;
1318ba1baabSFlorian Larysch			};
132dc37374bSHongtao Jia			eeprom@52 {
133226b9391SJavier Martinez Canillas				compatible = "atmel,24c256";
134dc37374bSHongtao Jia				reg = <0x52>;
135dc37374bSHongtao Jia			};
136dc37374bSHongtao Jia			eeprom@54 {
137226b9391SJavier Martinez Canillas				compatible = "atmel,24c256";
138dc37374bSHongtao Jia				reg = <0x54>;
139dc37374bSHongtao Jia			};
140dc37374bSHongtao Jia			eeprom@56 {
141226b9391SJavier Martinez Canillas				compatible = "atmel,24c256";
142dc37374bSHongtao Jia				reg = <0x56>;
143dc37374bSHongtao Jia			};
144dc37374bSHongtao Jia			rtc@68 {
145dc37374bSHongtao Jia				compatible = "dallas,ds1374";
146dc37374bSHongtao Jia				reg = <0x68>;
147dc37374bSHongtao Jia			};
148dc37374bSHongtao Jia		};
149dc37374bSHongtao Jia
150dc37374bSHongtao Jia		sdhc@114000 {
151dc37374bSHongtao Jia			voltage-ranges = <1800 1800 3300 3300>;
152dc37374bSHongtao Jia		};
15384e0f1c1SIgal Liberman
15484e0f1c1SIgal Liberman		fman@400000 {
15584e0f1c1SIgal Liberman			ethernet@e0000 {
15684e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy21>;
15784e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
15884e0f1c1SIgal Liberman			};
15984e0f1c1SIgal Liberman
16084e0f1c1SIgal Liberman			ethernet@e2000 {
16184e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy22>;
16284e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
16384e0f1c1SIgal Liberman			};
16484e0f1c1SIgal Liberman
16584e0f1c1SIgal Liberman			ethernet@e4000 {
16684e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy23>;
16784e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
16884e0f1c1SIgal Liberman			};
16984e0f1c1SIgal Liberman
17084e0f1c1SIgal Liberman			ethernet@e6000 {
17184e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy24>;
17284e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
17384e0f1c1SIgal Liberman			};
17484e0f1c1SIgal Liberman
17584e0f1c1SIgal Liberman			ethernet@e8000 {
17684e0f1c1SIgal Liberman				status = "disabled";
17784e0f1c1SIgal Liberman			};
17884e0f1c1SIgal Liberman
17984e0f1c1SIgal Liberman			ethernet@ea000 {
18084e0f1c1SIgal Liberman				status = "disabled";
18184e0f1c1SIgal Liberman			};
18284e0f1c1SIgal Liberman
18384e0f1c1SIgal Liberman			ethernet@f0000 {
18484e0f1c1SIgal Liberman				phy-handle = <&xfiphy1>;
18584e0f1c1SIgal Liberman				phy-connection-type = "xgmii";
18684e0f1c1SIgal Liberman			};
18784e0f1c1SIgal Liberman
18884e0f1c1SIgal Liberman			ethernet@f2000 {
18984e0f1c1SIgal Liberman				phy-handle = <&xfiphy2>;
19084e0f1c1SIgal Liberman				phy-connection-type = "xgmii";
19184e0f1c1SIgal Liberman			};
19284e0f1c1SIgal Liberman		};
19384e0f1c1SIgal Liberman
19484e0f1c1SIgal Liberman		fman@500000 {
19584e0f1c1SIgal Liberman			ethernet@e0000 {
19684e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy41>;
19784e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
19884e0f1c1SIgal Liberman			};
19984e0f1c1SIgal Liberman
20084e0f1c1SIgal Liberman			ethernet@e2000 {
20184e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy42>;
20284e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
20384e0f1c1SIgal Liberman			};
20484e0f1c1SIgal Liberman
20584e0f1c1SIgal Liberman			ethernet@e4000 {
20684e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy43>;
20784e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
20884e0f1c1SIgal Liberman			};
20984e0f1c1SIgal Liberman
21084e0f1c1SIgal Liberman			ethernet@e6000 {
21184e0f1c1SIgal Liberman				phy-handle = <&sgmiiphy44>;
21284e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
21384e0f1c1SIgal Liberman			};
21484e0f1c1SIgal Liberman
21584e0f1c1SIgal Liberman			ethernet@e8000 {
21684e0f1c1SIgal Liberman				status = "disabled";
21784e0f1c1SIgal Liberman			};
21884e0f1c1SIgal Liberman
21984e0f1c1SIgal Liberman			ethernet@ea000 {
22084e0f1c1SIgal Liberman				status = "disabled";
22184e0f1c1SIgal Liberman			};
22284e0f1c1SIgal Liberman
22384e0f1c1SIgal Liberman			ethernet@f0000 {
22484e0f1c1SIgal Liberman				phy-handle = <&xfiphy3>;
22584e0f1c1SIgal Liberman				phy-connection-type = "xgmii";
22684e0f1c1SIgal Liberman			};
22784e0f1c1SIgal Liberman
22884e0f1c1SIgal Liberman			ethernet@f2000 {
22984e0f1c1SIgal Liberman				phy-handle = <&xfiphy4>;
23084e0f1c1SIgal Liberman				phy-connection-type = "xgmii";
23184e0f1c1SIgal Liberman			};
23284e0f1c1SIgal Liberman
23384e0f1c1SIgal Liberman			mdio@fc000 {
23484e0f1c1SIgal Liberman				sgmiiphy21: ethernet-phy@0 {
23584e0f1c1SIgal Liberman					reg = <0x0>;
23684e0f1c1SIgal Liberman				};
23784e0f1c1SIgal Liberman
23884e0f1c1SIgal Liberman				sgmiiphy22: ethernet-phy@1 {
23984e0f1c1SIgal Liberman					reg = <0x1>;
24084e0f1c1SIgal Liberman				};
24184e0f1c1SIgal Liberman
24284e0f1c1SIgal Liberman				sgmiiphy23: ethernet-phy@2 {
24384e0f1c1SIgal Liberman					reg = <0x2>;
24484e0f1c1SIgal Liberman				};
24584e0f1c1SIgal Liberman
24684e0f1c1SIgal Liberman				sgmiiphy24: ethernet-phy@3 {
24784e0f1c1SIgal Liberman					reg = <0x3>;
24884e0f1c1SIgal Liberman				};
24984e0f1c1SIgal Liberman
25084e0f1c1SIgal Liberman				sgmiiphy41: ethernet-phy@4 {
25184e0f1c1SIgal Liberman					reg = <0x4>;
25284e0f1c1SIgal Liberman				};
25384e0f1c1SIgal Liberman
25484e0f1c1SIgal Liberman				sgmiiphy42: ethernet-phy@5 {
25584e0f1c1SIgal Liberman					reg = <0x5>;
25684e0f1c1SIgal Liberman				};
25784e0f1c1SIgal Liberman
25884e0f1c1SIgal Liberman				sgmiiphy43: ethernet-phy@6 {
25984e0f1c1SIgal Liberman					reg = <0x6>;
26084e0f1c1SIgal Liberman				};
26184e0f1c1SIgal Liberman
26284e0f1c1SIgal Liberman				sgmiiphy44: ethernet-phy@7 {
26384e0f1c1SIgal Liberman					reg = <0x7>;
26484e0f1c1SIgal Liberman				};
26584e0f1c1SIgal Liberman			};
26684e0f1c1SIgal Liberman
26784e0f1c1SIgal Liberman			mdio@fd000 {
26884e0f1c1SIgal Liberman				xfiphy1: ethernet-phy@10 {
26939e560a9SCamelia Groza					compatible = "ethernet-phy-id13e5.1002";
27084e0f1c1SIgal Liberman					reg = <0x10>;
27184e0f1c1SIgal Liberman				};
27284e0f1c1SIgal Liberman
27384e0f1c1SIgal Liberman				xfiphy2: ethernet-phy@11 {
27439e560a9SCamelia Groza					compatible = "ethernet-phy-id13e5.1002";
27584e0f1c1SIgal Liberman					reg = <0x11>;
27684e0f1c1SIgal Liberman				};
27784e0f1c1SIgal Liberman
27884e0f1c1SIgal Liberman				xfiphy3: ethernet-phy@13 {
27939e560a9SCamelia Groza					compatible = "ethernet-phy-id13e5.1002";
28084e0f1c1SIgal Liberman					reg = <0x13>;
28184e0f1c1SIgal Liberman				};
28284e0f1c1SIgal Liberman
28384e0f1c1SIgal Liberman				xfiphy4: ethernet-phy@12 {
28439e560a9SCamelia Groza					compatible = "ethernet-phy-id13e5.1002";
28584e0f1c1SIgal Liberman					reg = <0x12>;
28684e0f1c1SIgal Liberman				};
28784e0f1c1SIgal Liberman			};
28884e0f1c1SIgal Liberman		};
289dc37374bSHongtao Jia	};
290dc37374bSHongtao Jia
291dc37374bSHongtao Jia	pci0: pcie@ffe240000 {
292dc37374bSHongtao Jia		reg = <0xf 0xfe240000 0 0x10000>;
293dc37374bSHongtao Jia		ranges = <0x02000000 0 0xe0000000 0xc 0x00000000 0x0 0x20000000
294dc37374bSHongtao Jia			  0x01000000 0 0x00000000 0xf 0xf8000000 0x0 0x00010000>;
295dc37374bSHongtao Jia		pcie@0 {
296dc37374bSHongtao Jia			ranges = <0x02000000 0 0xe0000000
297dc37374bSHongtao Jia				  0x02000000 0 0xe0000000
298dc37374bSHongtao Jia				  0 0x20000000
299dc37374bSHongtao Jia
300dc37374bSHongtao Jia				  0x01000000 0 0x00000000
301dc37374bSHongtao Jia				  0x01000000 0 0x00000000
302dc37374bSHongtao Jia				  0 0x00010000>;
303dc37374bSHongtao Jia		};
304dc37374bSHongtao Jia	};
305dc37374bSHongtao Jia
306dc37374bSHongtao Jia	pci1: pcie@ffe250000 {
307dc37374bSHongtao Jia		reg = <0xf 0xfe250000 0 0x10000>;
308dc37374bSHongtao Jia		ranges = <0x02000000 0x0 0xe0000000 0xc 0x20000000 0x0 0x20000000
309dc37374bSHongtao Jia			  0x01000000 0x0 0x00000000 0xf 0xf8010000 0x0 0x00010000>;
310dc37374bSHongtao Jia		pcie@0 {
311dc37374bSHongtao Jia			ranges = <0x02000000 0 0xe0000000
312dc37374bSHongtao Jia				  0x02000000 0 0xe0000000
313dc37374bSHongtao Jia				  0 0x20000000
314dc37374bSHongtao Jia
315dc37374bSHongtao Jia				  0x01000000 0 0x00000000
316dc37374bSHongtao Jia				  0x01000000 0 0x00000000
317dc37374bSHongtao Jia				  0 0x00010000>;
318dc37374bSHongtao Jia		};
319dc37374bSHongtao Jia	};
320dc37374bSHongtao Jia
321dc37374bSHongtao Jia	pci2: pcie@ffe260000 {
322dc37374bSHongtao Jia		reg = <0xf 0xfe260000 0 0x1000>;
323dc37374bSHongtao Jia		ranges = <0x02000000 0 0xe0000000 0xc 0x40000000 0 0x20000000
324dc37374bSHongtao Jia			  0x01000000 0 0x00000000 0xf 0xf8020000 0 0x00010000>;
325dc37374bSHongtao Jia		pcie@0 {
326dc37374bSHongtao Jia			ranges = <0x02000000 0 0xe0000000
327dc37374bSHongtao Jia				  0x02000000 0 0xe0000000
328dc37374bSHongtao Jia				  0 0x20000000
329dc37374bSHongtao Jia
330dc37374bSHongtao Jia				  0x01000000 0 0x00000000
331dc37374bSHongtao Jia				  0x01000000 0 0x00000000
332dc37374bSHongtao Jia				  0 0x00010000>;
333dc37374bSHongtao Jia		};
334dc37374bSHongtao Jia	};
335dc37374bSHongtao Jia
336dc37374bSHongtao Jia	pci3: pcie@ffe270000 {
337dc37374bSHongtao Jia		reg = <0xf 0xfe270000 0 0x10000>;
338dc37374bSHongtao Jia		ranges = <0x02000000 0 0xe0000000 0xc 0x60000000 0 0x20000000
339dc37374bSHongtao Jia			  0x01000000 0 0x00000000 0xf 0xf8030000 0 0x00010000>;
340dc37374bSHongtao Jia		pcie@0 {
341dc37374bSHongtao Jia			ranges = <0x02000000 0 0xe0000000
342dc37374bSHongtao Jia				  0x02000000 0 0xe0000000
343dc37374bSHongtao Jia				  0 0x20000000
344dc37374bSHongtao Jia
345dc37374bSHongtao Jia				  0x01000000 0 0x00000000
346dc37374bSHongtao Jia				  0x01000000 0 0x00000000
347dc37374bSHongtao Jia				  0 0x00010000>;
348dc37374bSHongtao Jia		};
349dc37374bSHongtao Jia	};
350dc37374bSHongtao Jia
351dc37374bSHongtao Jia	rio: rapidio@ffe0c0000 {
352dc37374bSHongtao Jia		reg = <0xf 0xfe0c0000 0 0x11000>;
353dc37374bSHongtao Jia
354dc37374bSHongtao Jia		port1 {
355dc37374bSHongtao Jia			ranges = <0 0 0xc 0x20000000 0 0x10000000>;
356dc37374bSHongtao Jia		};
357dc37374bSHongtao Jia		port2 {
358dc37374bSHongtao Jia			ranges = <0 0 0xc 0x30000000 0 0x10000000>;
359dc37374bSHongtao Jia		};
360dc37374bSHongtao Jia	};
361dc37374bSHongtao Jia};
362dc37374bSHongtao Jia
363dc37374bSHongtao Jia/include/ "t4240si-post.dtsi"
364