From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B19417FF for ; Thu, 3 Nov 2022 16:31:37 +0000 (UTC) Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 29B25240005; Thu, 3 Nov 2022 16:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667493089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=g9u2f1LNWBQapoAmKfsDvXiLDEIzMMojEqVOp7/coKU=; b=CsPoPljDVUlVC7jnGSQ5jPhSfoRX0DqL0ZFgn5mWhbiEhQKjX3vm8lcsK1V3VMzdMu5Xm5 RTZHucmj7vix9y5wB569YAMCWAv/IV3r4wcUJWKo50ttbZhIBED29s2q6TFS1n5XD3fO87 uReoXaPokD/u4+6KF7xUx7qKfmtoZt60N3GfZRIofTNKbhCSccpS9wrQ43uy5fSWZoHRBX HNN4ttFPsMhCaoR5T2ZU+AyYwDwpwkhzvZrg3XzOE6W+1sGSnuURQgIwNaP6Wv56EzMkhn AyuDxi3hjLSvJZv2k7rlX8mU5A/wswD3jTWDyr+nSkYfq4ZvgAehbfHVmpD8Mg== From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Laurent Pinchart , Maxime Ripard , Thomas Petazzoni Subject: [PATCH v7 00/28] Allwinner A31/A83T MIPI CSI-2 and A31 ISP / CSI Rework Date: Thu, 3 Nov 2022 17:30:45 +0100 Message-Id: <20221103163113.245462-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This part only concerns the rework of the CSI driver to support the MIPI CSI-2 and ISP workflows. Every patch was reviewed at this point and the whole thing looks good to go. Since this multi-part series has been going on for a while, it would be great to see it merged soon! Changes since v6: - Removed merged patches; - Added collected tags; - Rebased on the latest media tree; - Followed media/video pipeline helpers changes. Changes since v5: - Rebased on latest media tree; - Switched to using media_pad_remote_pad_first; - Switched to using media_pad_remote_pad_unique; - Declared variant const to avoid a warning. Changes since v4: - Removed the v4l2 controls handler from the driver; - Removed the info message about video device registration; - Fixed "literature" typos; - Moved patches dependent on the ISP driver to its dedicated series; - Rebased on the latest media tree; - Added collected tags; Changes since v3: - Updated Kconfig to follow the latest media-wide changes; - Rebased on latest changes to the driver (JPEG/sRGB colorspaces); - Added helper to get a single enabled link for an entity's pad, to replace source selection at link_validate time and select the remote source at stream on time instead; - Kept clock-managed regmap mmio; - Added collected review tags; - Various cosmetic cleanups; Changes since all-in-one v2: - Reworked capture video device registration, which stays in the main path. - Reworked async subdev handling with a dedicated structure holding the corresponding source to avoid matching in the driver; - Added mutex for mbus format serialization; - Remove useless else in link_validate; - Reworked commit logs to include missing information; - Cleaned up Kconfig, added PM dependency; - Moved platform-specific clock rate to of match data; - Added collected Reviewed-by tags; - Updated copyright years; Paul Kocialkowski (28): media: sun6i-csi: Add bridge v4l2 subdev with port management media: sun6i-csi: Rename sun6i_video to sun6i_csi_capture media: sun6i-csi: Add capture state using vsync for page flip media: sun6i-csi: Rework register definitions, invert misleading fields media: sun6i-csi: Add dimensions and format helpers to capture media: sun6i-csi: Implement address configuration without indirection media: sun6i-csi: Split stream sequences and irq code in capture media: sun6i-csi: Move power management to runtime pm in capture media: sun6i-csi: Move register configuration to capture media: sun6i-csi: Rework capture format management with helper media: sun6i-csi: Remove custom format helper and rework configure media: sun6i-csi: Add bridge dimensions and format helpers media: sun6i-csi: Get mbus code from bridge instead of storing it media: sun6i-csi: Tidy capture configure code media: sun6i-csi: Introduce bridge format structure, list and helper media: sun6i-csi: Introduce capture format structure, list and helper media: sun6i-csi: Configure registers from format tables media: sun6i-csi: Introduce format match structure, list and helper media: sun6i-csi: Implement capture link validation with logic media: sun6i-csi: Get bridge subdev directly in capture stream ops media: sun6i-csi: Move hardware control to the bridge media: sun6i-csi: Rename the capture video device to sun6i-csi-capture media: sun6i-csi: Cleanup headers and includes, update copyright lines media: sun6i-csi: Add support for MIPI CSI-2 to the bridge code media: sun6i-csi: Only configure capture when streaming media: sun6i-csi: Add extra checks to the interrupt routine media: sun6i-csi: Request a shared interrupt MAINTAINERS: Add myself as sun6i-csi maintainer and rename/move entry MAINTAINERS | 17 +- .../media/platform/sunxi/sun6i-csi/Makefile | 2 +- .../platform/sunxi/sun6i-csi/sun6i_csi.c | 751 +----------- .../platform/sunxi/sun6i-csi/sun6i_csi.h | 141 +-- .../sunxi/sun6i-csi/sun6i_csi_bridge.c | 844 +++++++++++++ .../sunxi/sun6i-csi/sun6i_csi_bridge.h | 69 ++ .../sunxi/sun6i-csi/sun6i_csi_capture.c | 1089 +++++++++++++++++ .../sunxi/sun6i-csi/sun6i_csi_capture.h | 88 ++ .../platform/sunxi/sun6i-csi/sun6i_csi_reg.h | 362 +++--- .../platform/sunxi/sun6i-csi/sun6i_video.c | 733 ----------- .../platform/sunxi/sun6i-csi/sun6i_video.h | 35 - 11 files changed, 2338 insertions(+), 1793 deletions(-) create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.h create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h delete mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c delete mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.h -- 2.38.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BC52C4332F for ; Thu, 3 Nov 2022 17:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=N56XxLjb8XQOBckYK3KGHRZCu2Ze3zjcu5hwDABoLX0=; b=M27o/naEK3tWS2 QzWFLMV1TAYcIWUS+TP0JrHYizBf3MJ3+V7hyoxJAaZAEFmCZRsMg8sJ1+DxfxipPnhaLNfd2YzT/ ycMHDx4PV9rBKoBLjWFqErE697vKILH4uoRaA/u1P8lsa/KHiDdYjm62wCvK2utNZn0SywEmJSjp2 yKgC3ibJfizy5Y+Omz9FPX7UCca1YKWnhmTYH+P3pHH+OkZKobviO+JVJc10e7QXMV8JGZOUsXpV4 6gdQuNcJRw7YQemlulCXCE+epzxrhq9eHe33toBwBXw1mEBizzkHqgtUha+VqM6Zlv7rVbHLCBmZx EG5mMmpCdmGKyopTOTag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqeHm-0017dS-32; Thu, 03 Nov 2022 17:45:50 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqd7z-000i24-Ih for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 16:31:45 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 29B25240005; Thu, 3 Nov 2022 16:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667493089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=g9u2f1LNWBQapoAmKfsDvXiLDEIzMMojEqVOp7/coKU=; b=CsPoPljDVUlVC7jnGSQ5jPhSfoRX0DqL0ZFgn5mWhbiEhQKjX3vm8lcsK1V3VMzdMu5Xm5 RTZHucmj7vix9y5wB569YAMCWAv/IV3r4wcUJWKo50ttbZhIBED29s2q6TFS1n5XD3fO87 uReoXaPokD/u4+6KF7xUx7qKfmtoZt60N3GfZRIofTNKbhCSccpS9wrQ43uy5fSWZoHRBX HNN4ttFPsMhCaoR5T2ZU+AyYwDwpwkhzvZrg3XzOE6W+1sGSnuURQgIwNaP6Wv56EzMkhn AyuDxi3hjLSvJZv2k7rlX8mU5A/wswD3jTWDyr+nSkYfq4ZvgAehbfHVmpD8Mg== From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Laurent Pinchart , Maxime Ripard , Thomas Petazzoni Subject: [PATCH v7 00/28] Allwinner A31/A83T MIPI CSI-2 and A31 ISP / CSI Rework Date: Thu, 3 Nov 2022 17:30:45 +0100 Message-Id: <20221103163113.245462-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_093139_980278_77E825A4 X-CRM114-Status: GOOD ( 17.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This part only concerns the rework of the CSI driver to support the MIPI CSI-2 and ISP workflows. Every patch was reviewed at this point and the whole thing looks good to go. Since this multi-part series has been going on for a while, it would be great to see it merged soon! Changes since v6: - Removed merged patches; - Added collected tags; - Rebased on the latest media tree; - Followed media/video pipeline helpers changes. Changes since v5: - Rebased on latest media tree; - Switched to using media_pad_remote_pad_first; - Switched to using media_pad_remote_pad_unique; - Declared variant const to avoid a warning. Changes since v4: - Removed the v4l2 controls handler from the driver; - Removed the info message about video device registration; - Fixed "literature" typos; - Moved patches dependent on the ISP driver to its dedicated series; - Rebased on the latest media tree; - Added collected tags; Changes since v3: - Updated Kconfig to follow the latest media-wide changes; - Rebased on latest changes to the driver (JPEG/sRGB colorspaces); - Added helper to get a single enabled link for an entity's pad, to replace source selection at link_validate time and select the remote source at stream on time instead; - Kept clock-managed regmap mmio; - Added collected review tags; - Various cosmetic cleanups; Changes since all-in-one v2: - Reworked capture video device registration, which stays in the main path. - Reworked async subdev handling with a dedicated structure holding the corresponding source to avoid matching in the driver; - Added mutex for mbus format serialization; - Remove useless else in link_validate; - Reworked commit logs to include missing information; - Cleaned up Kconfig, added PM dependency; - Moved platform-specific clock rate to of match data; - Added collected Reviewed-by tags; - Updated copyright years; Paul Kocialkowski (28): media: sun6i-csi: Add bridge v4l2 subdev with port management media: sun6i-csi: Rename sun6i_video to sun6i_csi_capture media: sun6i-csi: Add capture state using vsync for page flip media: sun6i-csi: Rework register definitions, invert misleading fields media: sun6i-csi: Add dimensions and format helpers to capture media: sun6i-csi: Implement address configuration without indirection media: sun6i-csi: Split stream sequences and irq code in capture media: sun6i-csi: Move power management to runtime pm in capture media: sun6i-csi: Move register configuration to capture media: sun6i-csi: Rework capture format management with helper media: sun6i-csi: Remove custom format helper and rework configure media: sun6i-csi: Add bridge dimensions and format helpers media: sun6i-csi: Get mbus code from bridge instead of storing it media: sun6i-csi: Tidy capture configure code media: sun6i-csi: Introduce bridge format structure, list and helper media: sun6i-csi: Introduce capture format structure, list and helper media: sun6i-csi: Configure registers from format tables media: sun6i-csi: Introduce format match structure, list and helper media: sun6i-csi: Implement capture link validation with logic media: sun6i-csi: Get bridge subdev directly in capture stream ops media: sun6i-csi: Move hardware control to the bridge media: sun6i-csi: Rename the capture video device to sun6i-csi-capture media: sun6i-csi: Cleanup headers and includes, update copyright lines media: sun6i-csi: Add support for MIPI CSI-2 to the bridge code media: sun6i-csi: Only configure capture when streaming media: sun6i-csi: Add extra checks to the interrupt routine media: sun6i-csi: Request a shared interrupt MAINTAINERS: Add myself as sun6i-csi maintainer and rename/move entry MAINTAINERS | 17 +- .../media/platform/sunxi/sun6i-csi/Makefile | 2 +- .../platform/sunxi/sun6i-csi/sun6i_csi.c | 751 +----------- .../platform/sunxi/sun6i-csi/sun6i_csi.h | 141 +-- .../sunxi/sun6i-csi/sun6i_csi_bridge.c | 844 +++++++++++++ .../sunxi/sun6i-csi/sun6i_csi_bridge.h | 69 ++ .../sunxi/sun6i-csi/sun6i_csi_capture.c | 1089 +++++++++++++++++ .../sunxi/sun6i-csi/sun6i_csi_capture.h | 88 ++ .../platform/sunxi/sun6i-csi/sun6i_csi_reg.h | 362 +++--- .../platform/sunxi/sun6i-csi/sun6i_video.c | 733 ----------- .../platform/sunxi/sun6i-csi/sun6i_video.h | 35 - 11 files changed, 2338 insertions(+), 1793 deletions(-) create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.h create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c create mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.h delete mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c delete mode 100644 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.h -- 2.38.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel