Realtek switch SoC docs

maple register: EXTRA_GPIO_CTRL

Details

Name
EXTRA_GPIO_CTRL
Offset
a0e0
Feature
LED

Description

Auxiliary MDIO and extra GPIO device control register.

See also DMY_REG5 for extra control bits on register shadowing.

Fields

Name LSB Bits Description
RESERVED 10 22
MDC_PERIOD 8 2

Auxiliary MDIO clock frequency:

  • 0: 2.6 MHz
  • 1: 5.2 MHz
  • 2: 10.4 MHz
  • 3: 20.8 MHz
SYNC_GPIO 7 1
EXTRA_GPIO_READY 6 1
EXTRA_GPIO_ADDR 1 5

RTL8231 GPIO chip address, for register shadowing.

EXTRA_GPIO_EN 0 1

Enable device auxiliary (MDIO) bus for RTL8231 access. Must be set in order to send commands, and allow register shadowing.

If this bit is set GPIO A2 will be muxed as MDC, and A3 as MDIO. When cleared, A2 and A3 can be used as GPIO pins.