aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi
diff options
context:
space:
mode:
authorAndrew Pikler <andrew.pikler@gmail.com>2020-10-05 17:16:44 +0300
committerPetr Štetiar <ynezz@true.cz>2020-12-22 19:11:50 +0100
commit28262f815e4d0fe5302babc696ed5ce518b33759 (patch)
tree2d0cff9a36ae80ae550d363c0f2ff63dc9b9eeee /target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi
parent40437b18f41918d7bbbb7da986b8842bf82f9ff0 (diff)
downloadupstream-28262f815e4d0fe5302babc696ed5ce518b33759.tar.gz
upstream-28262f815e4d0fe5302babc696ed5ce518b33759.tar.bz2
upstream-28262f815e4d0fe5302babc696ed5ce518b33759.zip
ramips: add support for D-Link DIR-882 R1
Specifications: - SoC: MediaTek MT7621AT - RAM: 128 MB (DDR3) - Flash: 16 MB (SPI NOR) - WiFi: MediaTek MT7615N (x2) - Switch: 1 WAN, 4 LAN (Gigabit) - Ports: 1 USB 2.0, 1 USB 3.0 - Buttons: Reset, WiFi Toggle, WPS - LEDs: Power, Internet, WiFi 2.4G WiFi 5G, USB 2.0, USB 3.0 The R1 revision is identical to the A1 revision except - No Config2 Parition, therefore - factory partition resized to 64k from 128K - Firmware partition offset is 0x50000 not 0x60000 - Firmware partitions size increased by 64K - Firmware partition type is "denx,uimage", not "sge,uimage" - Padding of image creation "uimage-padhdr 96" removed Installation: - Older firmware versions: put the factory image on a USB stick, turn on the telnet console, and flash using the following cmd "fw_updater Linux /mnt/usb_X_X/firmware.bin" - D-Link FailsafeUI: Power down the router, press and hold the reset button, then re-plug it. Keep the reset button pressed until the internet LED stops flashing, then jack into any lan port and manually assign a static IP address in 192.168.0.0/24 other than 192.168.0.0 (e.g. 192.168.0.2) and go to http://192.168.0.1 Flash with the factory image. Signed-off-by: Andrew Pikler <andrew.pikler@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi43
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi
new file mode 100644
index 0000000000..e93a06d9fe
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_dlink_dir-8xx-r1.dtsi
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "mt7621_dlink_dir-8xx-x1.dtsi"
+
+&spi0 {
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <50000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0xfb0000>;
+ };
+ };
+ };
+};