Somebody help me!

I am a beginner and I am planning to do an AI drone .so I am using pixhawk PS4 and a Raspberry Pi. I want to connect a 2 axis gimbal also.

I saw something that the Raspberry Pi is connected to pixhawk through the telemetry 2 pin.

I want to use the normal telemetry unit along with this Raspberry Pi.

I am stuck at a certain point where I came to know that the Gimbals uses telemetry 2 pins.

How can I use the normal telemetry unit + Raspberry Pi and a two axis gimbal to this model, where my purpose is, the Raspberry Pi controls the pixhawk to change the directions of the drone, while using the camera and gimbal for image processing and analysing.

How can this be done