Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3507389ybi; Tue, 2 Jul 2019 08:54:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz+8SrLgAcldzxusFobRvBTSxSK8I/FS4/ncJr+Tcwf7tCYQ0sN0KIATTqRflkUao4DzgH X-Received: by 2002:a17:90a:25e6:: with SMTP id k93mr6524364pje.100.1562082848266; Tue, 02 Jul 2019 08:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562082848; cv=none; d=google.com; s=arc-20160816; b=rojfooZFW+S+nXVHJyhJlplKtKyNQ2UCArBrFL5oi0LYfkiOiNaGTJ14XhXNTw46OS 8nIKoaghDNvxS6+nfWWLG1BatB65pUGkJC2IpJWSiICZpTQRNCIn9EAiVipYIBX96Ths Qzi08bFhvxp3OtWNxG2b6r6mEKFZ8RzeWVpfJROjIEdmcPQkBP/2dhZ9iQarXf5vppP4 /RF9N7ygf9BHIzEtrRl3igaDjm4w46RC9fZzaqWM4k1rAUyDwb0vC60P5/hapX0Eji60 y0Uc/yi6evEvh8xQ+vyRGvUIgj1/U+AJhl3c68kMaNBPV5QEyn1p6bIYDuwc1EYQxC8S O7aw== 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=WguALeMhkUtWxuHtx66uBT18JBfrfAVkyGQwbkKrA0c=; b=d+ZlZsTuJk/fGz3kb4CHzDCFg2lWL24UGNWs9+PCAancFFbld9nt9676nZ+/u9/M0R YaNV0dn2bsfOQKyVY5R12vjM5MGqBpxwwiBnD08JfiVblvk/OmzrF73DAQiQSIB4zml/ aaAcoQ0fmhoZs1rvsitz3A7Ft1l57NIfeWgKnKXcLF5eMxm5q2NOIWuIHzYWPKDbrb8p 1hM8RHEpO4cTs1GFubfkz7lTlJg9pkPqe8c3abXaDPfEjImlOGSDqtTKRe2K30ooGar2 dxBb6xHoGgPoEMPzxL2SbEVhSe4Y2QzSn3Bve/B7Artm7mH/eKEXX/hEjSCkDmuuQMHh yqLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uT9HFMfr; 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 x4si2434926pjn.93.2019.07.02.08.53.54; Tue, 02 Jul 2019 08:54:08 -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=uT9HFMfr; 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 S1727169AbfGBPxY (ORCPT + 99 others); Tue, 2 Jul 2019 11:53:24 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:25396 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725996AbfGBPxU (ORCPT ); Tue, 2 Jul 2019 11:53:20 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x62For4k006850; Tue, 2 Jul 2019 17:53:08 +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=WguALeMhkUtWxuHtx66uBT18JBfrfAVkyGQwbkKrA0c=; b=uT9HFMfr7zJ2nalYpnCpCxB2nNqrGY619JcE/DwHz88dKpU42zYSqOR55wt5dOgq/cEM I+ByeRLGu8HnOnFlUkU7dVhLTRl2TRsTWIfpzox4zz6D4KnSC+z2v3TnkUH6ZtsB8bR/ zKpT8EJr9wcxo134fxMNCBEQPrqKNAsxEg4NQQdmftHxys+A1Bd39cJ5svJiFPvmVwB6 CMXFm1CprT1NXM6h2iqRFt2BegULQ/+qR0Tl4IFX2TJfWYUAxY1eXIYIlaHwIuv5Ob6R Upbfs3N950t+A9R9jgHAjAVVUS0KnjXH1gNxxeS9YGWhcMJ3dMApAXEVHcoKLQ54BhPG DQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2tdw49wgy7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 02 Jul 2019 17:53:08 +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 412FA31; Tue, 2 Jul 2019 15:53:07 +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 216C94ADC; Tue, 2 Jul 2019 15:53:07 +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, 2 Jul 2019 17:53:07 +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, 2 Jul 2019 17:53:06 +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 v3 0/3] DCMI bridge support Date: Tue, 2 Jul 2019 17:52:56 +0200 Message-ID: <1562082779-31165-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-07-02_08:,, 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 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 | 294 +++++++++++++++++++++++++----- 2 files changed, 247 insertions(+), 49 deletions(-) -- 2.7.4