1dc37374bSHongtao Jia/*
2dc37374bSHongtao Jia * T1040RDB 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/ "t104xsi-pre.dtsi"
36dc37374bSHongtao Jia/include/ "t104xrdb.dtsi"
37dc37374bSHongtao Jia
38dc37374bSHongtao Jia/ {
39dc37374bSHongtao Jia	model = "fsl,T1040RDB";
40dc37374bSHongtao Jia	compatible = "fsl,T1040RDB";
4184e0f1c1SIgal Liberman
4284e0f1c1SIgal Liberman	aliases {
4384e0f1c1SIgal Liberman		phy_sgmii_2 = &phy_sgmii_2;
4484e0f1c1SIgal Liberman	};
4584e0f1c1SIgal Liberman
4684e0f1c1SIgal Liberman	soc@ffe000000 {
4784e0f1c1SIgal Liberman		fman@400000 {
4884e0f1c1SIgal Liberman			ethernet@e0000 {
4984e0f1c1SIgal Liberman				fixed-link = <0 1 1000 0 0>;
5084e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
5184e0f1c1SIgal Liberman			};
5284e0f1c1SIgal Liberman
5384e0f1c1SIgal Liberman			ethernet@e2000 {
5484e0f1c1SIgal Liberman				fixed-link = <1 1 1000 0 0>;
5584e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
5684e0f1c1SIgal Liberman			};
5784e0f1c1SIgal Liberman
5884e0f1c1SIgal Liberman			ethernet@e4000 {
5984e0f1c1SIgal Liberman				phy-handle = <&phy_sgmii_2>;
6084e0f1c1SIgal Liberman				phy-connection-type = "sgmii";
6184e0f1c1SIgal Liberman			};
6284e0f1c1SIgal Liberman
6384e0f1c1SIgal Liberman			mdio@fc000 {
64600ecc19SMathieu Malaterre				phy_sgmii_2: ethernet-phy@3 {
6584e0f1c1SIgal Liberman					reg = <0x03>;
6684e0f1c1SIgal Liberman				};
67e69eb082SVladimir Oltean
68e69eb082SVladimir Oltean				/* VSC8514 QSGMII PHY */
69e69eb082SVladimir Oltean				phy_qsgmii_0: ethernet-phy@4 {
70e69eb082SVladimir Oltean					reg = <0x4>;
71e69eb082SVladimir Oltean				};
72e69eb082SVladimir Oltean
73e69eb082SVladimir Oltean				phy_qsgmii_1: ethernet-phy@5 {
74e69eb082SVladimir Oltean					reg = <0x5>;
75e69eb082SVladimir Oltean				};
76e69eb082SVladimir Oltean
77e69eb082SVladimir Oltean				phy_qsgmii_2: ethernet-phy@6 {
78e69eb082SVladimir Oltean					reg = <0x6>;
79e69eb082SVladimir Oltean				};
80e69eb082SVladimir Oltean
81e69eb082SVladimir Oltean				phy_qsgmii_3: ethernet-phy@7 {
82e69eb082SVladimir Oltean					reg = <0x7>;
83e69eb082SVladimir Oltean				};
84e69eb082SVladimir Oltean
85e69eb082SVladimir Oltean				/* VSC8514 QSGMII PHY */
86e69eb082SVladimir Oltean				phy_qsgmii_4: ethernet-phy@8 {
87e69eb082SVladimir Oltean					reg = <0x8>;
88e69eb082SVladimir Oltean				};
89e69eb082SVladimir Oltean
90e69eb082SVladimir Oltean				phy_qsgmii_5: ethernet-phy@9 {
91e69eb082SVladimir Oltean					reg = <0x9>;
92e69eb082SVladimir Oltean				};
93e69eb082SVladimir Oltean
94e69eb082SVladimir Oltean				phy_qsgmii_6: ethernet-phy@a {
95e69eb082SVladimir Oltean					reg = <0xa>;
96e69eb082SVladimir Oltean				};
97e69eb082SVladimir Oltean
98e69eb082SVladimir Oltean				phy_qsgmii_7: ethernet-phy@b {
99e69eb082SVladimir Oltean					reg = <0xb>;
100e69eb082SVladimir Oltean				};
10184e0f1c1SIgal Liberman			};
10284e0f1c1SIgal Liberman		};
10384e0f1c1SIgal Liberman	};
10484e0f1c1SIgal Liberman
105dc37374bSHongtao Jia	ifc: localbus@ffe124000 {
106dc37374bSHongtao Jia		cpld@3,0 {
107dc37374bSHongtao Jia			compatible = "fsl,t1040rdb-cpld";
108dc37374bSHongtao Jia		};
109dc37374bSHongtao Jia	};
110dc37374bSHongtao Jia};
111dc37374bSHongtao Jia
112be489a39SHongtao Jia#include "t1040si-post.dtsi"
113e69eb082SVladimir Oltean
114e69eb082SVladimir Oltean&seville_switch {
115e69eb082SVladimir Oltean	status = "okay";
116e69eb082SVladimir Oltean};
117e69eb082SVladimir Oltean
118e69eb082SVladimir Oltean&seville_port0 {
119e69eb082SVladimir Oltean	managed = "in-band-status";
120e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_0>;
121e69eb082SVladimir Oltean	phy-mode = "qsgmii";
1225ebb7474SMaxim Kiselev	label = "ETH3";
123e69eb082SVladimir Oltean	status = "okay";
124e69eb082SVladimir Oltean};
125e69eb082SVladimir Oltean
126e69eb082SVladimir Oltean&seville_port1 {
127e69eb082SVladimir Oltean	managed = "in-band-status";
128e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_1>;
129e69eb082SVladimir Oltean	phy-mode = "qsgmii";
130e69eb082SVladimir Oltean	label = "ETH4";
131e69eb082SVladimir Oltean	status = "okay";
132e69eb082SVladimir Oltean};
133e69eb082SVladimir Oltean
134e69eb082SVladimir Oltean&seville_port2 {
135e69eb082SVladimir Oltean	managed = "in-band-status";
136e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_2>;
137e69eb082SVladimir Oltean	phy-mode = "qsgmii";
1385ebb7474SMaxim Kiselev	label = "ETH5";
139e69eb082SVladimir Oltean	status = "okay";
140e69eb082SVladimir Oltean};
141e69eb082SVladimir Oltean
142e69eb082SVladimir Oltean&seville_port3 {
143e69eb082SVladimir Oltean	managed = "in-band-status";
144e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_3>;
145e69eb082SVladimir Oltean	phy-mode = "qsgmii";
146e69eb082SVladimir Oltean	label = "ETH6";
147e69eb082SVladimir Oltean	status = "okay";
148e69eb082SVladimir Oltean};
149e69eb082SVladimir Oltean
150e69eb082SVladimir Oltean&seville_port4 {
151e69eb082SVladimir Oltean	managed = "in-band-status";
152e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_4>;
153e69eb082SVladimir Oltean	phy-mode = "qsgmii";
1545ebb7474SMaxim Kiselev	label = "ETH7";
155e69eb082SVladimir Oltean	status = "okay";
156e69eb082SVladimir Oltean};
157e69eb082SVladimir Oltean
158e69eb082SVladimir Oltean&seville_port5 {
159e69eb082SVladimir Oltean	managed = "in-band-status";
160e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_5>;
161e69eb082SVladimir Oltean	phy-mode = "qsgmii";
162e69eb082SVladimir Oltean	label = "ETH8";
163e69eb082SVladimir Oltean	status = "okay";
164e69eb082SVladimir Oltean};
165e69eb082SVladimir Oltean
166e69eb082SVladimir Oltean&seville_port6 {
167e69eb082SVladimir Oltean	managed = "in-band-status";
168e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_6>;
169e69eb082SVladimir Oltean	phy-mode = "qsgmii";
1705ebb7474SMaxim Kiselev	label = "ETH9";
171e69eb082SVladimir Oltean	status = "okay";
172e69eb082SVladimir Oltean};
173e69eb082SVladimir Oltean
174e69eb082SVladimir Oltean&seville_port7 {
175e69eb082SVladimir Oltean	managed = "in-band-status";
176e69eb082SVladimir Oltean	phy-handle = <&phy_qsgmii_7>;
177e69eb082SVladimir Oltean	phy-mode = "qsgmii";
178e69eb082SVladimir Oltean	label = "ETH10";
179e69eb082SVladimir Oltean	status = "okay";
180e69eb082SVladimir Oltean};
181e69eb082SVladimir Oltean
182e69eb082SVladimir Oltean&seville_port8 {
183*8b322f9fSVladimir Oltean	status = "okay";
184*8b322f9fSVladimir Oltean};
185*8b322f9fSVladimir Oltean
186*8b322f9fSVladimir Oltean&seville_port9 {
187e69eb082SVladimir Oltean	status = "okay";
188e69eb082SVladimir Oltean};
189