openwrt/target/linux/realtek/dts
Jonas Jelonek 39b9b491bb realtek: add support for TP-Link TL-ST1008F v2.0
The TP-Link TL-ST1008F is an 8-port multi-gig switch with 8x SFP+ ports
which support 1G/2.5G/10G speeds. Out of the box it is an unmanaged
switch but with RTL9303 and sufficient RAM + Flash it easily can run as
a managed Linux switch.

Hardware:
 - Realtek RTL9303 Switch SoC
 - Winbond 25Q256JVFQ (32MB flash)
 - Samsung K4B4G1646E-BYMA (512MB DDR3 SDRAM)
 - TCA9534 GPIO extender to control the port LEDs
 - 8x SFP+ 1/2.5/10G slot
 - Serial: 3V3 logic, 115200 8N1
 - 5-pin JTAG
 - physical tri-state switch (used by stock firmware for port speed
   config)
 - 24-LED port speed matrix
 - robust full-metal case

Power is supplied via a 12V 2A standard barrel connector.
There are THT holes on the PCB for serial console next to the flash chip
and JTAG pads. Serial uses 3V3 logic and standard 115200-8N1 config.
Pinout is labeled on the PCB.

All ports/connectors and LEDs are on the back, only Power LED is on the
front.

Hints before flashing
----------------------

* It is recommended to backup the stock flash contents before proceeding.
  Backup can be done from U-Boot (with memory display), from OpenWrt
  initramfs or probably with SPI flash programmer.
  There is no stock recovery functionality.
* Use a small image for RAM boot or first flash. Since you need to use
  ymodem, this is really slow and takes time.
* This does not keep the dual-partition layout for firmware to have more
  space available for a single OpenWrt installation.

Initial flashing
----------------------

The stock U-boot has broken networking thus no TFTP available. Serial
transfer only.

1. Open device and connect serial as per layout and settings
   (recommended to use picocom, ymodem not working with minicom)
2. Connect power to device and press Esc when prompted to enter
   the U-Boot console.
3. Boot initramfs
  * in the U-Boot console:
      loady 0x82000000			(load OpenWrt image via ymodem)
      CTRL-A CTRL-S <initramfs.bin>	(specify initramfs image for
                                         picocom to upload)
      bootm 0x82000000			(boot initramfs from RAM)
(Just to be on the safe side, backup your flash now while RAM-booted)
4. Connect network to your device
5. Upload the sysupgrade image (e.g. with scp)
6. Do sysupgrade

There's no need to adjust the bootcmd in U-Boot. Networking is running
fine once the realtek driver initialized everything in OpenWrt. No
functional difference with running 'rtk network on' within U-Boot
before. Running this even fails and returns with an error.

Return to stock
------------------

This only works if you did a backup of the flash before flashing
OpenWrt. Stock dump then can be flashed from within U-Boot or OpenWrt.
There is no vendor firmware image because this is an unmanaged switch!

CAUTION: Make sure to not overwrite the U-Boot partition(s). If you do
	 not have a flash programmer, you may not be able to debrick
	 your device then.

Co-authored-by: Balázs Triszka <balika011@gmail.com>
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2025-06-16 13:30:52 +02:00
..
rtl83xx_d-link_dgs-1210_common.dtsi realtek: Drop unused property on DGS-1210 gpio0 2025-01-28 07:30:32 +01:00
rtl83xx_d-link_dgs-1210_gpio.dtsi realtek: switch RTL8231 driver for D-Link DGS-1210 2025-01-28 07:30:33 +01:00
rtl83xx_d-link_dgs-1210_gpio_sfp.dtsi realtek: add full SFP support to D-Link DGS-1210-28 series 2024-09-15 16:40:40 +02:00
rtl83xx_hpe_1920.dtsi realtek: add support for HPE 1920-48G (JG927A) and 1920-48G-PoE (JG928A) 2024-09-17 21:44:34 +02:00
rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl838x.dtsi realtek: thermal driver for rtl838x and rtl930x SoCs 2025-02-27 19:24:44 +01:00
rtl839x.dtsi realtek: extend simple thermal driver to support rtl839x 2025-06-03 11:14:45 +02:00
rtl930x.dtsi realtek: thermal driver for rtl838x and rtl930x SoCs 2025-02-27 19:24:44 +01:00
rtl931x.dtsi realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_d-link_dgs-1210-10mp-f.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_engenius_ews2910p-v1.dts realtek: engenius_ews2910p: support multiple hardware versions 2025-05-31 23:19:01 +02:00
rtl8380_engenius_ews2910p-v3.dts realtek: support EnGenius EWS2910P v3 2025-05-31 23:19:01 +02:00
rtl8380_engenius_ews2910p.dtsi realtek: engenius_ews2910p: support multiple hardware versions 2025-05-31 23:19:01 +02:00
rtl8380_hpe_1920-8g-poe-65w.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_hpe_1920-8g-poe-180w.dts realtek: HPE 1920 8G PoE+ 180W move fans to hwmon 2025-01-15 08:21:08 +01:00
rtl8380_hpe_1920-8g.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_hpe_1920-8g.dtsi realtek: switch RTL8231 driver for HPE 1920-8G 2025-01-12 17:30:23 +01:00
rtl8380_linksys_lgs310c.dts realtek: Simple conversions to RTL8231 MFD driver 2025-01-26 21:46:44 +01:00
rtl8380_netgear_gigabit.dtsi realtek: Simple conversions to RTL8231 MFD driver 2025-01-26 21:46:44 +01:00
rtl8380_netgear_gs108t-v3.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_netgear_gs110tpp-v1.dts realtek: add PoE enable line to Netgear GS110TPP 2025-01-28 20:59:04 +01:00
rtl8380_netgear_gs110tup-v1.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_netgear_gs308t-v1.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_netgear_gs310tp-v1.dts realtek: Drop redundant LED labels 2025-02-28 16:30:29 +01:00
rtl8380_panasonic_m8eg-pn28080k.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_tplink_sg2xxx.dtsi realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_tplink_sg2008p-v1.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_tplink_sg2210p-v3.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8380_zyxel_gs1900-8-v1.dts realtek: Split Zyxel GS1900-8 into v1 and v2 2025-01-25 15:07:13 +01:00
rtl8380_zyxel_gs1900-8-v2.dts realtek: Split Zyxel GS1900-8 into v1 and v2 2025-01-25 15:07:13 +01:00
rtl8380_zyxel_gs1900-8hp-v1.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8380_zyxel_gs1900-8hp-v2.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8380_zyxel_gs1900-10hp.dts realtek: add thermal zones for SFP sensors on GS1900-10HP 2025-02-27 19:24:45 +01:00
rtl8380_zyxel_gs1900.dtsi realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8380_zyxel_gs1900_gpio.dtsi realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8380_zyxel_gs1900_gpio_emulated.dtsi realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_allnet_all-sg8208m.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_apresia_aplgs120gtss.dts realtek: Switch ApresiaLightGS120GT-SS RTL8231 driver 2025-01-28 20:55:09 +01:00
rtl8382_d-link_dgs-1210-10p.dts realtek: Switch DGS-1210-10P DTS to gpio.dtsi 2025-01-28 07:30:32 +01:00
rtl8382_d-link_dgs-1210-16.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_d-link_dgs-1210-20.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_d-link_dgs-1210-26.dts realtek: add support for D-Link DGS-1210-26 2025-04-07 12:22:00 +02:00
rtl8382_d-link_dgs-1210-28.dts realtek: add full SFP support to D-Link DGS-1210-28 series 2024-09-15 16:40:40 +02:00
rtl8382_d-link_dgs-1210-28_common.dtsi realtek: add full SFP support to D-Link DGS-1210-28 series 2024-09-15 16:40:40 +02:00
rtl8382_d-link_dgs-1210-28mp-f.dts realtek: d-link: add support for dgs-1210-28p-f 2024-09-24 20:59:50 +02:00
rtl8382_d-link_dgs-1210-28p-f.dts realtek: d-link: add support for dgs-1210-28p-f 2024-09-24 20:59:50 +02:00
rtl8382_d-link_dgs-1210-28p_common.dtsi realtek: d-link: add support for dgs-1210-28p-f 2024-09-24 20:59:50 +02:00
rtl8382_hpe_1920-16g.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_hpe_1920-24g-poe-180w.dts realtek: HPE 1920 24G PoE+ 180W/370W move fans to hwmon 2025-01-16 07:32:16 +01:00
rtl8382_hpe_1920-24g-poe-370w.dts realtek: HPE 1920 24G PoE+ 180W/370W move fans to hwmon 2025-01-16 07:32:16 +01:00
rtl8382_hpe_1920-24g.dts realtek: rtl838x: refactor hpe_1920-24g dts 2024-12-31 08:29:56 +01:00
rtl8382_hpe_1920-24g.dtsi realtek: rtl838x: refactor hpe_1920-24g dts 2024-12-31 08:29:56 +01:00
rtl8382_hpe_1920.dtsi realtek: switch RTL8231 driver for HPE 1920-16/24G 2025-01-12 17:30:23 +01:00
rtl8382_inaba_aml2-17gp.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_iodata_bsh-g24mb.dts realtek: Simple conversions to RTL8231 MFD driver 2025-01-26 21:46:44 +01:00
rtl8382_panasonic_m16eg-pn28160k.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_panasonic_m24eg-pn28240k.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_tplink_t1600g-28ts-v3.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8382_zyxel_gs1900-16.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_zyxel_gs1900-24-v1.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_zyxel_gs1900-24e.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_zyxel_gs1900-24ep.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_zyxel_gs1900-24hp-v1.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8382_zyxel_gs1900-24hp-v2.dts realtek: Move GS1900 external GPIO to new DTSI 2025-01-25 15:06:03 +01:00
rtl8393_d-link_dgs-1210-52.dts realtek: fix cpu port link type 2025-05-06 10:56:58 +02:00
rtl8393_hpe_1920-48g-poe.dts realtek: HPE 1920-48G-PoE: allow fan speed control 2025-02-09 21:36:55 +01:00
rtl8393_hpe_1920-48g.dts realtek: add support for HPE 1920-48G (JG927A) and 1920-48G-PoE (JG928A) 2024-09-17 21:44:34 +02:00
rtl8393_hpe_1920.dtsi realtek: Drop redundant LED labels 2025-02-28 16:30:29 +01:00
rtl8393_netgear_gs750e.dts realtek: fix cpu port link type 2025-05-06 10:56:58 +02:00
rtl8393_panasonic_m48eg-pn28480k.dts realtek: normalize dts directory 2024-09-14 16:56:37 +02:00
rtl8393_tplink_sg2452p-v4.dts realtek: align port names 2025-06-12 14:12:38 +02:00
rtl8393_zyxel_gs1900-48.dts realtek: align port names 2025-06-12 14:12:38 +02:00
rtl9302_zyxel_xgs1250-12.dts realtek: 6.12: fix phy-mode for XGS1250-12 port 1-8 2025-06-11 22:27:22 +02:00
rtl9303_tplink_tl-st1008f_v2.dts realtek: add support for TP-Link TL-ST1008F v2.0 2025-06-16 13:30:52 +02:00
rtl9303_xikestor_sks8300-8x.dts realtek: add thermal zones for SFP sensors on SKS8300-8X 2025-02-27 19:24:45 +01:00