Correct DT values for yuv422,8bit JP5.1.3

Hi,
What are the correct dt values for a YUV422 , 8 bit sensor?
If I use:
csi_pixel_bit_depth = “16”;
mode_type = “yuv”;
pixel_phase = “uyvy”;
active_w = “1920”;
active_h = “1080”;
When loading the driver it says:

probing v4l2 sensor at addr 0x3d
[ 245.572707] Entering tegracam_device_register
[ 245.572829] extract_pixel_format: Need to extend formatyuv_uyvy
[ 245.579060] ds960 9-003d: Unsupported pixel format
[ 245.584009] ds960 9-003d: Failed to read mode0 image props
[ 245.589668] ds960 9-003d: Could not initialize sensor properties.
[ 245.595945] ds960 9-003d: Failed to initialize ds960
[ 245.601055] ds960 9-003d: tegra camera driver registration failed
[ 245.607382] ds960: probe of 9-003d failed with error -22

Thanks

The device tree looks without problem.
But the pixel_t should be yuv_uyvy16.

[ 245.572829] extract_pixel_format: Need to extend formatyuv_uyvy

       err = of_property_read_string(node, "mode_type", &mode_str);
        if (err) {
            dev_err(dev,
                "%s:mode_type property missing.\n",
                __func__);
            dev_err(dev,
                "%s:Either pixel_t or alternate must be present.\n",
                __func__);
            goto fail;
        }
        err = read_property_u32(node, "csi_pixel_bit_depth", &depth);
        if (err) {
            dev_err(dev,
                "%s:csi_pixel_bit_depth property missing.\n",
                __func__);
            dev_err(dev,
                "%s:Either pixel_t or alternate must be present.\n",
                __func__);
            goto fail;
        }
        ret = sprintf(pix_format, "%s_%s%d", mode_str, phase_str, depth);
        if (ret < 0)
            return -EINVAL;
        temp_str = pix_format;
    }

    err = extract_pixel_format(temp_str, &image->pixel_format);

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.