From patchwork Thu Jan 10 14:02:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10755831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2306A14DE for ; Thu, 10 Jan 2019 14:02:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12299298DB for ; Thu, 10 Jan 2019 14:02:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1042429926; Thu, 10 Jan 2019 14:02:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A95E32990B for ; Thu, 10 Jan 2019 14:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728321AbfAJOCT (ORCPT ); Thu, 10 Jan 2019 09:02:19 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33095 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728134AbfAJOCS (ORCPT ); Thu, 10 Jan 2019 09:02:18 -0500 X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id A961A60011; Thu, 10 Jan 2019 14:02:15 +0000 (UTC) From: Jacopo Mondi To: laurent.pinchart@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, kieran.bingham@ideasonboard.com Cc: Jacopo Mondi , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v3 0/6] media: adv748x: Implement dynamic routing support Date: Thu, 10 Jan 2019 15:02:07 +0100 Message-Id: <20190110140213.5198-1-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, third iteration for adv748x dynamic selection of video source. Please refer to v1 and v2 cover letter for more details: https://patchwork.kernel.org/cover/10723971/ https://patchwork.kernel.org/cover/10749535/ This version includes comments from Laurent and Kieran, on patches 1/6 and mostly on 6/6, which resulted in a better implementation. Thanks. I have tested this on Ebisu E3 where I can capture HDMI and CVBS inputs from TXA, and on Salvator-x M3-W where I can capture HDMI from TXA, and CVBS from both TXA and TXB, but only when setting the number of CSI-2 data lanes to 2 in DTS. It remains unresolved how to dynamically negotiate the number of CSI-2 data lanes to use between the video source and the CSI-2 receiver, which prevents using AFE->TXA routing on all Gen3 SoC which use 4 CSI-2 data lanes. The series is based on media tree master with the following series from Niklas applied on top: [PATCH v4 0/4] i2c: adv748x: add support for CSI-2 TXA to work in 1-, 2- and 4-lane mode Branch available for testing at: git://jmondi.org/linux adv748x_dynamic-routing_v3 Thanks j Jacopo Mondi (6): media: adv748x: Add is_txb() media: adv748x: Rename reset procedures media: adv748x: csi2: Link AFE with TXA and TXB media: adv748x: Store the source subdevice in TX media: adv748x: Store the TX sink in HDMI/AFE media: adv748x: Implement TX link_setup callback drivers/media/i2c/adv748x/adv748x-afe.c | 2 +- drivers/media/i2c/adv748x/adv748x-core.c | 74 +++++++++++++++++++----- drivers/media/i2c/adv748x/adv748x-csi2.c | 64 +++++++++++++------- drivers/media/i2c/adv748x/adv748x-hdmi.c | 2 +- drivers/media/i2c/adv748x/adv748x.h | 10 ++++ 5 files changed, 112 insertions(+), 40 deletions(-) Tested-by: Kieran Bingham --- 2.20.1