openwrt/target/linux/realtek/dts-5.10
Alexandru Gagniuc 01e2184c49 realtek: add support for TP-Link SG2210P
Add support for the TP-Link SG2210P switch. This is an RTL8380 based
switch with eight RJ-45 ports with 802.3af PoE, and two SFP ports.

This device shares the same board with the SG2008P and SG2008. To
model this, declare all the capabilities in the sg2xxx dtsi, and
disable unpopulated on the lower end models.

Specifications:
---------------
 - SoC:       Realtek RTL8380M
 - Flash:     32 MiB SPI flash (Vendor varies)
 - RAM:	      256 MiB (Vendor varies)
 - Ethernet:  8x 10/100/1000 Mbps with PoE (all ports)
              2x SFP ports
 - Buttons:   1x "Reset" button on front panel
 - Power:     53.5V DC barrel jack
 - UART:      1x serial header, unpopulated
 - PoE:       2x TI TPS23861 I2C PoE controller

Works:
------
  - (8) RJ-45 ethernet ports
  - (2) SFP ports (with caveats)
  - Switch functions
  - System LED

Not yet enabled:
----------------
  - Power-over-Ethernet (driver works, but doesn't enable "auto" mode)
  - PoE LEDs

Enabling SFP ports:
-------------------

The SFP port control lines are hardwired, except for tx-disable. These
lines are controller by the RTL8231 in shift register mode. There is
no driver support for this yet.

However, to enable the lasers on SFP1 and SFP2 respectively:

    echo 0x0510ff00 > /sys/kernel/debug/rtl838x/led/led_p_en_ctrl
    echo      0x140 > /sys/kernel/debug/rtl838x/led/led_sw_p_ctrl.26
    echo      0x140 > /sys/kernel/debug/rtl838x/led/led_sw_p_ctrl.24

Install via serial console/tftp:
--------------------------------

The footprints R27 (0201) and R28 (0402) are not populated. To enable
serial console, 50 ohm resistors should be soldered -- any value from
0 ohm to 50 ohm will work. R27 can be replaced by a solder bridge.

The u-boot firmware drops to a TP-Link specific "BOOTUTIL" shell at
38400 baud. There is no known way to exit out of this shell, and no
way to do anything useful.

Ideally, one would trick the bootloader into flashing the sysupgrade
image first. However, if the image exceeds 6MiB in size, it will not
work. The sysupgrade image can also be flashed. To install OpenWrt:

Prepare a tftp server with:
 1. server address: 192.168.0.146
 2. the image as: "uImage.img"

Power on device, and stop boot by pressing any key.
Once the shell is active:
 1. Ground out the CLK (pin 16) of the ROM (U7)
 2. Select option "3. Start"
 3. Bootloader notes that "The kernel has been damaged!"
 4. Release CLK as sson as bootloader thinks image is corrupted.
 5. Bootloader enters automatic recovery -- details printed on console
 6. Watch as the bootloader flashes and boots OpenWrt.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
[OpenWrt capitalisation in commit message]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-09-13 09:22:26 +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_d-link_dgs-1210_common.dtsi realtek: d-link: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +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.dtsi realtek: add support for TP-Link SG2452P v4 aka T1600G-52PS v4 2022-09-10 22:13:52 +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: add support for dgs-1210-10mp 2022-08-20 09:02:44 +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
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: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +02:00
rtl8382_d-link_dgs-1210-16.dts realtek: d-link: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +02:00
rtl8382_d-link_dgs-1210-20.dts realtek: d-link: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +02:00
rtl8382_d-link_dgs-1210-28.dts realtek: d-link: dgs-1210 remake of the device tree 2022-08-20 09:02:44 +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_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