You can only interchange between the BM1397 ASIC variants because the CompacF and the R909 were designed with the BM1397 ASIC chips. The variants are BM1397AG, BM1397AF, BM1397AH, BM1397AI, BM1397AD. However BM1397AG and BM1397AI are commonly used and available. Some say that the BM1397AI is better than the rest and hence more expensive.
No need to change any drivers because they are all BM1397 ASICs.
You cannot use BM1366 ASIC (Antminer S19 XP) in your CompacF or the R909. You need to redesign a new circuit board and components for it to run. BitaxeUltra board by Open Source Miners United uses the BM1366 ASIC. It's an open source and you can make it yourself.
Thank you very much for the clear explanation and what variants I can use. Greatly appreciated SilverDesert