xref: /freebsd/sys/contrib/device-tree/src/powerpc/fsl/p1020mbg-pc.dtsi (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * P1020 MBG-PC Device Tree Source stub (no addresses or top-level ranges)
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Copyright 2012 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 THIS
32*c66ec88fSEmmanuel Vadot * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*c66ec88fSEmmanuel Vadot */
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot&lbc {
36*c66ec88fSEmmanuel Vadot	nor@0,0 {
37*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
38*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
39*c66ec88fSEmmanuel Vadot		compatible = "cfi-flash";
40*c66ec88fSEmmanuel Vadot		reg = <0x0 0x0 0x4000000>;
41*c66ec88fSEmmanuel Vadot		bank-width = <2>;
42*c66ec88fSEmmanuel Vadot		device-width = <1>;
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot		partition@0 {
45*c66ec88fSEmmanuel Vadot			/* 128KB for DTB Image */
46*c66ec88fSEmmanuel Vadot			reg = <0x0 0x00020000>;
47*c66ec88fSEmmanuel Vadot			label = "NOR DTB Image";
48*c66ec88fSEmmanuel Vadot		};
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel Vadot		partition@20000 {
51*c66ec88fSEmmanuel Vadot			/* 3.875 MB for Linux Kernel Image */
52*c66ec88fSEmmanuel Vadot			reg = <0x00020000 0x003e0000>;
53*c66ec88fSEmmanuel Vadot			label = "NOR Linux Kernel Image";
54*c66ec88fSEmmanuel Vadot		};
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel Vadot		partition@400000 {
57*c66ec88fSEmmanuel Vadot			/* 58MB for Root file System */
58*c66ec88fSEmmanuel Vadot			reg = <0x00400000 0x03a00000>;
59*c66ec88fSEmmanuel Vadot			label = "NOR Root File System";
60*c66ec88fSEmmanuel Vadot		};
61*c66ec88fSEmmanuel Vadot
62*c66ec88fSEmmanuel Vadot		partition@3e00000 {
63*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
64*c66ec88fSEmmanuel Vadot			/* 1M for Vitesse 7385 Switch firmware */
65*c66ec88fSEmmanuel Vadot			reg = <0x3e00000 0x00100000>;
66*c66ec88fSEmmanuel Vadot			label = "NOR Vitesse-7385 Firmware";
67*c66ec88fSEmmanuel Vadot			read-only;
68*c66ec88fSEmmanuel Vadot		};
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadot		partition@3f00000 {
71*c66ec88fSEmmanuel Vadot			/* This location must not be altered  */
72*c66ec88fSEmmanuel Vadot			/* 512KB for u-boot Bootloader Image */
73*c66ec88fSEmmanuel Vadot			/* 512KB for u-boot Environment Variables */
74*c66ec88fSEmmanuel Vadot			reg = <0x03f00000 0x00100000>;
75*c66ec88fSEmmanuel Vadot			label = "NOR U-Boot Image";
76*c66ec88fSEmmanuel Vadot			read-only;
77*c66ec88fSEmmanuel Vadot		};
78*c66ec88fSEmmanuel Vadot	};
79*c66ec88fSEmmanuel Vadot
80*c66ec88fSEmmanuel Vadot	L2switch@2,0 {
81*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
82*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
83*c66ec88fSEmmanuel Vadot		compatible = "vitesse-7385";
84*c66ec88fSEmmanuel Vadot		reg = <0x2 0x0 0x20000>;
85*c66ec88fSEmmanuel Vadot	};
86*c66ec88fSEmmanuel Vadot};
87*c66ec88fSEmmanuel Vadot
88*c66ec88fSEmmanuel Vadot&soc {
89*c66ec88fSEmmanuel Vadot	i2c@3000 {
90*c66ec88fSEmmanuel Vadot		rtc@68 {
91*c66ec88fSEmmanuel Vadot			compatible = "dallas,ds1339";
92*c66ec88fSEmmanuel Vadot			reg = <0x68>;
93*c66ec88fSEmmanuel Vadot		};
94*c66ec88fSEmmanuel Vadot	};
95*c66ec88fSEmmanuel Vadot
96*c66ec88fSEmmanuel Vadot	mdio@24000 {
97*c66ec88fSEmmanuel Vadot		phy0: ethernet-phy@0 {
98*c66ec88fSEmmanuel Vadot			interrupts = <3 1 0 0>;
99*c66ec88fSEmmanuel Vadot			reg = <0x0>;
100*c66ec88fSEmmanuel Vadot		};
101*c66ec88fSEmmanuel Vadot		phy1: ethernet-phy@1 {
102*c66ec88fSEmmanuel Vadot			interrupts = <2 1 0 0>;
103*c66ec88fSEmmanuel Vadot			reg = <0x1>;
104*c66ec88fSEmmanuel Vadot		};
105*c66ec88fSEmmanuel Vadot	};
106*c66ec88fSEmmanuel Vadot
107*c66ec88fSEmmanuel Vadot	mdio@25000 {
108*c66ec88fSEmmanuel Vadot		tbi1: tbi-phy@11 {
109*c66ec88fSEmmanuel Vadot			reg = <0x11>;
110*c66ec88fSEmmanuel Vadot			device_type = "tbi-phy";
111*c66ec88fSEmmanuel Vadot		};
112*c66ec88fSEmmanuel Vadot	};
113*c66ec88fSEmmanuel Vadot
114*c66ec88fSEmmanuel Vadot	mdio@26000 {
115*c66ec88fSEmmanuel Vadot		tbi2: tbi-phy@11 {
116*c66ec88fSEmmanuel Vadot			reg = <0x11>;
117*c66ec88fSEmmanuel Vadot			device_type = "tbi-phy";
118*c66ec88fSEmmanuel Vadot		};
119*c66ec88fSEmmanuel Vadot	};
120*c66ec88fSEmmanuel Vadot
121*c66ec88fSEmmanuel Vadot	enet0: ethernet@b0000 {
122*c66ec88fSEmmanuel Vadot		fixed-link = <1 1 1000 0 0>;
123*c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
124*c66ec88fSEmmanuel Vadot	};
125*c66ec88fSEmmanuel Vadot
126*c66ec88fSEmmanuel Vadot	enet1: ethernet@b1000 {
127*c66ec88fSEmmanuel Vadot		phy-handle = <&phy0>;
128*c66ec88fSEmmanuel Vadot		tbi-handle = <&tbi1>;
129*c66ec88fSEmmanuel Vadot		phy-connection-type = "sgmii";
130*c66ec88fSEmmanuel Vadot	};
131*c66ec88fSEmmanuel Vadot
132*c66ec88fSEmmanuel Vadot	enet2: ethernet@b2000 {
133*c66ec88fSEmmanuel Vadot		phy-handle = <&phy1>;
134*c66ec88fSEmmanuel Vadot		phy-connection-type = "rgmii-id";
135*c66ec88fSEmmanuel Vadot	};
136*c66ec88fSEmmanuel Vadot
137*c66ec88fSEmmanuel Vadot	usb@22000 {
138*c66ec88fSEmmanuel Vadot		phy_type = "ulpi";
139*c66ec88fSEmmanuel Vadot	};
140*c66ec88fSEmmanuel Vadot
141*c66ec88fSEmmanuel Vadot	/* USB2 is shared with localbus, so it must be disabled
142*c66ec88fSEmmanuel Vadot	   by default. We can't put 'status = "disabled";' here
143*c66ec88fSEmmanuel Vadot	   since U-Boot doesn't clear the status property when
144*c66ec88fSEmmanuel Vadot	   it enables USB2. OTOH, U-Boot does create a new node
145*c66ec88fSEmmanuel Vadot	   when there isn't any. So, just comment it out.
146*c66ec88fSEmmanuel Vadot	*/
147*c66ec88fSEmmanuel Vadot	usb@23000 {
148*c66ec88fSEmmanuel Vadot		status = "disabled";
149*c66ec88fSEmmanuel Vadot		phy_type = "ulpi";
150*c66ec88fSEmmanuel Vadot	};
151*c66ec88fSEmmanuel Vadot};
152