Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp653544pxu; Fri, 11 Dec 2020 10:55:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwP8FKDdS03x2/qxyvubGjhZPbXoAY5vsUM1j41mEIigFCkiQ/xjMUvuBJ1MXooILdTtgD3 X-Received: by 2002:a50:ec18:: with SMTP id g24mr13136579edr.6.1607712905361; Fri, 11 Dec 2020 10:55:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712905; cv=none; d=google.com; s=arc-20160816; b=BYLpyM7Kii1bQUxNigsTYanyHCtqu/fQ761sHRBaaRS5oDIhPEIpW7Nj7J/VYbkpiT nCLd3bTb/WsClswGEZ9JPYYvom/2aToQtyPQdZAYFQOtaOxam7kHH7XGoID3NXaOJYih 0t8t1f6t53OIQSFZGGso8aNvxYbySSE9bLvOHboNl8SzpzCfygAD8j/ncoaIHNulzA9s oLZY4VboxBvs+jQCMvGsj7XxWzCpQ3PD+OkdACGaqAJfHtlldQFskXFNWzSB1EvYy3d9 th+HoGesJsW+R4rw9WsXYqfdr6HQQXPugQDrl54gofdCequ30WwI2133i7RREmbMrp5y 6hew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:message-id:date :subject:cc:to:from; bh=5/l5Vv3hV3HKJV6+zO0Bg1pZmZoapB8SxAZ/Utb3q3g=; b=OnuC8sjtdl055XR0LqOqpkmgpbbW7ophyzKvYKMYtVzKE0zWGU0LkgNnWy4QoWo9Np FjjdKY3qIySaQrd1pU3wnquEtVPgLwV5FcVWm/IoTd0YQrtUOET1+rb2FwMsIAVW2OLw EXBvSJSJDbTKT+EGlFKmpwBEzz5ryy+maaQ7PdSwgaf6G79u95K4Jz8l5PV6HtaA7Hq3 ZJ3oh87CW4JPUmy2cRU7r0LIYH1v3DQAaUWdE14fDk/CtBBmxZ4bWz0OBwut6V/1dsd+ k54HrSQkHKEwWXvbGy99HNdOfoWrqiaZ1QpazaFRdGb1Fko97PIcqWUdIhJ1g1ekIpmL 725g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=bmfve5af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si5385304edj.194.2020.12.11.10.54.42; Fri, 11 Dec 2020 10:55:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=bmfve5af; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394380AbgLKRFt (ORCPT + 99 others); Fri, 11 Dec 2020 12:05:49 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:3866 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389589AbgLKRD2 (ORCPT ); Fri, 11 Dec 2020 12:03:28 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 11 Dec 2020 09:02:48 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 11 Dec 2020 17:02:47 +0000 Received: from skomatineni-linux.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Fri, 11 Dec 2020 17:02:47 +0000 From: Sowjanya Komatineni To: , , , , , CC: , , , , Subject: [PATCH v4 00/13] tegra-video: Add support for capturing from HDMI-to-CSI bridge Date: Fri, 11 Dec 2020 09:02:29 -0800 Message-ID: <1607706162-1548-1-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607706168; bh=5/l5Vv3hV3HKJV6+zO0Bg1pZmZoapB8SxAZ/Utb3q3g=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=bmfve5afHK4ACVxIPq8quNgC+PRM1acsQg0Lh/FdM/5Dg3EF2DTG3zkcNSo2mQ5hg kR+jCGeITufRc8cvSFSUzaFNBMyQaBOYHBHMfsxPCvjPw+KqoeBy5w1fNRXr+fXmoD e6XFgCRgHs/jioYogbQsgbJF2tLCjILEmgj6aBUNNalYDF2JrTMgNYyHBShYCa2Kjt 3FpnY1WK08UxqiAMjelYp5vYCQh0+WhqHXshlPm5waARYeTJLleBGVkUHhYt6h77b5 a+0dR7BmehKD5q9Xc+eomr9RNm4UpGJ9n7VLD7nkpcOAEJqg4aguGfM6Xj6Z33FTAe QW2iKWZtOteWA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series includes below changes to allow capturing from HDMI-to-CSI bridges. - Add DV timing, EDID and log status V4L2 IOCTLs - Subscribe V4L2_EVENT_SOURCE_CHANGE - Implement V4L2 device notify callback to report queue error on source change during active streaming. - Add support for NV16 V4L2 Pixel format. - Add x8 capture by multiple ports gang up for 4K captures from HDMI-to-CSI bridges. Note: These patches are tested with TC358840 HDMI-to-CSI bridge. This series also include below fixes - Allow format change for subdevs that don't have crop support. - Correct V4L2 Pixel format for RGB888_1X24 - Enable VI pixel transform for YUV and RGB formats. Delta between patch versions: [v4]: Includes v3 minor feedback [v3]: Includes below changes based on v2 feedback - Correct V4L2 pixel formats for RGB and YUV. - Sets V4L2_IN_CAP_DV_TIMINGS capability for v4l2 input. - Updates V4L2_FWNODE_CSI2_MAX_DATA_LANES to 8 and uses data-lanes property of Tegra CSI device graph endpoint for 8 lanes. - Added V4L2 custom control V4L2_CID_TEGRA_SYNCPT_TIMEOUT_RETRY for HDMI-to-CSI bridge debug purposes. [v2]: v1 + additional patch for x8 capture support Sowjanya Komatineni (13): media: tegra-video: Use zero crop settings if subdev has no get_selection media: tegra-video: Enable VI pixel transform for YUV and RGB formats media: tegra-video: Fix V4L2 pixel format RGB and YUV media: tegra-video: Add support for V4L2_PIX_FMT_NV16 media: tegra-video: Add DV timing support media: tegra-video: Add support for EDID ioctl ops media: tegra-video: Add support for VIDIOC_LOG_STATUS ioctl media: tegra-video: Add support for V4L2_EVENT_SOURCE_CHANGE media: tegra-video: Implement V4L2 device notify callback media: v4l2-fwnode: Update V4L2_FWNODE_CSI2_MAX_DATA_LANES to 8 dt-bindings: tegra: Update csi data-lanes to maximum 8 lanes media: tegra-video: Add support for x8 captures with gang ports media: tegra-video: Add custom V4L2 control V4L2_CID_TEGRA_SYNCPT_TIMEOUT_RETRY .../display/tegra/nvidia,tegra20-host1x.txt | 4 +- drivers/staging/media/tegra-video/csi.c | 35 ++- drivers/staging/media/tegra-video/csi.h | 14 +- drivers/staging/media/tegra-video/tegra210.c | 340 ++++++++++++++------- drivers/staging/media/tegra-video/vi.c | 338 +++++++++++++++++--- drivers/staging/media/tegra-video/vi.h | 23 +- drivers/staging/media/tegra-video/video.c | 18 ++ include/media/v4l2-fwnode.h | 2 +- 8 files changed, 614 insertions(+), 160 deletions(-) -- 2.7.4