1ac0ca416SShaohui Xie/*
2ac0ca416SShaohui Xie * Device Tree Include file for Freescale Layerscape-1043A family SoC.
3ac0ca416SShaohui Xie *
48637f58bSLi Yang * Copyright 2014-2015 Freescale Semiconductor, Inc.
5ac0ca416SShaohui Xie *
6ac0ca416SShaohui Xie * Mingkai Hu <Mingkai.hu@freescale.com>
7ac0ca416SShaohui Xie *
8ac0ca416SShaohui Xie * This file is dual-licensed: you can use it either under the terms
9ac0ca416SShaohui Xie * of the GPLv2 or the X11 license, at your option. Note that this dual
10ac0ca416SShaohui Xie * licensing only applies to this file, and not this project as a
11ac0ca416SShaohui Xie * whole.
12ac0ca416SShaohui Xie *
13ac0ca416SShaohui Xie *  a) This library is free software; you can redistribute it and/or
14ac0ca416SShaohui Xie *     modify it under the terms of the GNU General Public License as
15ac0ca416SShaohui Xie *     published by the Free Software Foundation; either version 2 of the
16ac0ca416SShaohui Xie *     License, or (at your option) any later version.
17ac0ca416SShaohui Xie *
18ac0ca416SShaohui Xie *     This library is distributed in the hope that it will be useful,
19ac0ca416SShaohui Xie *     but WITHOUT ANY WARRANTY; without even the implied warranty of
20ac0ca416SShaohui Xie *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21ac0ca416SShaohui Xie *     GNU General Public License for more details.
22ac0ca416SShaohui Xie *
23ac0ca416SShaohui Xie * Or, alternatively,
24ac0ca416SShaohui Xie *
25ac0ca416SShaohui Xie *  b) Permission is hereby granted, free of charge, to any person
26ac0ca416SShaohui Xie *     obtaining a copy of this software and associated documentation
27ac0ca416SShaohui Xie *     files (the "Software"), to deal in the Software without
28ac0ca416SShaohui Xie *     restriction, including without limitation the rights to use,
29ac0ca416SShaohui Xie *     copy, modify, merge, publish, distribute, sublicense, and/or
30ac0ca416SShaohui Xie *     sell copies of the Software, and to permit persons to whom the
31ac0ca416SShaohui Xie *     Software is furnished to do so, subject to the following
32ac0ca416SShaohui Xie *     conditions:
33ac0ca416SShaohui Xie *
34ac0ca416SShaohui Xie *     The above copyright notice and this permission notice shall be
35ac0ca416SShaohui Xie *     included in all copies or substantial portions of the Software.
36ac0ca416SShaohui Xie *
37ac0ca416SShaohui Xie *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38ac0ca416SShaohui Xie *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39ac0ca416SShaohui Xie *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40ac0ca416SShaohui Xie *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41ac0ca416SShaohui Xie *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42ac0ca416SShaohui Xie *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43ac0ca416SShaohui Xie *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44ac0ca416SShaohui Xie *     OTHER DEALINGS IN THE SOFTWARE.
45ac0ca416SShaohui Xie */
46ac0ca416SShaohui Xie
47ac0ca416SShaohui Xie/dts-v1/;
4818486552SHongtao Jia#include "fsl-ls1043a.dtsi"
49ac0ca416SShaohui Xie
50ac0ca416SShaohui Xie/ {
51ac0ca416SShaohui Xie	model = "LS1043A RDB Board";
5263dac35bSHoria Geantă
5363dac35bSHoria Geantă	aliases {
5463dac35bSHoria Geantă		crypto = &crypto;
5544605b65SStuart Yoder		serial0 = &duart0;
5644605b65SStuart Yoder		serial1 = &duart1;
5744605b65SStuart Yoder		serial2 = &duart2;
5844605b65SStuart Yoder		serial3 = &duart3;
5963dac35bSHoria Geantă	};
60d5c8b122SStuart Yoder
61d5c8b122SStuart Yoder	chosen {
62d5c8b122SStuart Yoder		stdout-path = "serial0:115200n8";
63d5c8b122SStuart Yoder	};
64ac0ca416SShaohui Xie};
65ac0ca416SShaohui Xie
66ac0ca416SShaohui Xie&i2c0 {
67ac0ca416SShaohui Xie	status = "okay";
68ac0ca416SShaohui Xie	ina220@40 {
69ac0ca416SShaohui Xie		compatible = "ti,ina220";
70ac0ca416SShaohui Xie		reg = <0x40>;
71ac0ca416SShaohui Xie		shunt-resistor = <1000>;
72ac0ca416SShaohui Xie	};
73ac0ca416SShaohui Xie	adt7461a@4c {
74ac0ca416SShaohui Xie		compatible = "adi,adt7461";
75ac0ca416SShaohui Xie		reg = <0x4c>;
76ac0ca416SShaohui Xie	};
77ac0ca416SShaohui Xie	eeprom@52 {
78ac0ca416SShaohui Xie		compatible = "at24,24c512";
79ac0ca416SShaohui Xie		reg = <0x52>;
80ac0ca416SShaohui Xie	};
81ac0ca416SShaohui Xie	eeprom@53 {
82ac0ca416SShaohui Xie		compatible = "at24,24c512";
83ac0ca416SShaohui Xie		reg = <0x53>;
84ac0ca416SShaohui Xie	};
85ac0ca416SShaohui Xie	rtc@68 {
86ac0ca416SShaohui Xie		compatible = "pericom,pt7c4338";
87ac0ca416SShaohui Xie		reg = <0x68>;
88ac0ca416SShaohui Xie	};
89ac0ca416SShaohui Xie};
90ac0ca416SShaohui Xie
91ac0ca416SShaohui Xie&ifc {
92ac0ca416SShaohui Xie	status = "okay";
93ac0ca416SShaohui Xie	#address-cells = <2>;
94ac0ca416SShaohui Xie	#size-cells = <1>;
95ac0ca416SShaohui Xie	/* NOR, NAND Flashes and FPGA on board */
96ac0ca416SShaohui Xie	ranges = <0x0 0x0 0x0 0x60000000 0x08000000
97ac0ca416SShaohui Xie		  0x1 0x0 0x0 0x7e800000 0x00010000
98ac0ca416SShaohui Xie		  0x2 0x0 0x0 0x7fb00000 0x00000100>;
99ac0ca416SShaohui Xie
100ac0ca416SShaohui Xie		nor@0,0 {
101ac0ca416SShaohui Xie			compatible = "cfi-flash";
102ac0ca416SShaohui Xie			#address-cells = <1>;
103ac0ca416SShaohui Xie			#size-cells = <1>;
104ac0ca416SShaohui Xie			reg = <0x0 0x0 0x8000000>;
105ac0ca416SShaohui Xie			bank-width = <2>;
106ac0ca416SShaohui Xie			device-width = <1>;
107ac0ca416SShaohui Xie		};
108ac0ca416SShaohui Xie
109ac0ca416SShaohui Xie		nand@1,0 {
110ac0ca416SShaohui Xie			compatible = "fsl,ifc-nand";
111ac0ca416SShaohui Xie			#address-cells = <1>;
112ac0ca416SShaohui Xie			#size-cells = <1>;
113ac0ca416SShaohui Xie			reg = <0x1 0x0 0x10000>;
114ac0ca416SShaohui Xie		};
115ac0ca416SShaohui Xie
116ac0ca416SShaohui Xie		cpld: board-control@2,0 {
117ac0ca416SShaohui Xie			compatible = "fsl,ls1043ardb-cpld";
118ac0ca416SShaohui Xie			reg = <0x2 0x0 0x0000100>;
119ac0ca416SShaohui Xie		};
120ac0ca416SShaohui Xie};
121ac0ca416SShaohui Xie
122730628f0SYunhui Cui&dspi0 {
123730628f0SYunhui Cui	bus-num = <0>;
124730628f0SYunhui Cui	status = "okay";
125730628f0SYunhui Cui
126730628f0SYunhui Cui	flash@0 {
127730628f0SYunhui Cui		#address-cells = <1>;
128730628f0SYunhui Cui		#size-cells = <1>;
129730628f0SYunhui Cui		compatible = "n25q128a13", "jedec,spi-nor";  /* 16MB */
130730628f0SYunhui Cui		reg = <0>;
131730628f0SYunhui Cui		spi-max-frequency = <1000000>; /* input clock */
132730628f0SYunhui Cui	};
133730628f0SYunhui Cui};
134730628f0SYunhui Cui
135ac0ca416SShaohui Xie&duart0 {
136ac0ca416SShaohui Xie	status = "okay";
137ac0ca416SShaohui Xie};
138ac0ca416SShaohui Xie
139ac0ca416SShaohui Xie&duart1 {
140ac0ca416SShaohui Xie	status = "okay";
141ac0ca416SShaohui Xie};
142bf02f2ffSMadalin Bucur
143bf02f2ffSMadalin Bucur#include "fsl-ls1043-post.dtsi"
144bf02f2ffSMadalin Bucur
145bf02f2ffSMadalin Bucur&fman0 {
146bf02f2ffSMadalin Bucur	ethernet@e0000 {
147bf02f2ffSMadalin Bucur		phy-handle = <&qsgmii_phy1>;
148bf02f2ffSMadalin Bucur		phy-connection-type = "qsgmii";
149bf02f2ffSMadalin Bucur	};
150bf02f2ffSMadalin Bucur
151bf02f2ffSMadalin Bucur	ethernet@e2000 {
152bf02f2ffSMadalin Bucur		phy-handle = <&qsgmii_phy2>;
153bf02f2ffSMadalin Bucur		phy-connection-type = "qsgmii";
154bf02f2ffSMadalin Bucur	};
155bf02f2ffSMadalin Bucur
156bf02f2ffSMadalin Bucur	ethernet@e4000 {
157bf02f2ffSMadalin Bucur		phy-handle = <&rgmii_phy1>;
158bf02f2ffSMadalin Bucur		phy-connection-type = "rgmii-txid";
159bf02f2ffSMadalin Bucur	};
160bf02f2ffSMadalin Bucur
161bf02f2ffSMadalin Bucur	ethernet@e6000 {
162bf02f2ffSMadalin Bucur		phy-handle = <&rgmii_phy2>;
163bf02f2ffSMadalin Bucur		phy-connection-type = "rgmii-txid";
164bf02f2ffSMadalin Bucur	};
165bf02f2ffSMadalin Bucur
166bf02f2ffSMadalin Bucur	ethernet@e8000 {
167bf02f2ffSMadalin Bucur		phy-handle = <&qsgmii_phy3>;
168bf02f2ffSMadalin Bucur		phy-connection-type = "qsgmii";
169bf02f2ffSMadalin Bucur	};
170bf02f2ffSMadalin Bucur
171bf02f2ffSMadalin Bucur	ethernet@ea000 {
172bf02f2ffSMadalin Bucur		phy-handle = <&qsgmii_phy4>;
173bf02f2ffSMadalin Bucur		phy-connection-type = "qsgmii";
174bf02f2ffSMadalin Bucur	};
175bf02f2ffSMadalin Bucur
176bf02f2ffSMadalin Bucur	ethernet@f0000 { /* 10GEC1 */
177bf02f2ffSMadalin Bucur		phy-handle = <&aqr105_phy>;
178bf02f2ffSMadalin Bucur		phy-connection-type = "xgmii";
179bf02f2ffSMadalin Bucur	};
180bf02f2ffSMadalin Bucur
181bf02f2ffSMadalin Bucur	mdio@fc000 {
182bf02f2ffSMadalin Bucur		rgmii_phy1: ethernet-phy@1 {
183bf02f2ffSMadalin Bucur			reg = <0x1>;
184bf02f2ffSMadalin Bucur		};
185bf02f2ffSMadalin Bucur
186bf02f2ffSMadalin Bucur		rgmii_phy2: ethernet-phy@2 {
187bf02f2ffSMadalin Bucur			reg = <0x2>;
188bf02f2ffSMadalin Bucur		};
189bf02f2ffSMadalin Bucur
190bf02f2ffSMadalin Bucur		qsgmii_phy1: ethernet-phy@4 {
191bf02f2ffSMadalin Bucur			reg = <0x4>;
192bf02f2ffSMadalin Bucur		};
193bf02f2ffSMadalin Bucur
194bf02f2ffSMadalin Bucur		qsgmii_phy2: ethernet-phy@5 {
195bf02f2ffSMadalin Bucur			reg = <0x5>;
196bf02f2ffSMadalin Bucur		};
197bf02f2ffSMadalin Bucur
198bf02f2ffSMadalin Bucur		qsgmii_phy3: ethernet-phy@6 {
199bf02f2ffSMadalin Bucur			reg = <0x6>;
200bf02f2ffSMadalin Bucur		};
201bf02f2ffSMadalin Bucur
202bf02f2ffSMadalin Bucur		qsgmii_phy4: ethernet-phy@7 {
203bf02f2ffSMadalin Bucur			reg = <0x7>;
204bf02f2ffSMadalin Bucur		};
205bf02f2ffSMadalin Bucur	};
206bf02f2ffSMadalin Bucur
207bf02f2ffSMadalin Bucur	mdio@fd000 {
208bf02f2ffSMadalin Bucur		aqr105_phy: ethernet-phy@1 {
209bf02f2ffSMadalin Bucur			compatible = "ethernet-phy-ieee802.3-c45";
210bf02f2ffSMadalin Bucur			interrupts = <0 132 4>;
211bf02f2ffSMadalin Bucur			reg = <0x1>;
212bf02f2ffSMadalin Bucur		};
213bf02f2ffSMadalin Bucur	};
214bf02f2ffSMadalin Bucur};
215