In Control and Status Registers section of riscv-asm-manual, there is an example:
.equ RTC_BASE, 0x40000000 .equ TIMER_BASE, 0x40004000 # setup