1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * B4420DS Device Tree Source
3dc37374bSHongtao Jia *
484e0f1c1SIgal Liberman * Copyright 2012 - 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
32dc37374bSHongtao Jia * this software, even if advised of the possibility of such damage.
33dc37374bSHongtao Jia */
34dc37374bSHongtao Jia
35dc37374bSHongtao Jia/ {
36dc37374bSHongtao Jia	model = "fsl,B4QDS";
37dc37374bSHongtao Jia	compatible = "fsl,B4QDS";
38dc37374bSHongtao Jia	#address-cells = <2>;
39dc37374bSHongtao Jia	#size-cells = <2>;
40dc37374bSHongtao Jia	interrupt-parent = <&mpic>;
41dc37374bSHongtao Jia
4284e0f1c1SIgal Liberman	aliases {
4384e0f1c1SIgal Liberman		phy_sgmii_10 = &phy_sgmii_10;
4484e0f1c1SIgal Liberman		phy_sgmii_11 = &phy_sgmii_11;
4584e0f1c1SIgal Liberman		phy_sgmii_1c = &phy_sgmii_1c;
4684e0f1c1SIgal Liberman		phy_sgmii_1d = &phy_sgmii_1d;
4784e0f1c1SIgal Liberman	};
4884e0f1c1SIgal Liberman
49dc37374bSHongtao Jia	ifc: localbus@ffe124000 {
50dc37374bSHongtao Jia		reg = <0xf 0xfe124000 0 0x2000>;
51dc37374bSHongtao Jia		ranges = <0 0 0xf 0xe8000000 0x08000000
52dc37374bSHongtao Jia			  2 0 0xf 0xff800000 0x00010000
53dc37374bSHongtao Jia			  3 0 0xf 0xffdf0000 0x00008000>;
54dc37374bSHongtao Jia
55dc37374bSHongtao Jia		nor@0,0 {
56dc37374bSHongtao Jia			#address-cells = <1>;
57dc37374bSHongtao Jia			#size-cells = <1>;
58dc37374bSHongtao Jia			compatible = "cfi-flash";
59dc37374bSHongtao Jia			reg = <0x0 0x0 0x8000000>;
60dc37374bSHongtao Jia			bank-width = <2>;
61dc37374bSHongtao Jia			device-width = <1>;
62dc37374bSHongtao Jia		};
63dc37374bSHongtao Jia
64dc37374bSHongtao Jia		nand@2,0 {
65dc37374bSHongtao Jia			#address-cells = <1>;
66dc37374bSHongtao Jia			#size-cells = <1>;
67dc37374bSHongtao Jia			compatible = "fsl,ifc-nand";
68dc37374bSHongtao Jia			reg = <0x2 0x0 0x10000>;
69dc37374bSHongtao Jia
70dc37374bSHongtao Jia			partition@0 {
71dc37374bSHongtao Jia				/* This location must not be altered  */
72dc37374bSHongtao Jia				/* 1MB for u-boot Bootloader Image */
73dc37374bSHongtao Jia				reg = <0x0 0x00100000>;
74dc37374bSHongtao Jia				label = "NAND U-Boot Image";
75dc37374bSHongtao Jia				read-only;
76dc37374bSHongtao Jia			};
77dc37374bSHongtao Jia
78dc37374bSHongtao Jia			partition@100000 {
79dc37374bSHongtao Jia				/* 1MB for DTB Image */
80dc37374bSHongtao Jia				reg = <0x00100000 0x00100000>;
81dc37374bSHongtao Jia				label = "NAND DTB Image";
82dc37374bSHongtao Jia			};
83dc37374bSHongtao Jia
84dc37374bSHongtao Jia			partition@200000 {
85dc37374bSHongtao Jia				/* 10MB for Linux Kernel Image */
86dc37374bSHongtao Jia				reg = <0x00200000 0x00A00000>;
87dc37374bSHongtao Jia				label = "NAND Linux Kernel Image";
88dc37374bSHongtao Jia			};
89dc37374bSHongtao Jia
90dc37374bSHongtao Jia			partition@c00000 {
91dc37374bSHongtao Jia				/* 500MB for Root file System Image */
92dc37374bSHongtao Jia				reg = <0x00c00000 0x1F400000>;
93dc37374bSHongtao Jia				label = "NAND RFS Image";
94dc37374bSHongtao Jia			};
95dc37374bSHongtao Jia		};
96dc37374bSHongtao Jia
97dc37374bSHongtao Jia		board-control@3,0 {
98dc37374bSHongtao Jia			compatible = "fsl,b4qds-fpga", "fsl,fpga-qixis";
99dc37374bSHongtao Jia			reg = <3 0 0x300>;
100dc37374bSHongtao Jia		};
101dc37374bSHongtao Jia	};
102dc37374bSHongtao Jia
103dc37374bSHongtao Jia	memory {
104dc37374bSHongtao Jia		device_type = "memory";
105dc37374bSHongtao Jia	};
106dc37374bSHongtao Jia
107dc37374bSHongtao Jia	reserved-memory {
108dc37374bSHongtao Jia		#address-cells = <2>;
109dc37374bSHongtao Jia		#size-cells = <2>;
110dc37374bSHongtao Jia		ranges;
111dc37374bSHongtao Jia
112dc37374bSHongtao Jia		bman_fbpr: bman-fbpr {
113dc37374bSHongtao Jia			size = <0 0x1000000>;
114dc37374bSHongtao Jia			alignment = <0 0x1000000>;
115dc37374bSHongtao Jia		};
116dc37374bSHongtao Jia		qman_fqd: qman-fqd {
117dc37374bSHongtao Jia			size = <0 0x400000>;
118dc37374bSHongtao Jia			alignment = <0 0x400000>;
119dc37374bSHongtao Jia		};
120dc37374bSHongtao Jia		qman_pfdr: qman-pfdr {
121dc37374bSHongtao Jia			size = <0 0x2000000>;
122dc37374bSHongtao Jia			alignment = <0 0x2000000>;
123dc37374bSHongtao Jia		};
124dc37374bSHongtao Jia	};
125dc37374bSHongtao Jia
126dc37374bSHongtao Jia	dcsr: dcsr@f00000000 {
127dc37374bSHongtao Jia		ranges = <0x00000000 0xf 0x00000000 0x01052000>;
128dc37374bSHongtao Jia	};
129dc37374bSHongtao Jia
130dc37374bSHongtao Jia	bportals: bman-portals@ff4000000 {
131dc37374bSHongtao Jia		ranges = <0x0 0xf 0xf4000000 0x2000000>;
132dc37374bSHongtao Jia	};
133dc37374bSHongtao Jia
134dc37374bSHongtao Jia	qportals: qman-portals@ff6000000 {
135dc37374bSHongtao Jia		ranges = <0x0 0xf 0xf6000000 0x2000000>;
136dc37374bSHongtao Jia	};
137dc37374bSHongtao Jia
138dc37374bSHongtao Jia	soc: soc@ffe000000 {
139dc37374bSHongtao Jia		ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
140dc37374bSHongtao Jia		reg = <0xf 0xfe000000 0 0x00001000>;
141dc37374bSHongtao Jia		spi@110000 {
142dc37374bSHongtao Jia			flash@0 {
143dc37374bSHongtao Jia				#address-cells = <1>;
144dc37374bSHongtao Jia				#size-cells = <1>;
145fba4e9f9SHou Zhiqiang				compatible = "sst,sst25wf040", "jedec,spi-nor";
146dc37374bSHongtao Jia				reg = <0>;
147dc37374bSHongtao Jia				spi-max-frequency = <40000000>; /* input clock */
148dc37374bSHongtao Jia			};
149dc37374bSHongtao Jia		};
150dc37374bSHongtao Jia
151dc37374bSHongtao Jia		sdhc@114000 {
152dc37374bSHongtao Jia			/*Disabled as there is no sdhc connector on B4420QDS board*/
153dc37374bSHongtao Jia			status = "disabled";
154dc37374bSHongtao Jia		};
155dc37374bSHongtao Jia
156dc37374bSHongtao Jia		i2c@118000 {
157dc37374bSHongtao Jia			mux@77 {
158dc37374bSHongtao Jia				compatible = "nxp,pca9547";
159dc37374bSHongtao Jia				reg = <0x77>;
160dc37374bSHongtao Jia				#address-cells = <1>;
161dc37374bSHongtao Jia				#size-cells = <0>;
162dc37374bSHongtao Jia
163dc37374bSHongtao Jia				i2c@0 {
164dc37374bSHongtao Jia					#address-cells = <1>;
165dc37374bSHongtao Jia					#size-cells = <0>;
166dc37374bSHongtao Jia					reg = <0>;
167dc37374bSHongtao Jia
168dc37374bSHongtao Jia					eeprom@50 {
169dc37374bSHongtao Jia						compatible = "at24,24c64";
170dc37374bSHongtao Jia						reg = <0x50>;
171dc37374bSHongtao Jia					};
172dc37374bSHongtao Jia					eeprom@51 {
173dc37374bSHongtao Jia						compatible = "at24,24c256";
174dc37374bSHongtao Jia						reg = <0x51>;
175dc37374bSHongtao Jia					};
176dc37374bSHongtao Jia					eeprom@53 {
177dc37374bSHongtao Jia						compatible = "at24,24c256";
178dc37374bSHongtao Jia						reg = <0x53>;
179dc37374bSHongtao Jia					};
180dc37374bSHongtao Jia					eeprom@57 {
181dc37374bSHongtao Jia						compatible = "at24,24c256";
182dc37374bSHongtao Jia						reg = <0x57>;
183dc37374bSHongtao Jia					};
184dc37374bSHongtao Jia					rtc@68 {
185dc37374bSHongtao Jia						compatible = "dallas,ds3232";
186dc37374bSHongtao Jia						reg = <0x68>;
187dc37374bSHongtao Jia					};
188dc37374bSHongtao Jia				};
189dc37374bSHongtao Jia
190dc37374bSHongtao Jia				i2c@2 {
191dc37374bSHongtao Jia					#address-cells = <1>;
192dc37374bSHongtao Jia					#size-cells = <0>;
193dc37374bSHongtao Jia					reg = <0x2>;
194dc37374bSHongtao Jia
195dc37374bSHongtao Jia					ina220@40 {
196dc37374bSHongtao Jia						compatible = "ti,ina220";
197dc37374bSHongtao Jia						reg = <0x40>;
198dc37374bSHongtao Jia						shunt-resistor = <1000>;
199dc37374bSHongtao Jia					};
200dc37374bSHongtao Jia				};
201dc37374bSHongtao Jia
202dc37374bSHongtao Jia				i2c@3 {
203dc37374bSHongtao Jia					#address-cells = <1>;
204dc37374bSHongtao Jia					#size-cells = <0>;
205dc37374bSHongtao Jia					reg = <0x3>;
206dc37374bSHongtao Jia
207dc37374bSHongtao Jia					adt7461@4c {
208dc37374bSHongtao Jia						compatible = "adi,adt7461";
209dc37374bSHongtao Jia						reg = <0x4c>;
210dc37374bSHongtao Jia					};
211dc37374bSHongtao Jia				};
212dc37374bSHongtao Jia			};
213dc37374bSHongtao Jia		};
214dc37374bSHongtao Jia
215dc37374bSHongtao Jia		usb@210000 {
216dc37374bSHongtao Jia			dr_mode = "host";
217dc37374bSHongtao Jia			phy_type = "ulpi";
218dc37374bSHongtao Jia		};
219dc37374bSHongtao Jia
22084e0f1c1SIgal Liberman		fman@400000 {
22184e0f1c1SIgal Liberman			ethernet@e0000 {
22284e0f1c1SIgal Liberman				phy-handle = <&phy_sgmii_10>;
22384e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
22484e0f1c1SIgal Liberman			};
22584e0f1c1SIgal Liberman
22684e0f1c1SIgal Liberman			ethernet@e2000 {
22784e0f1c1SIgal Liberman				phy-handle = <&phy_sgmii_11>;
22884e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
22984e0f1c1SIgal Liberman			};
23084e0f1c1SIgal Liberman
23184e0f1c1SIgal Liberman			ethernet@e4000 {
23284e0f1c1SIgal Liberman				phy-handle = <&phy_sgmii_1c>;
23384e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
23484e0f1c1SIgal Liberman			};
23584e0f1c1SIgal Liberman
23684e0f1c1SIgal Liberman			ethernet@e6000 {
23784e0f1c1SIgal Liberman				phy-handle = <&phy_sgmii_1d>;
23884e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
23984e0f1c1SIgal Liberman			};
24084e0f1c1SIgal Liberman
24184e0f1c1SIgal Liberman			mdio@fc000 {
24284e0f1c1SIgal Liberman				phy_sgmii_10: ethernet-phy@10 {
24384e0f1c1SIgal Liberman					reg = <0x10>;
24484e0f1c1SIgal Liberman				};
24584e0f1c1SIgal Liberman
24684e0f1c1SIgal Liberman				phy_sgmii_11: ethernet-phy@11 {
24784e0f1c1SIgal Liberman					reg = <0x11>;
24884e0f1c1SIgal Liberman				};
24984e0f1c1SIgal Liberman
25084e0f1c1SIgal Liberman				phy_sgmii_1c: ethernet-phy@1c {
25184e0f1c1SIgal Liberman					reg = <0x1c>;
25284e0f1c1SIgal Liberman					status = "disabled";
25384e0f1c1SIgal Liberman				};
25484e0f1c1SIgal Liberman
25584e0f1c1SIgal Liberman				phy_sgmii_1d: ethernet-phy@1d {
25684e0f1c1SIgal Liberman					reg = <0x1d>;
25784e0f1c1SIgal Liberman					status = "disabled";
25884e0f1c1SIgal Liberman				};
25984e0f1c1SIgal Liberman			};
26084e0f1c1SIgal Liberman		};
261dc37374bSHongtao Jia	};
262dc37374bSHongtao Jia
263dc37374bSHongtao Jia	pci0: pcie@ffe200000 {
264dc37374bSHongtao Jia		reg = <0xf 0xfe200000 0 0x10000>;
265dc37374bSHongtao Jia		ranges = <0x02000000 0 0xe0000000 0xc 0x00000000 0x0 0x20000000
266dc37374bSHongtao Jia			  0x01000000 0 0x00000000 0xf 0xf8000000 0x0 0x00010000>;
267dc37374bSHongtao Jia		pcie@0 {
268dc37374bSHongtao Jia			ranges = <0x02000000 0 0xe0000000
269dc37374bSHongtao Jia				  0x02000000 0 0xe0000000
270dc37374bSHongtao Jia				  0 0x20000000
271dc37374bSHongtao Jia
272dc37374bSHongtao Jia				  0x01000000 0 0x00000000
273dc37374bSHongtao Jia				  0x01000000 0 0x00000000
274dc37374bSHongtao Jia				  0 0x00010000>;
275dc37374bSHongtao Jia		};
276dc37374bSHongtao Jia	};
277dc37374bSHongtao Jia};
278dc37374bSHongtao Jia
279dc37374bSHongtao Jia/include/ "b4si-post.dtsi"
280