From patchwork Fri Sep 22 11:47:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 114017 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp2986014edb; Fri, 22 Sep 2017 04:47:18 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA81jb7HRIhd7SxxYHM3P9CmtsZ8mao5xkfeXME6JJtb80Qfj1JOy4DVdm4BgkzZzutzB40 X-Received: by 10.99.164.81 with SMTP id c17mr9213883pgp.445.1506080838696; Fri, 22 Sep 2017 04:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506080838; cv=none; d=google.com; s=arc-20160816; b=d+qCE4yAT3IubA6sJohV9tO2xW5NUzpTVxh1MlEAQr1/i2qgaCCDV3JwWzqQqKC4wi B5NQLIkYR8s+Ait2DoyPBje1E57kiCbFi35vsqrSG2oREG6JnNGM+MJkoIsJdnxB+0ca CDnyMmBtG8La1ImFrEkY/Ws5buZLNyMY00vcdwaCTMYfGmE6rkZkHdC3RLPa/KVO/Wj5 xX/ClM2+DpXNPslSzc/euMsxCfEwNgtfqoVcN+MSrZDO2S2gWKqvT8HLPq4rtAybq6Tv kyc9/gKP1GAGadsl6TkQcDv+DXDsFe6TPMD4yCrI1tVwOFGwluzL/C5O8MMAJiYTucZv wAjA== 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=gRVtNPAeWUMWF6JM+EOYAtOu8BsJwGjKcgqgwoBhmZk=; b=m6WuTohbkQIaFvGGgd3MiOjFN768myCSlI5SDdJsM4jjzUEyHvaxUCm+0qUxvbtqXu kEMyDkcZymkIcwMKDmMCWwLhLx2h8Z0nwk6bSIMk0lYp1XZ+C1Eh0elngqVdogjzT9Py oUt9RpfhcRmbn+OHmYniXwdpQkhQePIQPs9/POcQsDPGCn6Zf/mdJPg4fnWiObtFePQa 1orW0Zi3zf1X3skqutAQAiaqC1cAY0IgiIgNxNigAYgsObVuv+73MskN73tKb609nvJT Cp36s52jShzBrHxAw6beYLHFYHM+vkIYeoVXr7G0SjsBIuFivIveJ6qtyYcgQ9KbTZCt Y88g== 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 p4si2683531pgc.454.2017.09.22.04.47.18; Fri, 22 Sep 2017 04:47:18 -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 S1752306AbdIVLrR (ORCPT + 6 others); Fri, 22 Sep 2017 07:47:17 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:59887 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752302AbdIVLrQ (ORCPT ); Fri, 22 Sep 2017 07:47:16 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id EF2572093A; Fri, 22 Sep 2017 13:47:14 +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 C388C208C9; Fri, 22 Sep 2017 13:47:04 +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 0/2] media: v4l: Add support for the Cadence MIPI-CSI2 TX controller Date: Fri, 22 Sep 2017 13:47:01 +0200 Message-Id: <20170922114703.30511-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 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. 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 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 | 97 +++++ drivers/media/platform/cadence/Kconfig | 6 + drivers/media/platform/cadence/Makefile | 1 + drivers/media/platform/cadence/cdns-csi2tx.c | 479 +++++++++++++++++++++ 4 files changed, 583 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/cdns,csi2tx.txt create mode 100644 drivers/media/platform/cadence/cdns-csi2tx.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