Realtek switch SoC docs

mango feature LED

Registers

Offset Name Summary
LED
0600 LED_GLB_CTRL

External LED controller global register (of the RTL8231)

0604 LED_PORT_NUM_CTRL

Number of status LEDs per port

0614 LED_SET_3_CTRL1

LED set 3 control register (LED 2 and 3)

0618 LED_SET_3_CTRL0

LED set 3 control register (LED 0 and 1)

061c LED_SET_2_CTRL1

LED set 2 control register (LED 2 and 3)

0620 LED_SET_2_CTRL0

LED set 2 control register (LED 0 and 1)

0624 LED_SET_1_CTRL1

LED set 1 control register (LED 2 and 3)

0628 LED_SET_1_CTRL0

LED set 1 control register (LED 0 and 1)

062c LED_SET_0_CTRL1

LED set 0 control register (LED 2 and 3)

0630 LED_SET_0_CTRL0

LED set 0 control register (LED 0 and 1)

0634 LED_PORT_COPR_SET_SEL_CTRL

Copper port configuration set selection

0644 LED_PORT_FIB_SET_SEL_CTRL

Fiber port configuration set selection

0654 LED_PORT_COPR_MASK_CTRL

Port mask for copper-enabled ethernet ports

065c LED_PORT_FIB_MASK_CTRL

Port mask for fiber-enabled ethernet ports

0664 LED_PORT_COMBO_MASK_CTRL

Port mask for combo ethernet ports

066c SW_LED_LOAD

Commit software LED settings

0670 LED_PORT_SW_EN_CTRL

Bit mask indicating which LEDs are software controlled.

068c LED_PORT_SW_CTRL

Configure a software controlled LED

076c LED_INDRT_ACCESS_CTRL

External LED indirect access controller (of the RTL8231)

0770 LED_LOAD_LV1_10G
0774 LED_LOAD_LV2_10G
0778 LED_LOAD_LV3_10G
077c LED_LOAD_LV1_5G
0780 LED_LOAD_LV2_5G
0784 LED_LOAD_LV3_5G
0788 LED_LOAD_LV1_2P5G
078c LED_LOAD_LV2_2P5G
0790 LED_LOAD_LV3_2P5G
0794 LED_LOAD_LV1_TP1G
0798 LED_LOAD_LV2_TP1G
079c LED_LOAD_LV3_TP1G
07a0 LED_LOAD_LV1_1G
07a4 LED_LOAD_LV2_1G
07a8 LED_LOAD_LV3_1G
07ac LED_LOAD_LV1_500M
07b0 LED_LOAD_LV2_500M
07b4 LED_LOAD_LV3_500M
07b8 LED_LOAD_LV1_100M
07bc LED_LOAD_LV2_100M
07c0 LED_LOAD_LV3_100M
07c4 LED_LOAD_LV1_10M
07c8 LED_LOAD_LV2_10M
07cc LED_LOAD_LV3_10M
07d0 LED_P_LOAD_CTRL
07d4 EXT_GPIO_GLB_CTRL

External GPIO control register (of the RTL8231)

07d8 EXT_GPIO_TRIG

External GPIO trigger configuration (of the RTL8231)

07dc EXT_GPIO_DIR_CTRL_1

External GPIO direction register (of the RTL8231)

07e0 EXT_GPIO_DIR_CTRL_2

External GPIO direction register (of the RTL8231)

07e4 EXT_GPIO_DIR_CTRL_3

External GPIO direction register (of the RTL8231)

07e8 EXT_GPIO_DATA_CTRL_1

External GPIO data register (of the RTL8231)

07ec EXT_GPIO_DATA_CTRL_2
07f0 EXT_GPIO_DATA_CTRL_3
07f4 EXT_GPIO_INDRT_ACCESS_CTRL

External GPIO indirect access controller (of the RTL8231)