Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3667627ybl; Mon, 12 Aug 2019 04:29:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUpa5nXDrhINSsflKAJSOebBz0Okhj5m1/QUs2celgaUr7JKC3QUI1kkZ4vHi5VVG5Xoas X-Received: by 2002:a65:458d:: with SMTP id o13mr29317091pgq.34.1565609349341; Mon, 12 Aug 2019 04:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565609349; cv=none; d=google.com; s=arc-20160816; b=ckmw7bbamru5oUUHiE7CN/ec99kdDhaJW1H8C9ANe+VKPH2iK4xlbooD33/XuuriK/ 25Biib489e2gCMGjgnIYjxVNSw7mVVMeVCSpzPGJIIK+p9sJuWVdpr2pR1Ysr14yUIAK LjDEsBV7XRTS9go8FfNyrRtL33+Y0wd7Lx/eFm/mj3r4Zb25HnoIi4DOcN/VecTrTnbx P2VgPPK0WzJ5D++xwmhGuOnC596FsdqYzODn5NKmL31e3qT/wcJ1yqYKcvD6KeuIV1Z3 5mQRwq6X490yhXHMrVGJtktMICYZ/lj0PFzK4drNH+xHnALSgtHO/+wmANeIms7AejMC Cerg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=zlh7K383b0/baRSXK9AetsCSDAYAXrVto6VkTMETb8M=; b=xGoNP+XFN4ktMI+Oajpg1IpkO4TmxANnNQtYZYl58Jm1OKAoXhsUwnek4J6eqgkzVV eHPkmuT4ddqSWwtgT+S6jGe+ZsBMzVgUUpaI8DAflI+KMk+UC8s9aecfi+Li3L2UUOhc +F6AQcXWVt2TxMN9jPCZbugXKhMTnrEZ9bRpciagHUyd7be0P/K7UzCOxy3V1EohHcX5 497nMlqFjn00B5WmId330K2L6/kHBDYBCFgEycPTq9/dU452RIyHoXS9f7VZmUPpJDPt bR2cD1fUrCizIlFl0PpMfVJmgjW5Td/GFaU4qANWx1CY2B+gmI2dSh5R5x5+YOM/5iE5 obmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=njQ4vSBd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w17si58007572plp.404.2019.08.12.04.28.53; Mon, 12 Aug 2019 04:29:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=njQ4vSBd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728336AbfHLL1I (ORCPT + 99 others); Mon, 12 Aug 2019 07:27:08 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:42685 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbfHLL1H (ORCPT ); Mon, 12 Aug 2019 07:27:07 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7CBQ9HZ030376; Mon, 12 Aug 2019 13:26:54 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=zlh7K383b0/baRSXK9AetsCSDAYAXrVto6VkTMETb8M=; b=njQ4vSBdF762AlZmByPJVB4a3oSKNsIvykfbYXElFkCr1LQ+gJqT3ucuq+wv7vhoXz85 t7Y/RIWvClw9CMbO8hg2dSGi00vC3+XPmRAq2xJoBL8RGIQyUSsCSkMMxb24f+o6Fw/G HiGPcG/fFWXR9Z7E+LDj9KcdRQqOEQ6kHFK+pkgSA6SZc2zbhCx1wYL2vzab1KH2ATW6 UKfNzERiocUUP/QzqCm8VtfzRfXm01SyZP2zotJPZfqJjw3QEQdwQ1GWmsClINsDiOyq cNxf+KpYTfAHz0xeb+/bSqgT2dc61Y1CVv1TWjU3ZzF/OlWHLKoCfGCutfDHI40Q9Sws PA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2u9kpujh04-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Aug 2019 13:26:54 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 573C33F; Mon, 12 Aug 2019 11:26:53 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3D8FB2F56E7; Mon, 12 Aug 2019 13:26:53 +0200 (CEST) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 12 Aug 2019 13:26:53 +0200 Received: from localhost (10.201.23.19) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 12 Aug 2019 13:26:52 +0200 From: Hugues Fruchet To: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus CC: , , , , Benjamin Gaignard , Yannick Fertre , Philippe CORNU , "Hugues Fruchet" , Mickael GUENE Subject: [PATCH v5 0/3] DCMI bridge support Date: Mon, 12 Aug 2019 13:26:43 +0200 Message-ID: <1565609206-27101-1-git-send-email-hugues.fruchet@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.19] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-12_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch serie allows to connect non-parallel camera sensor to DCMI thanks to a bridge connected in between such as STMIPID02 [1]. Media controller support is introduced first, then support of several sub-devices within pipeline with dynamic linking between them. In order to keep backward compatibility with applications relying on V4L2 interface only, format set on video node is propagated to all sub-devices connected to camera interface. [1] https://www.spinics.net/lists/devicetree/msg278002.html =========== = history = =========== version 5: - Remove remaining Change-Id - Add Acked-by: Sakari Ailus version 4: - Also drop subdev nodes registry as suggested by Hans: https://www.spinics.net/lists/arm-kernel/msg743375.html version 3: - Drop media device registry to not expose media controller interface to userspace as per Laurent' suggestion: https://www.spinics.net/lists/linux-media/msg153417.html - Prefer "source" instead of "sensor" and keep it in dcmi_graph_entity struct, move asd as first member of struct as per Sakari' suggestion: https://www.spinics.net/lists/linux-media/msg153119.html - Drop dcmi_graph_deinit() as per Sakari' suggestion: https://www.spinics.net/lists/linux-media/msg153417.html version 2: - Fix bus_info not consistent between media and V4L: https://www.spinics.net/lists/arm-kernel/msg717676.html - Propagation of format set on video node to the sub-devices chain connected on camera interface version 1: - Initial submission Hugues Fruchet (3): media: stm32-dcmi: improve sensor subdev naming media: stm32-dcmi: add media controller support media: stm32-dcmi: add support of several sub-devices drivers/media/platform/Kconfig | 2 +- drivers/media/platform/stm32/stm32-dcmi.c | 283 +++++++++++++++++++++++++----- 2 files changed, 236 insertions(+), 49 deletions(-) -- 2.7.4