Loading...
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Device Tree file for the Linksys WRT1900ACv2 (Cobra)
4 *
5 * Copyright (C) 2015 Imre Kaloz <kaloz@openwrt.org>
6 */
7
8/dts-v1/;
9#include "armada-385-linksys.dtsi"
10
11/ {
12 model = "Linksys WRT1900ACv2";
13 compatible = "linksys,cobra", "linksys,armada385", "marvell,armada385",
14 "marvell,armada380";
15};
16
17&expander0 {
18 wan_amber@0 {
19 label = "cobra:amber:wan";
20 reg = <0x0>;
21 };
22
23 wan_white@1 {
24 label = "cobra:white:wan";
25 reg = <0x1>;
26 };
27
28 wlan_2g@2 {
29 label = "cobra:white:wlan_2g";
30 reg = <0x2>;
31 };
32
33 wlan_5g@3 {
34 label = "cobra:white:wlan_5g";
35 reg = <0x3>;
36 };
37
38 usb2@5 {
39 label = "cobra:white:usb2";
40 reg = <0x5>;
41 };
42
43 usb3_1@6 {
44 label = "cobra:white:usb3_1";
45 reg = <0x6>;
46 };
47
48 usb3_2@7 {
49 label = "cobra:white:usb3_2";
50 reg = <0x7>;
51 };
52
53 wps_white@8 {
54 label = "cobra:white:wps";
55 reg = <0x8>;
56 };
57
58 wps_amber@9 {
59 label = "cobra:amber:wps";
60 reg = <0x9>;
61 };
62};
63
64&gpio_leds {
65 power {
66 label = "cobra:white:power";
67 };
68
69 sata {
70 label = "cobra:white:sata";
71 };
72};
73
74&nand {
75 /* 128MiB */
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0000000 0x200000>; /* 2MiB */
80 read-only;
81 };
82
83 partition@100000 {
84 label = "u_env";
85 reg = <0x200000 0x40000>; /* 256KiB */
86 };
87
88 partition@140000 {
89 label = "s_env";
90 reg = <0x240000 0x40000>; /* 256KiB */
91 };
92
93 partition@900000 {
94 label = "devinfo";
95 reg = <0x900000 0x100000>; /* 1MiB */
96 read-only;
97 };
98
99 /* kernel1 overlaps with rootfs1 by design */
100 partition@a00000 {
101 label = "kernel1";
102 reg = <0xa00000 0x2800000>; /* 40MiB */
103 };
104
105 partition@1000000 {
106 label = "rootfs1";
107 reg = <0x1000000 0x2200000>; /* 34MiB */
108 };
109
110 /* kernel2 overlaps with rootfs2 by design */
111 partition@3200000 {
112 label = "kernel2";
113 reg = <0x3200000 0x2800000>; /* 40MiB */
114 };
115
116 partition@3800000 {
117 label = "rootfs2";
118 reg = <0x3800000 0x2200000>; /* 34MiB */
119 };
120
121 /*
122 * 38MiB, last MiB is for the BBT, not writable
123 */
124 partition@5a00000 {
125 label = "syscfg";
126 reg = <0x5a00000 0x2600000>;
127 };
128
129 /*
130 * Unused area between "s_env" and "devinfo".
131 * Moved here because otherwise the renumbered
132 * partitions would break the bootloader
133 * supplied bootargs
134 */
135 partition@180000 {
136 label = "unused_area";
137 reg = <0x280000 0x680000>; /* 6.5MiB */
138 };
139};
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 soc {
49 internal-regs{
50 i2c@11000 {
51
52 pca9635@68 {
53 #address-cells = <1>;
54 #size-cells = <0>;
55
56 wan_amber@0 {
57 label = "cobra:amber:wan";
58 reg = <0x0>;
59 };
60
61 wan_white@1 {
62 label = "cobra:white:wan";
63 reg = <0x1>;
64 };
65
66 wlan_2g@2 {
67 label = "cobra:white:wlan_2g";
68 reg = <0x2>;
69 };
70
71 wlan_5g@3 {
72 label = "cobra:white:wlan_5g";
73 reg = <0x3>;
74 };
75
76 usb2@5 {
77 label = "cobra:white:usb2";
78 reg = <0x5>;
79 };
80
81 usb3_1@6 {
82 label = "cobra:white:usb3_1";
83 reg = <0x6>;
84 };
85
86 usb3_2@7 {
87 label = "cobra:white:usb3_2";
88 reg = <0x7>;
89 };
90
91 wps_white@8 {
92 label = "cobra:white:wps";
93 reg = <0x8>;
94 };
95
96 wps_amber@9 {
97 label = "cobra:amber:wps";
98 reg = <0x9>;
99 };
100 };
101 };
102 };
103 };
104
105 gpio-leds {
106 power {
107 label = "cobra:white:power";
108 };
109
110 sata {
111 label = "cobra:white:sata";
112 };
113 };
114};