there ought to be a law where if hardware is bound to software, and the software goes out of support in a way that renders the hardware useless, then it must be open sourced.
notably post qualcomm pixel phones from google have five years of guaranteed updates. (pixel 6 and above)
apple seems to also do a good job of keeping up software updates for many years. (8+ for some iphones iirc)