xref: /freebsd-src/sys/contrib/device-tree/src/powerpc/fsl/b4qds.dtsi (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * B4420DS Device Tree Source
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright 2012 - 2015 Freescale Semiconductor, Inc.
5*c66ec88fSEmmanuel Vadot *
6*c66ec88fSEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
7*c66ec88fSEmmanuel Vadot * modification, are permitted provided that the following conditions are met:
8*c66ec88fSEmmanuel Vadot *     * Redistributions of source code must retain the above copyright
9*c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer.
10*c66ec88fSEmmanuel Vadot *     * Redistributions in binary form must reproduce the above copyright
11*c66ec88fSEmmanuel Vadot *       notice, this list of conditions and the following disclaimer in the
12*c66ec88fSEmmanuel Vadot *       documentation and/or other materials provided with the distribution.
13*c66ec88fSEmmanuel Vadot *     * Neither the name of Freescale Semiconductor nor the
14*c66ec88fSEmmanuel Vadot *       names of its contributors may be used to endorse or promote products
15*c66ec88fSEmmanuel Vadot *       derived from this software without specific prior written permission.
16*c66ec88fSEmmanuel Vadot *
17*c66ec88fSEmmanuel Vadot *
18*c66ec88fSEmmanuel Vadot * ALTERNATIVELY, this software may be distributed under the terms of the
19*c66ec88fSEmmanuel Vadot * GNU General Public License ("GPL") as published by the Free Software
20*c66ec88fSEmmanuel Vadot * Foundation, either version 2 of that License or (at your option) any
21*c66ec88fSEmmanuel Vadot * later version.
22*c66ec88fSEmmanuel Vadot *
23*c66ec88fSEmmanuel Vadot * This software is provided by Freescale Semiconductor "as is" and any
24*c66ec88fSEmmanuel Vadot * express or implied warranties, including, but not limited to, the implied
25*c66ec88fSEmmanuel Vadot * warranties of merchantability and fitness for a particular purpose are
26*c66ec88fSEmmanuel Vadot * disclaimed. In no event shall Freescale Semiconductor be liable for any
27*c66ec88fSEmmanuel Vadot * direct, indirect, incidental, special, exemplary, or consequential damages
28*c66ec88fSEmmanuel Vadot * (including, but not limited to, procurement of substitute goods or services;
29*c66ec88fSEmmanuel Vadot * loss of use, data, or profits; or business interruption) however caused and
30*c66ec88fSEmmanuel Vadot * on any theory of liability, whether in contract, strict liability, or tort
31*c66ec88fSEmmanuel Vadot * (including negligence or otherwise) arising in any way out of the use of
32*c66ec88fSEmmanuel Vadot * this software, even if advised of the possibility of such damage.
33*c66ec88fSEmmanuel Vadot */
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot/ {
36*c66ec88fSEmmanuel Vadot	model = "fsl,B4QDS";
37*c66ec88fSEmmanuel Vadot	compatible = "fsl,B4QDS";
38*c66ec88fSEmmanuel Vadot	#address-cells = <2>;
39*c66ec88fSEmmanuel Vadot	#size-cells = <2>;
40*c66ec88fSEmmanuel Vadot	interrupt-parent = <&mpic>;
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot	aliases {
43*c66ec88fSEmmanuel Vadot		crypto = &crypto;
44*c66ec88fSEmmanuel Vadot		phy_sgmii_10 = &phy_sgmii_10;
45*c66ec88fSEmmanuel Vadot		phy_sgmii_11 = &phy_sgmii_11;
46*c66ec88fSEmmanuel Vadot		phy_sgmii_1c = &phy_sgmii_1c;
47*c66ec88fSEmmanuel Vadot		phy_sgmii_1d = &phy_sgmii_1d;
48*c66ec88fSEmmanuel Vadot	};
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadot	ifc: localbus@ffe124000 {
51*c66ec88fSEmmanuel Vadot		reg = <0xf 0xfe124000 0 0x2000>;
52*c66ec88fSEmmanuel Vadot		ranges = <0 0 0xf 0xe8000000 0x08000000
53*c66ec88fSEmmanuel Vadot			  2 0 0xf 0xff800000 0x00010000
54*c66ec88fSEmmanuel Vadot			  3 0 0xf 0xffdf0000 0x00008000>;
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel Vadot		nor@0,0 {
57*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
58*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
59*c66ec88fSEmmanuel Vadot			compatible = "cfi-flash";
60*c66ec88fSEmmanuel Vadot			reg = <0x0 0x0 0x8000000>;
61*c66ec88fSEmmanuel Vadot			bank-width = <2>;
62*c66ec88fSEmmanuel Vadot			device-width = <1>;
63*c66ec88fSEmmanuel Vadot		};
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot		nand@2,0 {
66*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
67*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
68*c66ec88fSEmmanuel Vadot			compatible = "fsl,ifc-nand";
69*c66ec88fSEmmanuel Vadot			reg = <0x2 0x0 0x10000>;
70*c66ec88fSEmmanuel Vadot
71*c66ec88fSEmmanuel Vadot			partition@0 {
72*c66ec88fSEmmanuel Vadot				/* This location must not be altered  */
73*c66ec88fSEmmanuel Vadot				/* 1MB for u-boot Bootloader Image */
74*c66ec88fSEmmanuel Vadot				reg = <0x0 0x00100000>;
75*c66ec88fSEmmanuel Vadot				label = "NAND U-Boot Image";
76*c66ec88fSEmmanuel Vadot				read-only;
77*c66ec88fSEmmanuel Vadot			};
78*c66ec88fSEmmanuel Vadot
79*c66ec88fSEmmanuel Vadot			partition@100000 {
80*c66ec88fSEmmanuel Vadot				/* 1MB for DTB Image */
81*c66ec88fSEmmanuel Vadot				reg = <0x00100000 0x00100000>;
82*c66ec88fSEmmanuel Vadot				label = "NAND DTB Image";
83*c66ec88fSEmmanuel Vadot			};
84*c66ec88fSEmmanuel Vadot
85*c66ec88fSEmmanuel Vadot			partition@200000 {
86*c66ec88fSEmmanuel Vadot				/* 10MB for Linux Kernel Image */
87*c66ec88fSEmmanuel Vadot				reg = <0x00200000 0x00A00000>;
88*c66ec88fSEmmanuel Vadot				label = "NAND Linux Kernel Image";
89*c66ec88fSEmmanuel Vadot			};
90*c66ec88fSEmmanuel Vadot
91*c66ec88fSEmmanuel Vadot			partition@c00000 {
92*c66ec88fSEmmanuel Vadot				/* 500MB for Root file System Image */
93*c66ec88fSEmmanuel Vadot				reg = <0x00c00000 0x1F400000>;
94*c66ec88fSEmmanuel Vadot				label = "NAND RFS Image";
95*c66ec88fSEmmanuel Vadot			};
96*c66ec88fSEmmanuel Vadot		};
97*c66ec88fSEmmanuel Vadot
98*c66ec88fSEmmanuel Vadot		board-control@3,0 {
99*c66ec88fSEmmanuel Vadot			compatible = "fsl,b4qds-fpga", "fsl,fpga-qixis";
100*c66ec88fSEmmanuel Vadot			reg = <3 0 0x300>;
101*c66ec88fSEmmanuel Vadot		};
102*c66ec88fSEmmanuel Vadot	};
103*c66ec88fSEmmanuel Vadot
104*c66ec88fSEmmanuel Vadot	memory {
105*c66ec88fSEmmanuel Vadot		device_type = "memory";
106*c66ec88fSEmmanuel Vadot	};
107*c66ec88fSEmmanuel Vadot
108*c66ec88fSEmmanuel Vadot	reserved-memory {
109*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
110*c66ec88fSEmmanuel Vadot		#size-cells = <2>;
111*c66ec88fSEmmanuel Vadot		ranges;
112*c66ec88fSEmmanuel Vadot
113*c66ec88fSEmmanuel Vadot		bman_fbpr: bman-fbpr {
114*c66ec88fSEmmanuel Vadot			size = <0 0x1000000>;
115*c66ec88fSEmmanuel Vadot			alignment = <0 0x1000000>;
116*c66ec88fSEmmanuel Vadot		};
117*c66ec88fSEmmanuel Vadot		qman_fqd: qman-fqd {
118*c66ec88fSEmmanuel Vadot			size = <0 0x400000>;
119*c66ec88fSEmmanuel Vadot			alignment = <0 0x400000>;
120*c66ec88fSEmmanuel Vadot		};
121*c66ec88fSEmmanuel Vadot		qman_pfdr: qman-pfdr {
122*c66ec88fSEmmanuel Vadot			size = <0 0x2000000>;
123*c66ec88fSEmmanuel Vadot			alignment = <0 0x2000000>;
124*c66ec88fSEmmanuel Vadot		};
125*c66ec88fSEmmanuel Vadot	};
126*c66ec88fSEmmanuel Vadot
127*c66ec88fSEmmanuel Vadot	dcsr: dcsr@f00000000 {
128*c66ec88fSEmmanuel Vadot		ranges = <0x00000000 0xf 0x00000000 0x01052000>;
129*c66ec88fSEmmanuel Vadot	};
130*c66ec88fSEmmanuel Vadot
131*c66ec88fSEmmanuel Vadot	bportals: bman-portals@ff4000000 {
132*c66ec88fSEmmanuel Vadot		ranges = <0x0 0xf 0xf4000000 0x2000000>;
133*c66ec88fSEmmanuel Vadot	};
134*c66ec88fSEmmanuel Vadot
135*c66ec88fSEmmanuel Vadot	qportals: qman-portals@ff6000000 {
136*c66ec88fSEmmanuel Vadot		ranges = <0x0 0xf 0xf6000000 0x2000000>;
137*c66ec88fSEmmanuel Vadot	};
138*c66ec88fSEmmanuel Vadot
139*c66ec88fSEmmanuel Vadot	soc: soc@ffe000000 {
140*c66ec88fSEmmanuel Vadot		ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
141*c66ec88fSEmmanuel Vadot		reg = <0xf 0xfe000000 0 0x00001000>;
142*c66ec88fSEmmanuel Vadot		spi@110000 {
143*c66ec88fSEmmanuel Vadot			flash@0 {
144*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
145*c66ec88fSEmmanuel Vadot				#size-cells = <1>;
146*c66ec88fSEmmanuel Vadot				compatible = "sst,sst25wf040", "jedec,spi-nor";
147*c66ec88fSEmmanuel Vadot				reg = <0>;
148*c66ec88fSEmmanuel Vadot				spi-max-frequency = <40000000>; /* input clock */
149*c66ec88fSEmmanuel Vadot			};
150*c66ec88fSEmmanuel Vadot		};
151*c66ec88fSEmmanuel Vadot
152*c66ec88fSEmmanuel Vadot		sdhc@114000 {
153*c66ec88fSEmmanuel Vadot			/*Disabled as there is no sdhc connector on B4420QDS board*/
154*c66ec88fSEmmanuel Vadot			status = "disabled";
155*c66ec88fSEmmanuel Vadot		};
156*c66ec88fSEmmanuel Vadot
157*c66ec88fSEmmanuel Vadot		i2c@118000 {
158*c66ec88fSEmmanuel Vadot			mux@77 {
159*c66ec88fSEmmanuel Vadot				compatible = "nxp,pca9547";
160*c66ec88fSEmmanuel Vadot				reg = <0x77>;
161*c66ec88fSEmmanuel Vadot				#address-cells = <1>;
162*c66ec88fSEmmanuel Vadot				#size-cells = <0>;
163*c66ec88fSEmmanuel Vadot
164*c66ec88fSEmmanuel Vadot				i2c@0 {
165*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
166*c66ec88fSEmmanuel Vadot					#size-cells = <0>;
167*c66ec88fSEmmanuel Vadot					reg = <0>;
168*c66ec88fSEmmanuel Vadot
169*c66ec88fSEmmanuel Vadot					eeprom@50 {
170*c66ec88fSEmmanuel Vadot						compatible = "atmel,24c64";
171*c66ec88fSEmmanuel Vadot						reg = <0x50>;
172*c66ec88fSEmmanuel Vadot					};
173*c66ec88fSEmmanuel Vadot					eeprom@51 {
174*c66ec88fSEmmanuel Vadot						compatible = "atmel,24c256";
175*c66ec88fSEmmanuel Vadot						reg = <0x51>;
176*c66ec88fSEmmanuel Vadot					};
177*c66ec88fSEmmanuel Vadot					eeprom@53 {
178*c66ec88fSEmmanuel Vadot						compatible = "atmel,24c256";
179*c66ec88fSEmmanuel Vadot						reg = <0x53>;
180*c66ec88fSEmmanuel Vadot					};
181*c66ec88fSEmmanuel Vadot					eeprom@57 {
182*c66ec88fSEmmanuel Vadot						compatible = "atmel,24c256";
183*c66ec88fSEmmanuel Vadot						reg = <0x57>;
184*c66ec88fSEmmanuel Vadot					};
185*c66ec88fSEmmanuel Vadot					rtc@68 {
186*c66ec88fSEmmanuel Vadot						compatible = "dallas,ds3232";
187*c66ec88fSEmmanuel Vadot						reg = <0x68>;
188*c66ec88fSEmmanuel Vadot					};
189*c66ec88fSEmmanuel Vadot				};
190*c66ec88fSEmmanuel Vadot
191*c66ec88fSEmmanuel Vadot				i2c@2 {
192*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
193*c66ec88fSEmmanuel Vadot					#size-cells = <0>;
194*c66ec88fSEmmanuel Vadot					reg = <0x2>;
195*c66ec88fSEmmanuel Vadot
196*c66ec88fSEmmanuel Vadot					ina220@40 {
197*c66ec88fSEmmanuel Vadot						compatible = "ti,ina220";
198*c66ec88fSEmmanuel Vadot						reg = <0x40>;
199*c66ec88fSEmmanuel Vadot						shunt-resistor = <1000>;
200*c66ec88fSEmmanuel Vadot					};
201*c66ec88fSEmmanuel Vadot				};
202*c66ec88fSEmmanuel Vadot
203*c66ec88fSEmmanuel Vadot				i2c@3 {
204*c66ec88fSEmmanuel Vadot					#address-cells = <1>;
205*c66ec88fSEmmanuel Vadot					#size-cells = <0>;
206*c66ec88fSEmmanuel Vadot					reg = <0x3>;
207*c66ec88fSEmmanuel Vadot
208*c66ec88fSEmmanuel Vadot					adt7461@4c {
209*c66ec88fSEmmanuel Vadot						compatible = "adi,adt7461";
210*c66ec88fSEmmanuel Vadot						reg = <0x4c>;
211*c66ec88fSEmmanuel Vadot					};
212*c66ec88fSEmmanuel Vadot				};
213*c66ec88fSEmmanuel Vadot			};
214*c66ec88fSEmmanuel Vadot		};
215*c66ec88fSEmmanuel Vadot
216*c66ec88fSEmmanuel Vadot		usb@210000 {
217*c66ec88fSEmmanuel Vadot			dr_mode = "host";
218*c66ec88fSEmmanuel Vadot			phy_type = "ulpi";
219*c66ec88fSEmmanuel Vadot		};
220*c66ec88fSEmmanuel Vadot
221*c66ec88fSEmmanuel Vadot		fman@400000 {
222*c66ec88fSEmmanuel Vadot			ethernet@e0000 {
223*c66ec88fSEmmanuel Vadot				phy-handle = <&phy_sgmii_10>;
224*c66ec88fSEmmanuel Vadot				phy-connection-type = "sgmii";
225*c66ec88fSEmmanuel Vadot			};
226*c66ec88fSEmmanuel Vadot
227*c66ec88fSEmmanuel Vadot			ethernet@e2000 {
228*c66ec88fSEmmanuel Vadot				phy-handle = <&phy_sgmii_11>;
229*c66ec88fSEmmanuel Vadot				phy-connection-type = "sgmii";
230*c66ec88fSEmmanuel Vadot			};
231*c66ec88fSEmmanuel Vadot
232*c66ec88fSEmmanuel Vadot			ethernet@e4000 {
233*c66ec88fSEmmanuel Vadot				phy-handle = <&phy_sgmii_1c>;
234*c66ec88fSEmmanuel Vadot				phy-connection-type = "sgmii";
235*c66ec88fSEmmanuel Vadot			};
236*c66ec88fSEmmanuel Vadot
237*c66ec88fSEmmanuel Vadot			ethernet@e6000 {
238*c66ec88fSEmmanuel Vadot				phy-handle = <&phy_sgmii_1d>;
239*c66ec88fSEmmanuel Vadot				phy-connection-type = "sgmii";
240*c66ec88fSEmmanuel Vadot			};
241*c66ec88fSEmmanuel Vadot
242*c66ec88fSEmmanuel Vadot			mdio@fc000 {
243*c66ec88fSEmmanuel Vadot				phy_sgmii_10: ethernet-phy@10 {
244*c66ec88fSEmmanuel Vadot					reg = <0x10>;
245*c66ec88fSEmmanuel Vadot				};
246*c66ec88fSEmmanuel Vadot
247*c66ec88fSEmmanuel Vadot				phy_sgmii_11: ethernet-phy@11 {
248*c66ec88fSEmmanuel Vadot					reg = <0x11>;
249*c66ec88fSEmmanuel Vadot				};
250*c66ec88fSEmmanuel Vadot
251*c66ec88fSEmmanuel Vadot				phy_sgmii_1c: ethernet-phy@1c {
252*c66ec88fSEmmanuel Vadot					reg = <0x1c>;
253*c66ec88fSEmmanuel Vadot					status = "disabled";
254*c66ec88fSEmmanuel Vadot				};
255*c66ec88fSEmmanuel Vadot
256*c66ec88fSEmmanuel Vadot				phy_sgmii_1d: ethernet-phy@1d {
257*c66ec88fSEmmanuel Vadot					reg = <0x1d>;
258*c66ec88fSEmmanuel Vadot					status = "disabled";
259*c66ec88fSEmmanuel Vadot				};
260*c66ec88fSEmmanuel Vadot			};
261*c66ec88fSEmmanuel Vadot		};
262*c66ec88fSEmmanuel Vadot	};
263*c66ec88fSEmmanuel Vadot
264*c66ec88fSEmmanuel Vadot	pci0: pcie@ffe200000 {
265*c66ec88fSEmmanuel Vadot		reg = <0xf 0xfe200000 0 0x10000>;
266*c66ec88fSEmmanuel Vadot		ranges = <0x02000000 0 0xe0000000 0xc 0x00000000 0x0 0x20000000
267*c66ec88fSEmmanuel Vadot			  0x01000000 0 0x00000000 0xf 0xf8000000 0x0 0x00010000>;
268*c66ec88fSEmmanuel Vadot		pcie@0 {
269*c66ec88fSEmmanuel Vadot			ranges = <0x02000000 0 0xe0000000
270*c66ec88fSEmmanuel Vadot				  0x02000000 0 0xe0000000
271*c66ec88fSEmmanuel Vadot				  0 0x20000000
272*c66ec88fSEmmanuel Vadot
273*c66ec88fSEmmanuel Vadot				  0x01000000 0 0x00000000
274*c66ec88fSEmmanuel Vadot				  0x01000000 0 0x00000000
275*c66ec88fSEmmanuel Vadot				  0 0x00010000>;
276*c66ec88fSEmmanuel Vadot		};
277*c66ec88fSEmmanuel Vadot	};
278*c66ec88fSEmmanuel Vadot};
279*c66ec88fSEmmanuel Vadot
280*c66ec88fSEmmanuel Vadot/include/ "b4si-post.dtsi"
281