View difference between Paste ID: HgWkmzBy and yntTTCSU
SHOW: | | - or go back to the newest paste.
1
Index: target/linux/ramips/image/Makefile
2
===================================================================
3
--- target/linux/ramips/image/Makefile	(revision 36367)
4
+++ target/linux/ramips/image/Makefile	(working copy)
5
@@ -291,6 +291,7 @@
6
 Image/Build/Profile/DIR-615-D=$(call BuildFirmware/DIR300B1/$(1),$(1),dir-615-d,DIR-615-D,wrgn23_dlwbr_dir615d)
7
 
8
 Image/Build/Profile/DIR-620-A1=$(call BuildFirmware/Default8M/$(1),$(1),dir-620-a1,DIR-620-A1)
9
+Image/Build/Profile/DIR-620-D1=$(call BuildFirmware/Default8M/$(1),$(1),dir-620-d1,DIR-620-D1)
10
 
11
 define BuildFirmware/DIR615H1/squashfs
12
 	$(call BuildFirmware/Default4M/$(1),$(1),dir-615-h1,DIR-615-H1)
13
@@ -433,6 +434,7 @@
14
 	$(call Image/Build/Profile/DIR-600-B2,$(1))
15
 	$(call Image/Build/Profile/DIR-615-D,$(1))
16
 	$(call Image/Build/Profile/DIR-620-A1,$(1))
17
+	$(call Image/Build/Profile/DIR-620-D1,$(1))
18
 	$(call Image/Build/Profile/DIR615H1,$(1))
19
 	$(call Image/Build/Profile/DAP1350,$(1))
20
 	$(call Image/Build/Profile/DAP1350WW,$(1))
21
Index: target/linux/ramips/base-files/lib/ramips.sh
22
===================================================================
23
--- target/linux/ramips/base-files/lib/ramips.sh	(revision 36367)
24
+++ target/linux/ramips/base-files/lib/ramips.sh	(working copy)
25
@@ -81,6 +81,9 @@
26
 	*"DIR-620 A1")
27
 		name="dir-620-a1"
28
 		;;
29
+	*"DIR-620 D1")
30
+		name="dir-620-d1"
31
+		;;
32
 	*"DIR-615 H1")
33
 		name="dir-615-h1"
34
 		;;
35
Index: target/linux/ramips/base-files/lib/upgrade/platform.sh
36
===================================================================
37
--- target/linux/ramips/base-files/lib/upgrade/platform.sh	(revision 36367)
38
+++ target/linux/ramips/base-files/lib/upgrade/platform.sh	(working copy)
39
@@ -32,6 +32,7 @@
40
 	dir-615-h1 | \
41
 	dir-615-d | \
42
 	dir-620-a1 | \
43
+	dir-620-d1 | \
44
 	dap-1350 | \
45
 	esr-9753 | \
46
 	fonera20n | \
47
Index: target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
48
===================================================================
49
--- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac	(revision 36367)
50
+++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac	(working copy)
51
@@ -12,6 +12,7 @@
52
 	3g-6200n |\
53
 	3g-6200nl |\
54
 	3g300m | \
55
+	dir-620-d1 |\
56
 	w150m | \
57
 	mzk-w300nh2 |\
58
 	wl-330n |\
59
Index: target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
60
===================================================================
61
--- target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom	(revision 36367)
62
+++ target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom	(working copy)
63
@@ -67,6 +67,7 @@
64
 	d105 | \
65
 	dir-615-h1 | \
66
 	dir-620-a1 | \
67
+	dir-620-d1 | \
68
 	esr-9753 | \
69
 	fonera20n | \
70
 	rt-n13u | \
71
Index: target/linux/ramips/base-files/etc/uci-defaults/01_leds
72
===================================================================
73
--- target/linux/ramips/base-files/etc/uci-defaults/01_leds	(revision 36367)
74
+++ target/linux/ramips/base-files/etc/uci-defaults/01_leds	(working copy)
75
@@ -65,6 +65,9 @@
76
 		ucidef_set_led_default "status" "Status LED (amber)" "d-link:amber:status" "0"
77
 		set_wifi_led "rt2800pci-phy0::radio"
78
 		;;
79
+	dir-620-d1)
80
+		set_wifi_led "d-link:green:wifi"
81
+		;;
82
 	esr-9753)
83
 		set_wifi_led "rt2800pci-phy0::radio"
84
 		;;
85
Index: target/linux/ramips/base-files/etc/uci-defaults/02_network
86
===================================================================
87
--- target/linux/ramips/base-files/etc/uci-defaults/02_network	(revision 36367)
88
+++ target/linux/ramips/base-files/etc/uci-defaults/02_network	(working copy)
89
@@ -164,6 +164,7 @@
90
 	bc2 | \
91
 	br6425 | \
92
 	broadway | \
93
+	dir-620-d1 | \
94
 	f5d8235-v1 | \
95
 	mzk-w300nh2 | \
96
 	nw718 | \
97
Index: target/linux/ramips/base-files/etc/diag.sh
98
===================================================================
99
--- target/linux/ramips/base-files/etc/diag.sh	(revision 36367)
100
+++ target/linux/ramips/base-files/etc/diag.sh	(working copy)
101
@@ -24,7 +24,7 @@
102
 	d105)
103
 		status_led="d105:red:power"
104
 		;;
105
-	dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1)
106
+	dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-615-h1 | dir-615-d | dir-620-a1| dir-620-d1)
107
 		status_led="d-link:green:status"
108
 		;;
109
 	dir-645)
110
Index: target/linux/ramips/dts/DIR-620-D1.dts
111
===================================================================
112
--- target/linux/ramips/dts/DIR-620-D1.dts	(revision 0)
113
+++ target/linux/ramips/dts/DIR-620-D1.dts	(revision 0)
114
@@ -0,0 +1,101 @@
115
+/dts-v1/;
116
+
117
+/include/ "rt3352.dtsi"
118
+
119
+/ {
120
+	compatible = "DIR-620-D1", "ralink,rt3352-soc";
121
+	model = "D-Link DIR-620 D1";
122
+
123
+	palmbus@10000000 {
124
+		sysc@0 {
125
+			ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
126
+			ralink,gpiomux = "jtag";
127
+			ralink,uartmux = "gpio";
128
+			ralink,wdtmux = <1>;
129
+		};
130
+
131
+		gpio0: gpio@600 {
132
+			status = "okay";
133
+		};
134
+
135
+		spi@b00 {
136
+			status = "okay";
137
+			m25p80@0 {
138
+				#address-cells = <1>;
139
+				#size-cells = <1>;
140
+				compatible = "mx25l6405d";
141
+				reg = <0 0>;
142
+				linux,modalias = "m25p80", "mx25l6405d";
143
+				spi-max-frequency = <10000000>;
144
+
145
+		partition@0 {
146
+			label = "u-boot";
147
+			reg = <0x0 0x30000>;
148
+			read-only;
149
+		};
150
+
151
+		partition@30000 {
152
+			label = "u-boot-env";
153
+			reg = <0x30000 0x10000>;
154
+			read-only;
155
+		};
156
+
157
+		factory: partition@40000 {
158
+			label = "factory";
159
+			reg = <0x40000 0x10000>;
160
+			read-only;
161
+		};
162
+
163
+		partition@50000 {
164
+			label = "firmware";
165-
+			reg = <0x50000 0x3b0000>;
165+
+			reg = <0x50000 0x7b0000>;
166
+		};
167
+			};
168
+		};
169
+	};
170
+
171
+	ethernet@10100000 {
172
+		status = "okay";
173
+	};
174
+
175
+	esw@10110000 {
176
+		status = "okay";
177
+		ralink,portmap = <0x2f>;
178
+	};
179
+
180
+	gpio-leds {
181
+		compatible = "gpio-leds";
182
+		status {
183
+			label = "d-link:green:status";
184
+			gpios = <&gpio0 9 1>;
185
+		};
186
+		wifi {
187
+			label = "d-link:green:wifi";
188
+			gpios = <&gpio0 17 1>;
189
+		};
190
+	};
191
+
192
+	gpio-keys-polled {
193
+		compatible = "gpio-keys-polled";
194
+		#address-cells = <1>;
195
+		#size-cells = <0>;
196
+		poll-interval = <20>;
197
+		reset_wps {
198
+			label = "reset_wps";
199
+			gpios = <&gpio0 7 1>;
200
+			linux,code = <0x198>;
201
+		};
202
+	};
203
+
204
+	wmac@10180000 {
205
+		status = "okay";
206
+	};
207
+
208
+	ehci@101c0000 {
209
+		status = "okay";
210
+	};
211
+
212
+	ohci@101c1000 {
213
+		status = "okay";
214
+	};
215
+};