Realtek switch SoC docs

longan register: GPIO_SEL_CTRL

Details

Name
GPIO_SEL_CTRL
Offset
0200
Feature
INTERFACE

Fields

Name LSB Bits Description
RESERVED 14 18
RESERVED 13 1
RESERVED 12 1
GPIO19_LEDSYNC_SEL 11 1
  • 0b0: GPIO
  • 0b1: LED sync
GPIO18_USBLED_SEL 10 1
  • 0b0: GPIO
  • 0b1: USB led
SLV_SPI_CS_SEL_GPIO 5 5

Slave SPI Chipselect

Can use any GPIO as chip select, but only active if REG_IF_SEL = 0

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No chip select
SLV_SPI_SDO_SEL_GPIO 0 5

Slave SPI serial data out

Can use any GPIO as chip select, but only active if REG_IF_SEL = 0

  • 0x0: GPIO00
  • 0x1: GPIO01
  • ..
  • 0x17: GPIO23
  • 0x1f: No SDO