...
Same as for software, first the latest minor version, then the latest minor version of the next major version, and so on. E.g. v1.3.20 → v1.4.19 → v1.5.5 → v1.6.4 .
You need to take care of the availability of the software for each firmware version.
...