openwrt/target/linux/realtek/dts-5.15
Davide Fioravanti ea42a04161 realtek: add support for Netgear GS750E
This is an RTL8393-based switch with 48 RJ-45 and 2 SFP ports.

Hardware
--------
SoC:	Realtek RTL8393M
RAM:	128MB DDR3 (Nanya NT5CC64M16GP-DI)
FLASH:	8MB NOR (Macronix MX25L6433F)
ETH:	48x 10/100/1000 Mbps RJ-45 Ethernet
SFP:	2x SFP
BTN:
  - 1x	Reset button
LEDS:
  - 50x	Green-Amber leds: lan/sfp status
  - 1x	Green led: power (Always on)
UART:
  - 115200-8-N-1 (CN3, pin-out on PCB)

Everything works correctly except for the 2 SFP ports that are not
working unless you enable it every boot in U-Boot with the command:
	rtk network on

Installation
------------
You can install Openwrt using one of the following methods.

Warning: flashing OpenWrt will delete your current configuration.
Warning 2: if the -factory.bix file is not available anymore, you must
follow Method 2.

Method 1:
Check the firmware version currently running on your switch. If you are
running FW V1.0.1.10 or greater, you have to download the firmware
V1.0.1.8 from Netgear website and then flash this version. When the
switch restarts, it should be on version V1.0.1.8. Now you can get the
OpenWrt -factory.bix file and then flash it using the OEM web interface.

Method 2 (requires the UART connection):
Boot the -initramfs-kernel.bin image from U-Boot with these commands:
	rtk network on;
	tftpboot 0x8f000000 openwrt-realtek-rtl839x-netgear_gs750e-initramfs-kernel.bin;
	bootm;
And then flash the -sysupgrade.bin file from OpenWrt.

Revert to stock
---------------
Get the stock firmware from the Netgear website and flash it using the
OpenWrt web interface. Remember to not keep the current configuration
and check the "Force upgrade" checkbox

Once reverted to stock the firmware could complain in the UART console
about mtdblock3 and/or mtdblock4 not being mounted correctly but it
seems to work anyway without any problems. Sample error:
	mount: Mounting /dev/mtdblock4 on /mntlog failed: Input/output error

If you want to get rid of these error messages you can boot the
-initramfs-kernel.bin image from U-Boot with these commands:
	rtk network on;
	tftpboot 0x8f000000 openwrt-realtek-rtl839x-netgear_gs750e-initramfs-kernel.bin;
	bootm;

And then erase the corresponding partitions using the command:
	For mtdblock3:
		mtd erase jffs2_cfg
	For mtdblock4:
		mtd erase jffs2_log

Now you can reboot the switch and the errors should be gone

Note
----
To get the SFP ports fully working, all the right GPIOs must be found.
In the GPL sources I found these:
 - GPIO_14: SFP_TX_DIS1;
 - GPIO_19: SFP_TX_DIS0;

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
2023-01-13 22:28:36 +01:00
..
rtl83xx_d-link_dgs-1210_common.dtsi
rtl83xx_d-link_dgs-1210_gpio.dtsi
rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi
rtl838x_hpe_1920.dtsi
rtl838x.dtsi
rtl839x_d-link_dgs-1210_gpio.dtsi
rtl839x.dtsi
rtl930x.dtsi
rtl931x.dtsi
rtl8380_d-link_dgs-1210-10mp-f.dts realtek: dgs-1210-10mp: add full sfp description 2023-01-08 11:38:47 +01:00
rtl8380_engenius_ews2910p.dts
rtl8380_hpe_1920-8g.dts
rtl8380_netgear_gigabit_1xx.dtsi
rtl8380_netgear_gigabit_3xx.dtsi
rtl8380_netgear_gigabit.dtsi
rtl8380_netgear_gs108t-v3.dts
rtl8380_netgear_gs110tpp-v1.dts
rtl8380_netgear_gs308t-v1.dts
rtl8380_netgear_gs310tp-v1.dts
rtl8380_panasonic_m8eg-pn28080k.dts
rtl8380_tplink_sg2xxx.dtsi
rtl8380_tplink_sg2008p-v1.dts
rtl8380_tplink_sg2210p-v3.dts
rtl8380_zyxel_gs1900-8.dts
rtl8380_zyxel_gs1900-8hp-v1.dts
rtl8380_zyxel_gs1900-8hp-v2.dts
rtl8380_zyxel_gs1900-10hp.dts
rtl8380_zyxel_gs1900.dtsi
rtl8382_allnet_all-sg8208m.dts
rtl8382_d-link_dgs-1210-10p.dts
rtl8382_d-link_dgs-1210-16.dts
rtl8382_d-link_dgs-1210-20.dts
rtl8382_d-link_dgs-1210-28_common.dtsi
rtl8382_d-link_dgs-1210-28.dts
rtl8382_d-link_dgs-1210-28mp-f.dts
rtl8382_hpe_1920-16g.dts
rtl8382_hpe_1920-24g.dts
rtl8382_hpe_1920.dtsi
rtl8382_inaba_aml2-17gp.dts
rtl8382_iodata_bsh-g24mb.dts
rtl8382_panasonic_m16eg-pn28160k.dts
rtl8382_panasonic_m24eg-pn28240k.dts
rtl8382_zyxel_gs1900-16.dts
rtl8382_zyxel_gs1900-24-v1.dts
rtl8382_zyxel_gs1900-24e.dts
rtl8382_zyxel_gs1900-24hp-v1.dts
rtl8382_zyxel_gs1900-24hp-v2.dts
rtl8393_d-link_dgs-1210-52.dts
rtl8393_netgear_gs750e.dts realtek: add support for Netgear GS750E 2023-01-13 22:28:36 +01:00
rtl8393_panasonic_m48eg-pn28480k.dts
rtl8393_tplink_sg2452p-v4.dts
rtl8393_zyxel_gs1900-48.dts
rtl9302_zyxel_xgs1250-12.dts