Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5951085ybi; Wed, 31 Jul 2019 06:01:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhIgg1TUf2L0S7oJFPS63SSSg2NPgiaDwBUHtUBblrLD4AxoyBHrrcqNdXGpcHwczZBUoC X-Received: by 2002:a62:5253:: with SMTP id g80mr47077709pfb.179.1564578083503; Wed, 31 Jul 2019 06:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564578083; cv=none; d=google.com; s=arc-20160816; b=eKf7y/bbwazC8WRx2x9kcoVlpqiTg4yEXmR9ZauTS1NhmPXiE/5I8Rrl0OJ+u+o6eo DhumfoPstyFt+vpA0NHpd5gOum+duj/5WqBgYp7csyzr9r/4joHlqE5Dz0yAILaJA9Zs 5mFWzCCiGgSulYSDz0HFV4ve6dVKi2STOFp9BW9bsumvsxL8XRVOl6tbbwjFut0JUpvb Ado0Mvo2ttjqI1peq+7z4IzMQP8EZiLi1k30h+q+mUTAFSAWyBOQv7piah2y+s2P8jB8 KjcEOz4Gq1/AWO9FBEpgzg+CtL+DAklABQCR/TSf+sqwwIXuRgGBrk6rKeStpZCecTn3 el9Q== 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=lcqx0uZw6dlZ+99bC8ZqWM7F55NO2x68BB/LQEBznPQ=; b=upBOIkA+NMQXDnX0B3GxaKYpt1mvndloeVN/qECQ6U3m+xn88CJLPbUymMTSP20lWj YqYdVBrmR7FOYu6LWL0Y4h9l56EqqMPqSh5pmSZ2vs6NRBfx/78YvWpr2973r9JI9uPd //PwVV3q/FnsFmCnSgXHBA4MJuGCfacqnfqglaEG91QxmxDqKd2O59b5wpBLO/MXsnDw wJXcd/cwkAMFznHzKffnLfA2QHIKZdoEW8O2FOX5BYFjqZ4eTx7FXkNt5vRGJEUl4QmM X8gjdcAf95htI/+0pGo5DDSsXHgFpZx4dahySmzBtctjrzI8VxauD1AKZ8ai6rPoCvLE eKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=fC5Mvih1; 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 c14si31833573pgc.244.2019.07.31.06.01.03; Wed, 31 Jul 2019 06:01:23 -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=fC5Mvih1; 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 S2388054AbfGaM4s (ORCPT + 99 others); Wed, 31 Jul 2019 08:56:48 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:32536 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727090AbfGaM4q (ORCPT ); Wed, 31 Jul 2019 08:56:46 -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 x6VCpUJh016802; Wed, 31 Jul 2019 14:56:27 +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=lcqx0uZw6dlZ+99bC8ZqWM7F55NO2x68BB/LQEBznPQ=; b=fC5Mvih1s6e2NHIa7kpJqYmXDYNq5LPcYDGyWs9UN+KhhqsDI8Oaba0sHyd1pCDeDUPV bhlDGWDGqrtjuFkX3xtVdbkQHvskitO6AZRDm07MIyIewmctAFvNiY3JhcG3qZ/FSgwk Wptqa+Tzqhb8iUz5o9pv5L64GCBFfzQP/v1syJOREnhzsGL3B6qdyW19ikLeHoF9aCOm LTrtlOkhmEYvZxWuWgGpgz867OkHPzWWtaQx6VnP02KFIVStB7BxUbABptMEQSHzDAZW 6z1CxQLaEWqSWYXrZFdw+8+w2CnKuA9GENaeJ+/xDfFHWrAcoq2zsFsUhbXBT6hWowIT KA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2u0bra4m1u-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 31 Jul 2019 14:56:27 +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 168B231; Wed, 31 Jul 2019 12:56:26 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F3F25CB312; Wed, 31 Jul 2019 14:56:25 +0200 (CEST) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 31 Jul 2019 14:56: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; Wed, 31 Jul 2019 14:56:25 +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 v4 0/3] DCMI bridge support Date: Wed, 31 Jul 2019 14:56:20 +0200 Message-ID: <1564577783-18627-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-31_06:,, 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 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