• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Device Tree file for the Linksys WRT1900ACv2 (Cobra)
3 *
4 * Copyright (C) 2015 Imre Kaloz <kaloz@openwrt.org>
5 *
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 *  a) This file is licensed under the terms of the GNU General Public
13 *     License version 2.  This program is licensed "as is" without
14 *     any warranty of any kind, whether express or implied.
15 *
16 * Or, alternatively,
17 *
18 *  b) Permission is hereby granted, free of charge, to any person
19 *     obtaining a copy of this software and associated documentation
20 *     files (the "Software"), to deal in the Software without
21 *     restriction, including without limitation the rights to use,
22 *     copy, modify, merge, publish, distribute, sublicense, and/or
23 *     sell copies of the Software, and to permit persons to whom the
24 *     Software is furnished to do so, subject to the following
25 *     conditions:
26 *
27 *     The above copyright notice and this permission notice shall be
28 *     included in all copies or substantial portions of the Software.
29 *
30 *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
31 *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
32 *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
33 *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
34 *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
35 *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
36 *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
37 *     OTHER DEALINGS IN THE SOFTWARE.
38 */
39
40/dts-v1/;
41#include "armada-385-linksys.dtsi"
42
43/ {
44	model = "Linksys WRT1900ACv2";
45	compatible = "linksys,cobra", "linksys,armada385", "marvell,armada385",
46		     "marvell,armada380";
47};
48
49&expander0 {
50	wan_amber@0 {
51		label = "cobra:amber:wan";
52		reg = <0x0>;
53	};
54
55	wan_white@1 {
56		label = "cobra:white:wan";
57		reg = <0x1>;
58	};
59
60	wlan_2g@2 {
61		label = "cobra:white:wlan_2g";
62		reg = <0x2>;
63	};
64
65	wlan_5g@3 {
66		label = "cobra:white:wlan_5g";
67		reg = <0x3>;
68	};
69
70	usb2@5 {
71		label = "cobra:white:usb2";
72		reg = <0x5>;
73	};
74
75	usb3_1@6 {
76		label = "cobra:white:usb3_1";
77		reg = <0x6>;
78	};
79
80	usb3_2@7 {
81		label = "cobra:white:usb3_2";
82		reg = <0x7>;
83	};
84
85	wps_white@8 {
86		label = "cobra:white:wps";
87		reg = <0x8>;
88	};
89
90	wps_amber@9 {
91		label = "cobra:amber:wps";
92		reg = <0x9>;
93	};
94};
95
96&gpio_leds {
97	power {
98		label = "cobra:white:power";
99	};
100
101	sata {
102		label = "cobra:white:sata";
103	};
104};
105
106&nand {
107	/* 128MiB */
108
109	partition@0 {
110		label = "u-boot";
111		reg = <0x0000000 0x200000>;  /* 2MiB */
112		read-only;
113	};
114
115	partition@100000 {
116		label = "u_env";
117		reg = <0x200000 0x40000>;    /* 256KiB */
118	};
119
120	partition@140000 {
121		label = "s_env";
122		reg = <0x240000 0x40000>;    /* 256KiB */
123	};
124
125	partition@900000 {
126		label = "devinfo";
127		reg = <0x900000 0x100000>;   /* 1MiB */
128		read-only;
129	};
130
131	/* kernel1 overlaps with rootfs1 by design */
132	partition@a00000 {
133		label = "kernel1";
134		reg = <0xa00000 0x2800000>;  /* 40MiB */
135	};
136
137	partition@1000000 {
138		label = "rootfs1";
139		reg = <0x1000000 0x2200000>;  /* 34MiB */
140	};
141
142	/* kernel2 overlaps with rootfs2 by design */
143	partition@3200000 {
144		label = "kernel2";
145		reg = <0x3200000 0x2800000>; /* 40MiB */
146	};
147
148	partition@3800000 {
149		label = "rootfs2";
150		reg = <0x3800000 0x2200000>; /* 34MiB */
151	};
152
153	/*
154	 * 38MiB, last MiB is for the BBT, not writable
155	 */
156	partition@5a00000 {
157		label = "syscfg";
158		reg = <0x5a00000 0x2600000>;
159	};
160
161	/*
162	 * Unused area between "s_env" and "devinfo".
163	 * Moved here because otherwise the renumbered
164	 * partitions would break the bootloader
165	 * supplied bootargs
166	 */
167	partition@180000 {
168		label = "unused_area";
169		reg = <0x280000 0x680000>;   /* 6.5MiB */
170	};
171};
172