xref: /freebsd/sys/contrib/device-tree/src/powerpc/fsl/p1020mbg-pc.dtsi (revision 643ac419fafba89f5adda0e0ea75b538727453fb)
1/*
2 * P1020 MBG-PC Device Tree Source stub (no addresses or top-level ranges)
3 *
4 * Copyright 2012 Freescale Semiconductor Inc.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *     * Redistributions of source code must retain the above copyright
9 *       notice, this list of conditions and the following disclaimer.
10 *     * Redistributions in binary form must reproduce the above copyright
11 *       notice, this list of conditions and the following disclaimer in the
12 *       documentation and/or other materials provided with the distribution.
13 *     * Neither the name of Freescale Semiconductor nor the
14 *       names of its contributors may be used to endorse or promote products
15 *       derived from this software without specific prior written permission.
16 *
17 *
18 * ALTERNATIVELY, this software may be distributed under the terms of the
19 * GNU General Public License ("GPL") as published by the Free Software
20 * Foundation, either version 2 of that License or (at your option) any
21 * later version.
22 *
23 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
24 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35&lbc {
36	nor@0,0 {
37		#address-cells = <1>;
38		#size-cells = <1>;
39		compatible = "cfi-flash";
40		reg = <0x0 0x0 0x4000000>;
41		bank-width = <2>;
42		device-width = <1>;
43
44		partition@0 {
45			/* 128KB for DTB Image */
46			reg = <0x0 0x00020000>;
47			label = "NOR DTB Image";
48		};
49
50		partition@20000 {
51			/* 3.875 MB for Linux Kernel Image */
52			reg = <0x00020000 0x003e0000>;
53			label = "NOR Linux Kernel Image";
54		};
55
56		partition@400000 {
57			/* 58MB for Root file System */
58			reg = <0x00400000 0x03a00000>;
59			label = "NOR Root File System";
60		};
61
62		partition@3e00000 {
63			/* This location must not be altered  */
64			/* 1M for Vitesse 7385 Switch firmware */
65			reg = <0x3e00000 0x00100000>;
66			label = "NOR Vitesse-7385 Firmware";
67			read-only;
68		};
69
70		partition@3f00000 {
71			/* This location must not be altered  */
72			/* 512KB for u-boot Bootloader Image */
73			/* 512KB for u-boot Environment Variables */
74			reg = <0x03f00000 0x00100000>;
75			label = "NOR U-Boot Image";
76			read-only;
77		};
78	};
79
80	L2switch@2,0 {
81		#address-cells = <1>;
82		#size-cells = <1>;
83		compatible = "vitesse-7385";
84		reg = <0x2 0x0 0x20000>;
85	};
86};
87
88&soc {
89	i2c@3000 {
90		rtc@68 {
91			compatible = "dallas,ds1339";
92			reg = <0x68>;
93		};
94	};
95
96	mdio@24000 {
97		phy0: ethernet-phy@0 {
98			interrupts = <3 1 0 0>;
99			reg = <0x0>;
100		};
101		phy1: ethernet-phy@1 {
102			interrupts = <2 1 0 0>;
103			reg = <0x1>;
104		};
105	};
106
107	mdio@25000 {
108		tbi1: tbi-phy@11 {
109			reg = <0x11>;
110			device_type = "tbi-phy";
111		};
112	};
113
114	mdio@26000 {
115		tbi2: tbi-phy@11 {
116			reg = <0x11>;
117			device_type = "tbi-phy";
118		};
119	};
120
121	enet0: ethernet@b0000 {
122		fixed-link = <1 1 1000 0 0>;
123		phy-connection-type = "rgmii-id";
124	};
125
126	enet1: ethernet@b1000 {
127		phy-handle = <&phy0>;
128		tbi-handle = <&tbi1>;
129		phy-connection-type = "sgmii";
130	};
131
132	enet2: ethernet@b2000 {
133		phy-handle = <&phy1>;
134		phy-connection-type = "rgmii-id";
135	};
136
137	usb@22000 {
138		phy_type = "ulpi";
139	};
140
141	/* USB2 is shared with localbus, so it must be disabled
142	   by default. We can't put 'status = "disabled";' here
143	   since U-Boot doesn't clear the status property when
144	   it enables USB2. OTOH, U-Boot does create a new node
145	   when there isn't any. So, just comment it out.
146	*/
147	usb@23000 {
148		status = "disabled";
149		phy_type = "ulpi";
150	};
151};
152