all version (modem, legato, yocto) are different…
You need to isolate different factors to see which component makes the problem…
I guess the yocto version “SWI9X07Y_02.37.10.02” is working fine to enumerate the correct UART device node.
And it should be given by your distributor as mentioned here: