Hi,
you did not specify parts version, so you would check that if used part interface is available on opposite side.
TJA1120A with RGMII can be connected to any SJA1110 versions on ports 2 and 3. For TJA1120B with SGMII refer to SJA1110 datasheet for SGMII availability on device versions.
For right connection and configuration I can recommend to refer to TJA1120 and SJA1110 documentation (DS, App notes, etc) available from its web pages.
BR, Petr