The AML-S905X-CC has an unique 96-bit serial number located here:
cat /sys/bus/platform/drivers/meson-sm/firmware:secure-monitor/serial
If you need to get the serial number in u-boot:
sm serial ADDRESS
This will copy the serial number to the ADDRESS.