From patchwork Fri Sep 22 10:08:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 114015 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3155786qgf; Fri, 22 Sep 2017 04:10:54 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBEUZymTpiTDcD7jx5C3dZRZYXpC6srTdcEh3SUD/45stY9PNH+XfTxYkyOS+sNlpqZSsEp X-Received: by 10.84.218.71 with SMTP id f7mr8688003plm.145.1506078654516; Fri, 22 Sep 2017 04:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506078654; cv=none; d=google.com; s=arc-20160816; b=NMWEkid9GWp/HNIpdjUsPENrU7eCyPSxBT/irJC5DdYF2VHa6bWx5lLzIP/gGPdnpu LtJlbwtjh2O8fBvytB2qe5YU3polejV2Tk4uVfNF31TwLQG4Fyx2wzvCcUqDTcjCIq8c s7/hfXEjuFtqHslmdMaKoQzr5f7CJ2Yn7ygperl0NANbIp8Bs1+9WxsEl7cyKb5PFZ4u gd4taSfADSpzlKImLLCBFhygJ08ZFlz/WBlz34ZWp8+kIAS3QOQWnlp0c8S4E6OPDXRF 4CiKvbAaWfzgV/qkRbhHK+eda8y0U9PYyxADeC93ZwUnNvBJnw5pmyD9MDCIAx/gI6Gs tGUw== 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=nL5dKG0BLoUf6gLY8td8AowaMyMz3loLXvB2qLxbAxQ=; b=jTS2R8o+1NzJ9qI2pW2pSwH5nUofdE+U8ex1l0nZdCTDZH+7YA1CYAbjLJlP29s5YR l8i0P2GOd2EdsiWd4iS+/e8S1fi5VHCV73umD76ukKZY1OffuiNF2co11NGr+BpxG2AY 0wbPVTheKVak9C7WxYgTsQfxAMYnsIDuqxJgGI38ShL28jhdYb+wwMTXkMkYzoO6WkJ/ Rm1gB1VSqv6zODAuTZ+Ip9Jlv0yigZDjXpHMNRe2ecjAwlzZb41yTjGN3qJ2BqqvFIu0 vWXZXHp1+Ig649Mwyh+SbqoZq9ODNbGsNA4d37HSIQy8BBvKcUGjvbVkZfmMoZqjlfHe Ny2A== 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 o123si2543154pfb.174.2017.09.22.04.10.54; Fri, 22 Sep 2017 04:10:54 -0700 (PDT) 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 S1751919AbdIVLKx (ORCPT + 6 others); Fri, 22 Sep 2017 07:10:53 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:58800 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbdIVLKv (ORCPT ); Fri, 22 Sep 2017 07:10:51 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id 25E21209E2; Fri, 22 Sep 2017 13:10:49 +0200 (CEST) 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 F3672208ED; Fri, 22 Sep 2017 13:10:48 +0200 (CEST) From: Maxime Ripard To: Mauro Carvalho Chehab , Mark Rutland , Rob Herring Cc: Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, Cyprian Wronka , 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, Maxime Ripard Subject: [PATCH v4 0/2] media: v4l: Add support for the Cadence MIPI-CSI2 RX Date: Fri, 22 Sep 2017 12:08:21 +0200 Message-Id: <20170922100823.18184-1-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.13.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Here is the fourth 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. This serie depends on the version 14 of the serie "Unified fwnode endpoint parser, async sub-device notifier support, N9 flash DTS" by Sakari Ailus Let me know what you think! Maxime 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 | 97 ++++ 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 | 486 +++++++++++++++++++++ 6 files changed, 599 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.13.5 -- 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