Realtek switch SoC docs

longan feature LED

Registers

Offset Name Summary
LED
c600 EXT_GPIO_GLB_CTRL

External GPIO control register (of the RTL8231)

c604 EXT_GPIO_TRIG

External GPIO trigger configuration (of the RTL8231)

c608 EXT_GPIO_DIR_CTRL_1

External GPIO direction register (of the RTL8231)

c60c EXT_GPIO_DIR_CTRL_2

External GPIO direction register (of the RTL8231)

c610 EXT_GPIO_DIR_CTRL_3

External GPIO direction register (of the RTL8231)

c614 EXT_GPIO_DATA_CTRL_1

External GPIO data register (of the RTL8231)

c618 EXT_GPIO_DATA_CTRL_2

External GPIO data register (of the RTL8231)

c61c EXT_GPIO_DATA_CTRL_3

External GPIO data register (of the RTL8231)

c620 EXT_GPIO_INDRT_ACCESS_CTRL

External GPIO indirect access controller (of the RTL8231)

c624 DMY_REG0_GLB_CTRL
cc00 LED_GLB_CTRL

External LED controller global register (of the RTL8231)

cc04 LED_PORT_NUM_CTRL

Number of status LEDs per port

cc0c LED_SET3_1_CTRL

LED set 3 control register (LED 2 and 3)

cc10 LED_SET3_0_CTRL

LED set 3 control register (LED 0 and 1)

cc14 LED_SET2_1_CTRL

LED set 2 control register (LED 2 and 3)

cc18 LED_SET2_0_CTRL

LED set 2 control register (LED 0 and 1)

cc1c LED_SET1_1_CTRL

LED set 1 control register (LED 2 and 3)

cc20 LED_SET1_0_CTRL

LED set 1 control register (LED 0 and 1)

cc24 LED_SET0_1_CTRL

LED set 0 control register (LED 2 and 3)

cc28 LED_SET0_0_CTRL

LED set 0 control register (LED 0 and 1)

cc2c LED_PORT_COPR_SET_SEL_CTRL

Copper port configuration set selection

cc34 LED_PORT_FIB_SET_SEL_CTRL

Fiber port configuration set selection

cc3c LED_PORT_COPR_MASK_CTRL

Port mask for copper-enabled ethernet ports

cc40 LED_PORT_FIB_MASK_CTRL

Port mask for fiber-enabled ethernet ports

cc44 LED_PORT_COMBO_MASK_CTRL

Port mask for combo ethernet ports

cc48 SW_LED_LOAD

Commit software LED settings

cc4c LED_PORT_SW_EN_CTRL

Bit mask indicating which LEDs are software controlled.

cc5c LED_PORT_SW_CTRL

Configure a software controlled LED

cccc LED_INDRT_ACCESS_CTRL

External LED indirect access controller (of the RTL8231)

ccd0 LED_LOAD_LV1_10G
ccd4 LED_LOAD_LV2_10G
ccd8 LED_LOAD_LV3_10G
ccdc LED_LOAD_LV1_5G
cce0 LED_LOAD_LV2_5G
cce4 LED_LOAD_LV3_5G
cce8 LED_LOAD_LV1_2P5G
ccec LED_LOAD_LV2_2P5G
ccf0 LED_LOAD_LV3_2P5G
ccf4 LED_LOAD_LV1_1G
ccf8 LED_LOAD_LV2_1G
ccfc LED_LOAD_LV3_1G
cd00 LED_LOAD_LV1_500M
cd04 LED_LOAD_LV2_500M
cd08 LED_LOAD_LV3_500M
cd0c LED_LOAD_LV1_100M
cd10 LED_LOAD_LV2_100M
cd14 LED_LOAD_LV3_100M
cd18 LED_LOAD_LV1_10M
cd1c LED_LOAD_LV2_10M
cd20 LED_LOAD_LV3_10M
cd24 LED_P_LOAD_CTRL
cd28 DMY_REG0_LED