From patchwork Fri Jan 19 08:15:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 125113 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp184748ljf; Fri, 19 Jan 2018 00:16:02 -0800 (PST) X-Google-Smtp-Source: ACJfBotb1VG4t8PDl4uQYvIk8yQknx8XxpNIBRdchev855sJbh06nx/oRNyeAfRdMZkzdCUBDeQq X-Received: by 10.98.214.7 with SMTP id r7mr34305421pfg.213.1516349762534; Fri, 19 Jan 2018 00:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516349762; cv=none; d=google.com; s=arc-20160816; b=AMr7UUngFCO0mPh9JhUTJkON9elbgLEJ28I0qwxJcWGZkC1PPTWQTOdQttU/JxB64W prROAJT9c0T31IjR8INnjlPZAny+64mmuvmGLdgwJu7vks0ZVP8FrbVl+XhCg3OHNNAo 2zguxRdfzanA9+rynIfydTHSy3CNaPnDGidezqEb5ZuYdSi4KppjgpBFTPOq0ENOTDAr z0H9SDnHLxKhY4WzQlM9GM1XRe/0gY0mmeMu2gBg2AX5lSxQEIqXBjbl81StQGccq0gE OQpOWlZiL/bwLID3GIYfbSIagHn5kZxnMmmfaRqWW2w7Cc8pzlEqOoHbCSf6u9do9uhf ni9w== 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=u8/e+g6V4n24NZcvKtNScUcPVCEDk+SZSbJoA5wqh7g=; b=bF9DEv/tzAp1Y6c108fZSkTTXZ8axOjbFUrpYlm3bkXmLpw9t3vXs32g7oBMW+6Hbx hXHEaUjnsDjlVKX6itckZnk8Xey8a3/761oQ4FfLchM23MMIUPBxW7jVlqM3vy+d+Sfw 84FTiLDLQTpBDTo5pQv4LcKQvJEmcJaIMP5wWMOYkitSAPrQQBWehRBkNSN4M5gJYHcB uV3Y6K0OQtGo+nov7TnUCiDLTb+9GZS0vhUO01cwls3LEuX73Zxejz5OmxNnFpxH7zXS 9U1VOJ21x1uqznYI56YF46U/N6rL9uP/pIcXnbixHHpcSJbTqvoErqz7tE+M0rm5iKwr 9LFA== 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 a23si8850406pfe.414.2018.01.19.00.16.02; Fri, 19 Jan 2018 00:16:02 -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 S1754876AbeASIQA (ORCPT + 6 others); Fri, 19 Jan 2018 03:16:00 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:33641 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbeASIQA (ORCPT ); Fri, 19 Jan 2018 03:16:00 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id A85302098C; Fri, 19 Jan 2018 09:15:58 +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 7CCB9203B1; Fri, 19 Jan 2018 09:15:48 +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 v2 0/2] media: v4l: Add support for the Cadence MIPI-CSI2 TX controller Date: Fri, 19 Jan 2018 09:15:45 +0100 Message-Id: <20180119081547.22312-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 an attempt at supporting the MIPI-CSI2 TX block from Cadence. This IP block is able to receive 4 video streams and stream them over a MIPI-CSI2 link using up to 4 lanes. Those streams are basically the interfaces to controllers generating some video signals, like a camera or a pattern generator. It is able to map input streams to CSI2 virtual channels and datatypes dynamically. The streaming devices choose their virtual channels through an additional signal that is transparent to the CSI2-TX. The datatypes however are yet another additional input signal, and can be mapped to any CSI2 datatypes. Since v4l2 doesn't really allow for that setup at the moment, this preliminary version is a rather dumb one in order to start the discussion on how to address this properly. Let me know what you think! Maxime Changes from v1: - Add a subdev notifier and start our downstream subdevice in s_stream - Based the decision to enable the stream or not on the link state instead of whether a format was being set on the pad - Put the controller back in reset when stopping the pipeline - Clarified the enpoints number in the DT binding - Added a default format for the pads - Added some missing const - Added more explicit comments - Rebased on 4.15 Maxime Ripard (2): dt-bindings: media: Add Cadence MIPI-CSI2 TX Device Tree bindings v4l: cadence: Add Cadence MIPI-CSI2 TX driver .../devicetree/bindings/media/cdns,csi2tx.txt | 98 ++++ drivers/media/platform/cadence/Kconfig | 6 + drivers/media/platform/cadence/Makefile | 1 + drivers/media/platform/cadence/cdns-csi2tx.c | 586 +++++++++++++++++++++ 4 files changed, 691 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/cdns,csi2tx.txt create mode 100644 drivers/media/platform/cadence/cdns-csi2tx.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