Realtek switch SoC docs

maple feature LED

Registers

Offset Name Summary
LED
1004 LED_MODE_SEL
a000 LED_GLB_CTRL

Miscellaneous I/O control bits.

a004 LED_MODE_CTRL

Set the LED behaviour for the low and high ports.

a008 LED_P_EN_CTRL

Control which ports have an associated (ASIC controlled) LED.

a00c LED_SW_CTRL

Control RTL8231 GPIO36 when using a scanning output mode

a010 LED0_SW_P_EN_CTRL

Bitmask indicating if LED0 is controlled by the user.

a014 LED1_SW_P_EN_CTRL

Bitmask indicating if LED1 is controlled by the user.

a018 LED2_SW_P_EN_CTRL

Bitmask indicating if LED2 is controlled by the user.

a01c LED_SW_P_CTRL

Set LED modes for a manually controlled switch port LED.

a08c EXT_GPIO_DIR_CTRL_0
a090 EXT_GPIO_DIR_CTRL_1
a094 EXT_GPIO_DATA_CTRL_0
a098 EXT_GPIO_DATA_CTRL_1
a09c EXT_GPIO_INDRT_ACCESS

Auxiliary MDIO port access.

a0a0 LED_LOAD_LV1
a0a4 LED_LOAD_LV2
a0a8 LED_LOAD_LV3
a0ac LED_STS_CTRL_0
a0b0 LED_STS_CTRL_1
a0b4 LED_STS_CTRL_2
a0b8 LED_STS_CTRL_3
a0bc LED_STS_CTRL_4
a0c0 LED_STS_CTRL_5
a0c4 LED_STS_CTRL_6
a0c8 LED_STS_CTRL_7
a0cc LED_STS_CTRL_8
a0d0 LED_STS_CTRL_9
a0d4 LED_STS_CTRL_10
a0d8 LED_STS_CTRL_11
a0dc LED_RTCT_CTRL
a0e0 EXTRA_GPIO_CTRL

Auxiliary MDIO and extra GPIO device control register.

a0e4 EXTRA_GPIO_DIR_0

Direction shadow register for RTL8231 GPIOs 0-31

a0e8 EXTRA_GPIO_DIR_1

Direction shadow register for RTL8231 GPIOs 32-26

a0ec EXTRA_GPIO_DATA_0

Data shadow register for RTL8231 GPIOs 0-31

a0f0 EXTRA_GPIO_DATA_1

Data shadow register for RTL8231 GPIOs 32-36