summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/ls1021a-twr.dts
blob: 7adc70b208efcaa340fc467d73cf4e9734dfa256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/*
 * Copyright 2013-2014 Freescale Semiconductor, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

/dts-v1/;
#include "ls1021a.dtsi"

/ {
	model = "LS1021A TWR Board";
};

&dspi1 {
	bus-num = <0>;
	status = "okay";

	dspiflash: s25fl064k@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "spansion,s25fl064k";
		spi-max-frequency = <16000000>;
		spi-cpol;
		spi-cpha;
		reg = <0>;
	};
};

&duart0 {
	status = "okay";
};

&duart1 {
	status = "okay";
};

&enet0 {
	tbi-handle = <&tbi1>;
	phy-handle = <&phy2>;
	phy-connection-type = "sgmii";
	status = "ok";
};

&enet1 {
	tbi-handle = <&tbi1>;
	phy-handle = <&phy0>;
	phy-connection-type = "sgmii";
	status = "ok";
};

&enet2 {
	phy-handle = <&phy1>;
	phy-connection-type = "rgmii-id";
	status = "ok";
};

&i2c0 {
	status = "okay";
};

&i2c1 {
	status = "okay";
};

&ifc {
	status = "okay";
	#address-cells = <2>;
	#size-cells = <1>;
	/* NOR, and CPLD on board */
	ranges = <0x0 0x0 0x0 0x60000000 0x08000000
		0x2 0x0 0x0 0x7fb00000 0x00000100>;

		nor@0,0 {
			compatible = "cfi-flash";
			#address-cells = <1>;
			#size-cells = <1>;
			reg = <0x0 0x0 0x8000000>;
			bank-width = <2>;
			device-width = <1>;

			partition@0 {
				/* 128KB for rcw */
				reg = <0x00000000 0x0020000>;
				label = "NOR bank0 RCW Image";
			};

			partition@20000 {
				/* 1MB for DTB */
				reg = <0x00020000 0x00100000>;
				label = "NOR DTB Image";
			};

			partition@120000 {
				/* 8 MB for Linux Kernel Image */
				reg = <0x00120000 0x00800000>;
				label = "NOR Linux Kernel Image";
			};

			partition@920000 {
				/* 56MB for Ramdisk Root File System */
				reg = <0x00920000 0x03600000>;
				label = "NOR Ramdisk Root File System Image";
			};

			partition@3f80000 {
				/* 512KB for bank4 u-boot Image */
				reg = <0x03f80000 0x80000>;
				label = "NOR bank4 u-boot Image";
			};

			partition@4000000 {
				/* 128KB for bank4 RCW Image */
				reg = <0x04000000 0x20000>;
				label = "NOR bank4 RCW Image";
			};

			partition@4020000 {
				/* 63MB JFFS2 ROOT File System Image */
				reg = <0x04020000 0x3f00000>;
				label = "NOR JFFS2 ROOT File System Image";
			};

			partition@7f80000 {
				/* 512KB for bank0 u-boot Image */
				reg = <0x07f80000 0x80000>;
				label = "NOR bank0 u-boot Image";
			};
		};
};

&lpuart0 {
	status = "okay";
};

&mdio0 {
	phy0: ethernet-phy@0 {
		reg = <0x0>;
	};
	phy1: ethernet-phy@1 {
		reg = <0x1>;
	};
	phy2: ethernet-phy@2 {
		reg = <0x2>;
	};
	tbi1: tbi-phy@1f {
		reg = <0x1f>;
		device_type = "tbi-phy";
	};
};

&pwm6 {
	status = "okay";
};

&pwm7 {
	status = "okay";
};

&qspi {
	num-cs = <2>;
	status = "okay";

	qflash0: s25fl128s@0 {
		compatible = "spansion,s25fl128s";
		#address-cells = <1>;
		#size-cells = <1>;
		spi-max-frequency = <20000000>;
		reg = <0>;

		partition@0 {
			label = "s25fl128s-0";
			reg = <0x0 0x1000000>;
		};
	};
};