Stream from ap1032 sensors

If I connect up a ap1032 sensor to one of the CSI inputs, how do I get the sensor to stream into gstreamer (sensor output is bayer12)? Thanks.

Hi Kevin
You can download the document from the download and check the sensor programming guide to develop your sensor driver. And you need below patch for the RAW12 support.

And reference to this topics
devtalk.nvidia.com/default/topic/993852

diff --git a/drivers/media/platform/tegra/camera/camera_common.c b/drivers/media/platform/tegra/camera/camera_common.c
index b14dc0e..e2b7db6 100644
--- a/drivers/media/platform/tegra/camera/camera_common.c
+++ b/drivers/media/platform/tegra/camera/camera_common.c
@@ -462,7 +462,8 @@ int camera_common_try_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
 		}
 	}
 	if (mf->code != V4L2_MBUS_FMT_SRGGB8_1X8 &&
-		mf->code != V4L2_MBUS_FMT_SRGGB10_1X10) {
+		mf->code != V4L2_MBUS_FMT_SRGGB10_1X10 &&
+		mf->code != V4L2_MBUS_FMT_SRGGB12_1X12) {
 		mf->code = V4L2_MBUS_FMT_SRGGB10_1X10;
 		err = -EINVAL;
 	}
--