Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5139832img; Wed, 27 Mar 2019 02:57:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH0deTz0YrHv9+ah0Gw6Q3T/oBc/T3pywRVK9yZOjgswDjvaS5bqIMkoyjDdHZol2C5/8Q X-Received: by 2002:a65:5b44:: with SMTP id y4mr16187408pgr.446.1553680643096; Wed, 27 Mar 2019 02:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553680643; cv=none; d=google.com; s=arc-20160816; b=dgfcNRgapOWOL34xtRkrvlXhrtYNnQE8uLWtK33iocggh09wWgSyNkSRTZtW1GmSbJ 9j6lOof62bZQ8MYXx2NOprDolTYJwNNPJqW4fpU4kddROycFQjTTAmxAB0aYJPC4+rzO vbf1lbQA5WGDjBiuJBAjcsojoASgKuQ539O50oHC3etZNXtJqn2dvwaiRPJlaHIRK3K+ BHKdgXUH70SFw8P6AD6yJZY2Dsu2xHVgBX25GIFGDWSVudk1XfmTRrt/YM0gTGjsoTrS LBWYZnc1pGESf3qfVTGogEnmo4hqxznyaIeO2dYBj7/z+TotTSJ3hW6IrLSP+ALS7CUf psrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=F++eFZ9qmk/qdZ4Fk2XwlOuHB/+IJi9wwZWp/K4tbRs=; b=oAHr8xgNQY079El7Q4rZXLOZeQHeJ9b0UFTVEMHjlaD2m8r+1KzrUKyuqBXcQGlyct Yi3SWQvjnHu2wM3k6HMLNJ8q6aCUvUCiq6GezL2QLHvv47EMCjrBwpY66dogf73iQcGb mQxD+fcgOdpGHChYjWS0x3JoGH47/uQhVdBpnUKpjLyOiXGzUdhduPlxdvMBucgm90GW 6/SHfO9PzQ0UReNQ3gtd4YleC6TGX+5EXOy+uOIerRspJ1SuAueQrIlNQjXT3neoXLxB l0h3clfENiwXgonXiP8yPv88bkQCrPQ9oMJGGwxreutTVQbJrgGY7UjETwOoGqB6TTEa prVg== ARC-Authentication-Results: i=1; mx.google.com; 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 b4si17574362pgq.50.2019.03.27.02.57.07; Wed, 27 Mar 2019 02:57: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; 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 S1733002AbfC0J40 (ORCPT + 99 others); Wed, 27 Mar 2019 05:56:26 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:23549 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731668AbfC0J4Z (ORCPT ); Wed, 27 Mar 2019 05:56:25 -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 x2R9tX2W018808; Wed, 27 Mar 2019 10:55:58 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rddhtfmp3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 27 Mar 2019 10:55:58 +0100 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 52CE531; Wed, 27 Mar 2019 09:55:56 +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 0B8082D34; Wed, 27 Mar 2019 09:55:56 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.44) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 27 Mar 2019 10:55:56 +0100 Received: from localhost (10.129.172.100) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 27 Mar 2019 10:55:55 +0100 From: Mickael Guene To: CC: , Mickael Guene , "Mauro Carvalho Chehab" , Matt Ranostay , Alan Chiang , , Akinobu Mita , , "David S. Miller" , Ricardo Ribalda Delgado , Nicolas Ferre , Rob Herring , Sakari Ailus , Greg Kroah-Hartman , Hans Verkuil , Mark Rutland , Jason Chen , Jacopo Mondi , Tianshu Qiu , Bingbu Cao Subject: [PATCH v4 0/2] Add support for MIPID02 CSI-2 to PARALLEL bridge I2C device Date: Wed, 27 Mar 2019 10:55:42 +0100 Message-ID: <1553680545-73278-1-git-send-email-mickael.guene@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552373045-134493-1-git-send-email-mickael.guene@st.com> References: <1552373045-134493-1-git-send-email-mickael.guene@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.129.172.100] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-27_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the v4 of my MIPID02 series which introduces support of STMicroelectronics MIPID02 CSI-2 to PARALLEL I2C bridge. It allows using a CSI-2 sensor with a PARALLEL interface. Current driver implementation doesn't support CSI-2 second input port usage. It doesn't support also YUV420, RGB565 and RGB444 input formats. Thanks to Sakari for review. Changes in v4: - Fix and clarify endpoints properties documentation - Add support of enum_mbus_code - Only use V4L2_CID_PIXEL_RATE to compute link speed - Use MEDIA_BUS_FMT_UYVY8_1X16 instead of MEDIA_BUS_FMT_UYVY8_2X8 for CSI-2 link - Fix miscellaneous typos - Fix wrong code behavior for set_fmt and get_fmt Changes in v3: - Fix potential wrong error code for mipid02_stream_disable and mipid02_stream_enable - Remove useless memset for ep in mipid02_parse_rx_ep and mipid02_parse_tx_ep - Add second CSI-2 input pad even if it's not yet supported - Add support of get_fmt, set_fmt and link_validate and only access subdev connected to mipid02 Changes in v2: - Add precision about first CSI-2 port data rate - Document endpoints supported properties - Rename 'mipid02@14' into generic 'csi2rx@14' in example - Merge MAINTAINERS patch 3 into patch 1 and 2 - Fix line too long in Kconfig - Add missing delay after reset release - Various style fixes - Fix mipid02_stream_enable returning no error when mipid02_find_sensor failed Mickael Guene (2): dt-bindings: Document MIPID02 bindings media:st-mipid02: MIPID02 CSI-2 to PARALLEL bridge driver .../bindings/media/i2c/st,st-mipid02.txt | 82 ++ MAINTAINERS | 8 + drivers/media/i2c/Kconfig | 14 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/st-mipid02.c | 1043 ++++++++++++++++++++ 5 files changed, 1148 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/st,st-mipid02.txt create mode 100644 drivers/media/i2c/st-mipid02.c -- 2.7.4