Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754613AbdLOBFc (ORCPT ); Thu, 14 Dec 2017 20:05:32 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46922 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754526AbdLOBFa (ORCPT ); Thu, 14 Dec 2017 20:05:30 -0500 X-Google-Smtp-Source: ACJfBosfXyefGCfbC4B+ClxrTf5JOJZMRyJOTBkkbLNjySKPQEOo5DBt2i2KKZGflfSDfaExP+LdTg== From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: Philipp Zabel , Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Steve Longerbeam Subject: [PATCH v2 0/9] media: imx: Add better OF graph support Date: Thu, 14 Dec 2017 17:04:38 -0800 Message-Id: <1513299887-16804-1-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2458 Lines: 58 This is a set of patches that improve support for more complex OF graphs. Currently the imx-media driver only supports a single device with a single port connected directly to either the CSI muxes or the MIPI CSI-2 receiver input ports. There can't be a multi-port device in between. This patch set removes those limitations. For an example taken from automotive, a camera sensor or decoder could be literally a remote device accessible over a FPD-III link, via TI DS90Ux9xx deserializer/serializer pairs. This patch set would support such OF graphs. There are still some assumptions and restrictions, regarding the equivalence of device-tree ports, port parents, and endpoints to media pads, entities, and links that have been enumerated in the TODO file. This patch set supersedes the following patch submitted earlier: "[PATCH v2] media: staging/imx: do not return error in link_notify for unknown sources" Tested by: Steve Longerbeam on SabreLite with the OV5640 Tested-by: Philipp Zabel on Nitrogen6X with the TC358743. Tested-by: Russell King with the IMX219 History: v2: - this version is to resolve merge conflicts only, no functional changes since v1. Steve Longerbeam (9): media: staging/imx: get CSI bus type from nearest upstream entity media: staging/imx: remove static media link arrays media: staging/imx: of: allow for recursing downstream media: staging/imx: remove devname string from imx_media_subdev media: staging/imx: pass fwnode handle to find/add async subdev media: staging/imx: remove static subdev arrays media: staging/imx: convert static vdev lists to list_head media: staging/imx: reorder function prototypes media: staging/imx: update TODO drivers/staging/media/imx/TODO | 63 +++- drivers/staging/media/imx/imx-ic-prp.c | 4 +- drivers/staging/media/imx/imx-media-capture.c | 2 + drivers/staging/media/imx/imx-media-csi.c | 187 +++++----- drivers/staging/media/imx/imx-media-dev.c | 401 +++++++++------------- drivers/staging/media/imx/imx-media-internal-sd.c | 253 +++++++------- drivers/staging/media/imx/imx-media-of.c | 278 ++++++++------- drivers/staging/media/imx/imx-media-utils.c | 122 +++---- drivers/staging/media/imx/imx-media.h | 187 ++++------ 9 files changed, 721 insertions(+), 776 deletions(-) -- 2.7.4