Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2424416ybl; Mon, 19 Aug 2019 01:42:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqznjnbpEAU33zUcwtQyhQk30Qd097TWSy12dYFE6oLRSPH1kJvNEznVbj5jLz0VtiOZlJJz X-Received: by 2002:aa7:8ad0:: with SMTP id b16mr22828139pfd.45.1566204175219; Mon, 19 Aug 2019 01:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566204175; cv=none; d=google.com; s=arc-20160816; b=MCe7FButilRYzGLhJ4JJTS5IGHOctaxHj9mhCJ93GB4qd4O84agifwhciVerCwqkhJ JPeG2DCoI7uXE7eUg3cAETFMC47vZVcTrvKxJwLxNwpq0niVcwX9vR8TIyup041pQxOq OomhIQVRJZMFt898DlUg5caBvDIMRyQzF0OUAk+Kqe/zsinvHvNDXI/b4hhzNsXkxh4m z0taGkwAWA7A4BX8VYR3WLM8RpCiOTBXfRUhxkahDKNq1ievD3kwh5l8bTdWvptqwBOZ 1XwZT/qCO8XnpjwqII91aLmKGv/zddthDQMUNbAYALlMxgtpRhgGGAqAv7etz54Qf/cJ If5Q== 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=E0Wx1Y9QpRHdm+N2pBALeuqn+It3hed1+boIz8hDojM=; b=0O4Gq9ACAMvIkyhFMs37Jlvy6qq7gxR+ydX9Cla080VXbiPpY1/oxOj3Hw/ldrj2fT 6F2uLYjfw2Wdm4/lSf6S9xXeqU/eaIHYGoMbKtRRrW74KU7XmTdDg8pox5LUovEvosr4 +/OGSqg6D5txnZLxyKOYJEwIMghMFmcnULoqPzj0cQGWfKm6dZOQ3CkvL1St4yKgpRrb MdOgbYtDUucCcwsNhnifqk8X1OUc50i8i/RRvd+L9iSthUcDCXuoILAoxfvs/Vj3d01s wcW8gcPklOwx0arJIRVJH0t2SFLBor4TD4GM2vfC/D20wvrllyctw5f4PWtsAVLXjCl2 BuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=bFLe4ALZ; 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 s19si9314572pgm.291.2019.08.19.01.42.40; Mon, 19 Aug 2019 01:42:55 -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=bFLe4ALZ; 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 S1727286AbfHSIls (ORCPT + 99 others); Mon, 19 Aug 2019 04:41:48 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:37428 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725768AbfHSIll (ORCPT ); Mon, 19 Aug 2019 04:41:41 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7J8ak2h002858; Mon, 19 Aug 2019 10:41:26 +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=E0Wx1Y9QpRHdm+N2pBALeuqn+It3hed1+boIz8hDojM=; b=bFLe4ALZNQS3OPB4VYdjAGYxVbWShXrZvhrpPLpQiqri5dpAaQAAVP0NPqFsmVaUd+gA Do3uWUYyho1FZn2G4hwy2SBUFoDqUIdz3M/n8JzAkTNBZo+DxVnHCfvhmWCbkbat+5kw /rCd1a6j8NiAf/iRzvVNdzqsBgZpYE/0VEuMeCIIpXyIWbi8PxFIzA6BI6hH2u5ELSC5 w78d/tKRAWgmM5zexR0P1Jk+x50AE3vL/NAJRujhzoJ/C2K18I47o0YtQTMkjDleaq6t 5SRkfMFr2JMMCUgjr52k7Derhbl7ZErVXuF7qK/0bqzWIVZtRRBJrXpKWUNz8ggWB4Kw qA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2ue8fghsww-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Aug 2019 10:41:26 +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 39FB134; Mon, 19 Aug 2019 08:41:25 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 24E532BF4F2; Mon, 19 Aug 2019 10:41:25 +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, 19 Aug 2019 10:41:25 +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, 19 Aug 2019 10:41:24 +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 v7 0/4] DCMI bridge support Date: Mon, 19 Aug 2019 10:41:17 +0200 Message-ID: <1566204081-19051-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-19_02:,, 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 7: - minor fix on 80 char trace message version 6: - As per Sakari remark: add a FIXME explaining that this version only supports subdevices which expose RGB & YUV "parallel form" mbus code (_2X8) - Add some trace around subdev_call(s_fmt) error & format changes to debug subdev which only expose serial mbus code - Conform to "": when tracing subdev infos 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 (4): media: stm32-dcmi: improve sensor subdev naming media: stm32-dcmi: trace the supported fourcc/mbus_code 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 | 318 +++++++++++++++++++++++++----- 2 files changed, 268 insertions(+), 52 deletions(-) -- 2.7.4