openwrt/target/linux/realtek/dts-5.10
Markus Stockhausen e04e821471 realtek: add support for DGS-1210-52
Hardware specification
----------------------

* RTL8393M SoC, 1 MIPS 34Kc core @ 700MHz
* 128MB DRAM
* 32MB NOR Flash
* 48 x 10/100/1000BASE-T ports
  - 6 x External PHY with 8 ports (RTL8218D)
* 4 x Gigabit RJ45/SFP Combo ports
  - External PHY with 4 SFP ports (RTL8214FC)
* Power LED
* Reset button on front panel
* UART (115200 8N1) via unpopulated standard 0.1" pin header marked J14

The gpio-restart node is not required but it does reset the switch.

TODO: The 4 combo ports attached to the RTL8214FC are not detect
properly. Linux kernel reports 49 and 50 as "External RTL8393 SERDES"
and 51 and 52 as "RTL8218B (external)". Those ports only work if
u-boot initialize it (for example, loading initramfs image using one
of those ports). A patch to PHY detection is needed for full support.

The firmware recovery using U-Boot is broken for all DGS-1210 tested
devices as pressing RESET does not trigger it (only if pressed from a
running stock image)

UART pinout
-----------

[o]ooo|J14
 | ||`------ GND
 | |`------- RX
 | `-------- TX
 `---------- Vcc (3V3)

Installation using OEM upgrade
------------------------------

1. Make sure you are running OEM firmware in image2 slot (logged as admin):
   - > config firmware image_id 2 boot_up
   - > reboot
2. Install squashfs-factory_image1.bin to image1 using (logged as admin):
   - > download firmware_fromTFTP <tftpserver> factory_image1.bin
   - > config firmware image_id 1 boot_up
   - > reboot

Installation using serial interface
-----------------------------------

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. Press CTRL+C keys to get into real U-Boot prompt
3. Init network with `rtk network on` command
4. Load image with `tftpboot 0x8f000000 openwrt-realtek-rtl839x-d-link_dgs-1210-52-initramfs-kernel.bin` command
5. Boot the image with `bootm` command

Once booted the initramfs, install the squashfs-sysupgrade.bin as a
normal OpenWrt system.

Dual-boot with stock firmware using writable u-boot-env
-------------------------------------------------------

From stock to OpenWrt / boot image 1 (CLI as admin):
   - > config firmware image_id 1 boot_up
   - > reboot

From OpenWrt to stock / boot image 2: (shell as root)
   - # fw_setenv bootcmd 'run addargs ; bootm 0xb4e80000'
   - # fw_setenv image '/dev/mtdblock7'
   - # reboot

Debrick using serial interface
------------------------------

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. In a Windows PC, run 'D-Link Network Assistant v2.0.2.4'. It should
   detect the switch
3. Flash the firmware.

Back to stock firmware using dual-boot
--------------------------------------

If you have serial interface, you can change u-boot env vars
interrupting the boot process. If not but you are running OpenWrt, you
can dual-boot (as mentioned eariler) and skip to step 4:

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. Press CTRL+C keys to get into real U-Boot prompt
3. Boot the image 2:
   - set image /dev/mtdblock7; run addargs; bootm 0xb4e80000
4. Once booted, log as admin and change the boot image to 2
   - > config firmware image_id 2 boot_up
   - > reboot
5. After the boot, flash image1 with the vendor image

Back to stock firmware using DNA
--------------------------------

1. From an OpenWrt:
   - # fw_setenv bootstop on
   - # reboot
2. In a Windows PC, run 'D-Link Network Assistant v2.0.2.4'. It should
   detect the switch
3. Flash the firmware.

It has been developed and tested on device with F3 revision.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2022-09-17 21:28:21 +02:00
..
rtl83xx_d-link_dgs-1210_common.dtsi realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl83xx_d-link_dgs-1210_gpio.dtsi realtek: d-link: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +02:00
rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi realtek: add support for Panasonic Switch-M16eG PN28160K 2022-08-06 14:39:57 +02:00
rtl838x_hpe_1920.dtsi Revert "realtek: remove support for HPE 1920 series" 2022-07-28 16:45:19 +02:00
rtl838x.dtsi realtek: rtl838x: label switch port dts nodes 2022-09-13 09:22:26 +02:00
rtl839x_d-link_dgs-1210_gpio.dtsi realtek: add support for DGS-1210-52 2022-09-17 21:28:21 +02:00
rtl839x.dtsi realtek: align DT macros in RTL839X with RTL838X 2022-09-17 21:28:21 +02:00
rtl930x.dtsi realtek: add sys-led disable pinctrl for rtl930x 2022-07-10 09:54:35 +02:00
rtl931x.dtsi realtek: add mux pinctrl for rtl931x 2022-07-10 09:54:35 +02:00
rtl8380_d-link_dgs-1210-10mp-f.dts realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl8380_engenius_ews2910p.dts realtek: EnGenius EWS2910P: use the mtd3 partition for root overlay 2022-08-13 19:19:38 +02:00
rtl8380_hpe_1920-8g.dts Revert "realtek: remove support for HPE 1920 series" 2022-07-28 16:45:19 +02:00
rtl8380_netgear_gigabit_1xx.dtsi realtek: make Netgear GS1xx u-boot env partition writable 2022-06-22 17:51:02 +02:00
rtl8380_netgear_gigabit_3xx.dtsi realtek: make "u-boot-env" partition writable for Netgear 3xx series 2022-06-22 17:52:30 +02:00
rtl8380_netgear_gigabit.dtsi realtek: add missing gpio0 pinctrl properties 2022-07-10 09:54:35 +02:00
rtl8380_netgear_gs108t-v3.dts realtek: add support for power LED on Netgear GS108Tv3 2022-06-19 10:58:40 +02:00
rtl8380_netgear_gs110tpp-v1.dts realtek: Netgear GS110TPP v1: add lan9 and lan10 2022-08-13 19:15:46 +02:00
rtl8380_netgear_gs308t-v1.dts realtek: add support for power LED on Netgear GS308Tv1 2022-06-18 09:21:50 +02:00
rtl8380_netgear_gs310tp-v1.dts realtek: enable uart1 on the devices with PoE support in 5.10 2021-09-26 00:32:18 +02:00
rtl8380_panasonic_m8eg-pn28080k.dts realtek: add support for Panasonic Switch-M8eG PN28080K 2022-03-13 19:54:57 +01:00
rtl8380_tplink_sg2xxx.dtsi realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
rtl8380_tplink_sg2008p-v1.dts realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
rtl8380_tplink_sg2210p-v3.dts realtek: add support for TP-Link SG2210P 2022-09-13 09:22:26 +02:00
rtl8380_zyxel_gs1900-8.dts realtek: copy dts directory for Kernel 5.10 2021-09-26 00:32:17 +02:00
rtl8380_zyxel_gs1900-8hp-v1.dts realtek: enable uart1 on the devices with PoE support in 5.10 2021-09-26 00:32:18 +02:00
rtl8380_zyxel_gs1900-8hp-v2.dts realtek: enable uart1 on the devices with PoE support in 5.10 2021-09-26 00:32:18 +02:00
rtl8380_zyxel_gs1900-10hp.dts realtek: enable uart1 on the devices with PoE support in 5.10 2021-09-26 00:32:18 +02:00
rtl8380_zyxel_gs1900.dtsi realtek: move RTL8231 definitions to board files 2022-02-20 16:23:55 +00:00
rtl8382_allnet_all-sg8208m.dts realtek: Consolidate bootargs 2021-11-24 21:42:44 +02:00
rtl8382_d-link_dgs-1210-10p.dts realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl8382_d-link_dgs-1210-16.dts realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl8382_d-link_dgs-1210-20.dts realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl8382_d-link_dgs-1210-28.dts realtek: D-Link make common DT include generic 2022-09-17 21:28:21 +02:00
rtl8382_hpe_1920-16g.dts Revert "realtek: remove support for HPE 1920 series" 2022-07-28 16:45:19 +02:00
rtl8382_hpe_1920-24g.dts Revert "realtek: remove support for HPE 1920 series" 2022-07-28 16:45:19 +02:00
rtl8382_hpe_1920.dtsi Revert "realtek: remove support for HPE 1920 series" 2022-07-28 16:45:19 +02:00
rtl8382_inaba_aml2-17gp.dts realtek: add missing gpio0 pinctrl properties 2022-07-10 09:54:35 +02:00
rtl8382_iodata_bsh-g24mb.dts realtek: add support for I-O DATA BSH-G24MB 2022-03-07 21:44:53 +01:00
rtl8382_panasonic_m16eg-pn28160k.dts realtek: add support for Panasonic Switch-M16eG PN28160K 2022-08-06 14:39:57 +02:00
rtl8382_panasonic_m24eg-pn28240k.dts realtek: add support for Panasonic Switch-M24eG PN28240K 2022-08-06 14:39:57 +02:00
rtl8382_zyxel_gs1900-16.dts realtek: add support for ZyXEL GS1900-16 2022-05-07 17:23:45 +02:00
rtl8382_zyxel_gs1900-24-v1.dts realtek: add ZyXEL GS1900-24 v1 support 2022-03-13 19:24:13 +01:00
rtl8382_zyxel_gs1900-24e.dts realtek: add support for ZyXEL GS1900-24E 2022-06-06 10:30:50 +02:00
rtl8382_zyxel_gs1900-24hp-v1.dts realtek: add ZyXEL GS1900-24HP v1 support 2022-04-16 17:26:56 +02:00
rtl8382_zyxel_gs1900-24hp-v2.dts realtek: enable uart1 on the devices with PoE support in 5.10 2021-09-26 00:32:18 +02:00
rtl8393_d-link_dgs-1210-52.dts realtek: add support for DGS-1210-52 2022-09-17 21:28:21 +02:00
rtl8393_panasonic_m48eg-pn28480k.dts realtek: add support for Panasonic Switch-M48eG PN28480K 2022-08-06 14:39:57 +02:00
rtl8393_tplink_sg2452p-v4.dts realtek: tl-sg2xxx: read MAC address from nvmem-cells 2022-09-13 09:22:26 +02:00
rtl8393_zyxel_gs1900-48.dts realtek: ZyXEL GS1900-48: fix system LED polarity 2022-02-20 16:23:55 +00:00
rtl9302_zyxel_xgs1250-12.dts realtek: add system LED for ZyXEL XGS1250-12 2022-07-10 09:54:35 +02:00