Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4157483ybi; Tue, 11 Jun 2019 01:50:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaLIJOH+Fr/ev5KG45zqK9+lzFx83l6QcehOr7WzzjgO1MxH67YiZnsIIOFVOC3o48G3zA X-Received: by 2002:a62:6143:: with SMTP id v64mr42328815pfb.42.1560243049481; Tue, 11 Jun 2019 01:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560243049; cv=none; d=google.com; s=arc-20160816; b=dJl0dNsVBRjTSMwfOA4DtqTseTdkngAZsHNE8T+zNEZH6S+FAHKZaTuK7QYmHhhyr5 9zxxDAziBlxug4gEURsXi3vuGKRHBqmjpkAWzXUjQn8VxcBmrDwDj0oZfwCr8CGwqpz+ ozRCvYcZidCIEBN92rfKpfPjqIM6uTsCCGSZZT4edHJKhtT5sUYsMIdFZk8Vy3TsJCX1 VCOGVTtd0j79CyC/CzxGfXsjVlN+kAY+TzfDl3zKFj2fSprGPPjwq49o1tURStXs9Fdw 04ffvwZaiNReKZ6MEQtvbRyBlEesMzWjeH111WvDCq7v3a5vomwgnHZbHakvtxO/mgaf GVRw== 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=nHME65uYxFVg15qvo2dJiyv0ZUF80ZuF4ZZhe7U0Mxs=; b=Vc6b1oxi8CMyQHYtIhpTvCR92j+hCZ795UrruzvcfKaGs5R+YPzO/pT1+dgEw9Cp3V pWhB3t5d5jH373pxGzMzjJQUNIJjQJ1CUtYnuBFkSRm0p0q9zAtuDGaAONDl8WVBIEIO yNrzfL51nzdqQmiwLs2a6cslcEZQjLKos/w0tK0a7x5xu+0phDXMucu6MZrqMIfpmnd9 +xByVNMWIYbGjhdt2kGRnaDOm2d0JvGoT+eayKXrMATbHQxGZPqWlhr4HQVw/8VvIILT aXd8ewSQYKmMBeOTsUiQPGPv8OMjljYBGXlHg894/vuGoLBB9aDwTRvMb+6iE9Zvd7DH AFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=sjDAbRKT; 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 l1si1817476pjq.82.2019.06.11.01.50.33; Tue, 11 Jun 2019 01:50:49 -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=sjDAbRKT; 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 S2404318AbfFKIuR (ORCPT + 99 others); Tue, 11 Jun 2019 04:50:17 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:30278 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391273AbfFKIuQ (ORCPT ); Tue, 11 Jun 2019 04:50:16 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5B8fZfj022277; Tue, 11 Jun 2019 10:49:01 +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=nHME65uYxFVg15qvo2dJiyv0ZUF80ZuF4ZZhe7U0Mxs=; b=sjDAbRKT3dlO+wWszcQjeQoFndfDI35xkO/U9asiiFOgvImSjg0cY6bNcZbrto1qeLNY r7t+ve5d3BjDUStLBw96srQ7VNExqoME54xG5SbknB/ujQFf1MEUuChWCyYZNkxRs42O zuGpoTuEieGbTig4/bmOndh4oRyzgAkVHDMiZv2rTk5oSN2MmVku0aBKWGPAYo15dsy3 sc+SgdELwzM/He3QiIKUaHMOHuMQi7pEi5Okr63yuyEoJCddLShxgJ53FqbZS3h62Q2I cBQxWbFVCnnUqj/JTVnxaL+HgA/upvUl9hkJoJJvMQ5KvixVSyIdJerXEqAEIlJg5idj 3Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t26rjrtja-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 11 Jun 2019 10:49:01 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F293438; Tue, 11 Jun 2019 08:48:59 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7A3372482; Tue, 11 Jun 2019 08:48:59 +0000 (GMT) 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; Tue, 11 Jun 2019 10:48:59 +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; Tue, 11 Jun 2019 10:48:55 +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 v2 0/3] DCMI bridge support Date: Tue, 11 Jun 2019 10:48:29 +0200 Message-ID: <1560242912-17138-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-06-11_03:,, 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 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 | 317 +++++++++++++++++++++++++----- 2 files changed, 266 insertions(+), 53 deletions(-) -- 2.7.4