Smartphone or a real camera? For a lot of pix, either will work great. While it’s possible to use your phone for this type of long exposure, it’s much easier with a camera.
Why shoot a long exposure at all? Check out the smartphone version of this picture below to see what a big difference a little time makes.