From patchwork Fri Jan 19 08:13:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 125111 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp184258ljf; Fri, 19 Jan 2018 00:14:20 -0800 (PST) X-Google-Smtp-Source: ACJfBotbr7N6JHg+KsiFbpxOxDFCSerGTnM2qO6EmOgh6YB1I99kO8a2VSxH6YFPkw/sl5wJ1DMy X-Received: by 2002:a17:902:828c:: with SMTP id y12-v6mr1175431pln.145.1516349659987; Fri, 19 Jan 2018 00:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516349659; cv=none; d=google.com; s=arc-20160816; b=lREFDnqeXKK3I2tDzeIqY8PELLz6YGc+Q9axs+Bn5h0p4qJLD4zb5yJ9t9lR4FsnJN kKTfAjuZQmdA36+WtvyC3kLcu/6drreuiW74JDN9ycIg4ANxncbnR99PYAmmePtijlOm fKF9kC6EWql3GCB6O0L9wT4JH7X75obniURvPmGbd5X34obx30+SBM+Sczfjc3dmFgs3 ixSRWisEzjuoBLa0OzywOr3LZ3+5LPftr82NMxFFG2VwRqjobIYm5oUq2Y+6jHNZsdIe JU7MQ8Rd/TTogtIj6b2619A/ii6ztYfJ5GnaAIN61iy5ASr7BywFC0XOEy+MGd+WcpHQ MIIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=MQevjkyw2bUjR89lNrBepL4MooQizkFSnaqH0TeloKY=; b=0u5LA73O5f+v+UT32b0YfJ0mVUCf/jZLqIawNa2EtVPRL/24CvkCDvo/o0sA02TK/T VYjrrUVLCgMDxBdDlYy7+wUkzWsNMFrmu8+fThGCa+SZPwRyoQpxAFkxcmyPqntOZA/F nEKTElUtv30uQsYAr+bZ/pDpoVFoCHoPHHK4qBWMqPIIESzkNNBarYDfV4WKWmgMWj/i kq3ZjOUcocf+YCl1nLk5RZoX3Y/QNOSjHcFMcQZ6UvwnVMfpENck4EObsIV+IFSGIxIk JivZzU+PggjORFQORrxGjdS2LAKO3spEAYMYPxLm61dcvZop6k14+H36jYFys+9uRG/o Rz6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si7682824pgb.825.2018.01.19.00.14.19; Fri, 19 Jan 2018 00:14:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbeASIOR (ORCPT + 6 others); Fri, 19 Jan 2018 03:14:17 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:33519 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753570AbeASIOP (ORCPT ); Fri, 19 Jan 2018 03:14:15 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id BA801208BC; Fri, 19 Jan 2018 09:14:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 5096220879; Fri, 19 Jan 2018 09:13:59 +0100 (CET) From: Maxime Ripard To: Mauro Carvalho Chehab , Mark Rutland , Rob Herring Cc: Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, Richard Sproul , Alan Douglas , Steve Creaney , Thomas Petazzoni , Boris Brezillon , =?utf-8?q?Niklas_S=C3=B6derlund?= , Hans Verkuil , Sakari Ailus , Benoit Parrot , nm@ti.com, Simon Hatliff , Maxime Ripard Subject: [PATCH v5 0/2] media: v4l: Add support for the Cadence MIPI-CSI2 RX Date: Fri, 19 Jan 2018 09:13:55 +0100 Message-Id: <20180119081357.20799-1-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Here is the fifth attempt at supporting the MIPI-CSI2 RX block from Cadence. This IP block is able to receive CSI data over up to 4 lanes, and split it to over 4 streams. Those streams are basically the interfaces to the video grabbers that will perform the capture. It is able to map streams to both CSI datatypes and virtual channels, dynamically. This is unclear at this point what the right way to support it would be, so the driver only uses a static mapping between the virtual channels and streams, and ignores the data types. Let me know what you think! Maxime Changes from v4: - Rebased on top of 4.15 - Fixed a lane mapping issue that prevented the CSI2-RX device to operate properly. - Reworded the output endpoints documentation in the binding Changes from v3: - Removed stale printk - Propagate start/stop functions error code to s_stream - Renamed the DT bindings files - Clarified the output ports wording in the DT binding doc - Added a define for the maximum number of lanes - Rebased on top of Sakari's serie - Gathered tags based on the reviews Changes from v2: - Added reference counting for the controller initialisation - Fixed checkpatch warnings - Moved the sensor initialisation after the DPHY configuration - Renamed the sensor fields to source for consistency - Defined some variables - Renamed a few structures variables - Added internal and external phy errors messages - Reworked the binding slighty by making the external D-PHY optional - Moved the notifier registration in the probe function - Removed some clocks that are not system clocks - Added clocks enabling where needed - Added the code to remap the data lanes - Changed the memory allocator for the non-devm function, and a comment explaining why - Reworked the binding wording Changes from v1: - Amended the DT bindings as suggested by Rob - Rebase on top of 4.13-rc1 and latest Niklas' serie iteration Maxime Ripard (2): dt-bindings: media: Add Cadence MIPI-CSI2 RX Device Tree bindings v4l: cadence: Add Cadence MIPI-CSI2 RX driver .../devicetree/bindings/media/cdns,csi2rx.txt | 100 +++++ drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 2 + drivers/media/platform/cadence/Kconfig | 12 + drivers/media/platform/cadence/Makefile | 1 + drivers/media/platform/cadence/cdns-csi2rx.c | 463 +++++++++++++++++++++ 6 files changed, 579 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/cdns,csi2rx.txt create mode 100644 drivers/media/platform/cadence/Kconfig create mode 100644 drivers/media/platform/cadence/Makefile create mode 100644 drivers/media/platform/cadence/cdns-csi2rx.c -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html