From patchwork Sun Jan 6 15:54: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: 10749531 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 1DB426C5 for ; Sun, 6 Jan 2019 15:54:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01BFC28905 for ; Sun, 6 Jan 2019 15:54:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6294288EE; Sun, 6 Jan 2019 15:54:21 +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 221A6288EE for ; Sun, 6 Jan 2019 15:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbfAFPyU (ORCPT ); Sun, 6 Jan 2019 10:54:20 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:38179 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbfAFPyU (ORCPT ); Sun, 6 Jan 2019 10:54:20 -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 4B83A60002; Sun, 6 Jan 2019 15:54:17 +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 v2 0/6] media: adv748x: Implement dynamic routing support Date: Sun, 6 Jan 2019 16:54:07 +0100 Message-Id: <20190106155413.30666-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, second iteration for adv748x dynamic selection of video source. Please refer to v1 cover letter for more details: https://patchwork.kernel.org/cover/10723971/ This v2 addresses comments received from Kieran and Laurent, with the most notable changes in patches 3/6 and 6/6. Tested on R-Car E3 Ebisu board, where both AFE and HDMI backends share a single CSI-2 output. A noted on v1 cover letter, for the series to work on other R-Car SoC the number of CSI-2 data lanes has to be negotiated, as the AFE->TXA link works only when up to 2 data lanes are used, while most of Gen 3 SoCs (E3 excluded) are configured to use 4 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_v2 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 | 83 +++++++++++++++++++----- drivers/media/i2c/adv748x/adv748x-csi2.c | 65 ++++++++++++------- drivers/media/i2c/adv748x/adv748x-hdmi.c | 2 +- drivers/media/i2c/adv748x/adv748x.h | 13 +++- 5 files changed, 124 insertions(+), 41 deletions(-) --- 2.20.1