From patchwork Tue May 14 06:13:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stu Hsieh X-Patchwork-Id: 10942279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2C7D76 for ; Tue, 14 May 2019 06:15:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0E742846C for ; Tue, 14 May 2019 06:15:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D53282855A; Tue, 14 May 2019 06:15:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8FD162846C for ; Tue, 14 May 2019 06:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FYUslrC3njf0SPAElKBlZzk9kTbszqNKCgbmwcnAZ3c=; b=peVUk8RybXqVk6 Vci7NeuFrpwqjB38VErfG6/+NsB3y39qT8Zjmhl98QA8GhMlrjXMNCYB7vsN+EMPXlqRBdKrCDnQ6 W+sfb1lm4xgE/UPUw4cBaiGOqWrL72q+EYssSptmKiSuMzdoZXxbInutNw05rC5mOrBDP0qcgqhfY mcsSIypQuch2fu331SFxK25XyZjTWpwXNHyil7gNvL8Mh8L84dDMxYzH/pWECE/l0BthXqsLFA5jL 5JH/lDo3iy1ZTmDqwJElmx8CVbUJsEnCsR26hPrHOj0Sf7aCeykj58SlijUESAOWTWomSu6LrcX5A gNCeGWGOqUX+qlNqLVrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQQiZ-0001SL-2p; Tue, 14 May 2019 06:15:15 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQQhS-0007QT-Ul; Tue, 14 May 2019 06:14:09 +0000 X-UUID: aae0bb3a8912417ab4c2f127732f775b-20190513 X-UUID: aae0bb3a8912417ab4c2f127732f775b-20190513 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1462923274; Mon, 13 May 2019 22:14:02 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 13 May 2019 23:14:01 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 14 May 2019 14:13:53 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 14 May 2019 14:13:53 +0800 From: Stu Hsieh To: Mauro Carvalho Chehab , Rob Herring , CK Hu Subject: [PATCH v3 00/13] Add mediatek mipicsi driver for Mediatek SOC MT2712 Date: Tue, 14 May 2019 14:13:37 +0800 Message-ID: <1557814430-9675-1-git-send-email-stu.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190513_231406_995002_15C3448A X-CRM114-Status: GOOD ( 12.25 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Stu Hsieh , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add mediatek mipicsi driver for Mediatek SOC MT2712 Change in v3: - Move register setting to the bottom of this patch series and merge the patch "[media] mtk-mipicsi: add pm function" to "[media] mtk-mipicsi: add mediatek mipicsi driver for mt2712" - Remove the patch "[media] mtk-mipicsi: add the function for Get/Set PARM for application" - Add max width/heigh condition in patch "[media] mtk-mipicsi: get the w/h/bytepwerline for mtk_mipicsi" - Rename the patch name from "[media] mtk-mipicsi: add mediatek mipicsi driver for mt2712" to "[media] mtk-mipicsi: add the check for non-supported color format" Stu Hsieh (13): dt-bindings: media: Add binding for MT2712 MIPI-CSI2 [media] mtk-mipicsi: add mediatek mipicsi driver for mt2712 [media] mtk-mipicsi: register the soc_camera host [media] mtk-mipicsi: add the check for non-supported color format [media] mtk-mipicsi: get the w/h/bytepwerline for mtk_mipicsi [media] mtk-mipicsi: add function to support SerDes for link number [media] mtk-mipicsi: enable/disable ana clk [media] mtk-mipicsi: enable/disable cmos for mt2712 [media] mtk-mipicsi: add ISR for writing the data to buffer [media] mtk-mipicsi: set the output address in HW reg [media] mtk-mipicsi: add function to get the format [media] mtk-mipicsi: add debug message for mipicsi driver [media] mtk-mipicsi: add debugfs for mipicsi driver .../bindings/media/mediatek-mipicsi-camsv.txt | 53 + .../media/mediatek-mipicsi-common.txt | 19 + .../bindings/media/mediatek-mipicsi.txt | 54 + drivers/media/platform/mtk-mipicsi/Makefile | 4 + .../media/platform/mtk-mipicsi/mtk_mipicsi.c | 1627 +++++++++++++++++ 5 files changed, 1757 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek-mipicsi-camsv.txt create mode 100644 Documentation/devicetree/bindings/media/mediatek-mipicsi-common.txt create mode 100644 Documentation/devicetree/bindings/media/mediatek-mipicsi.txt create mode 100644 drivers/media/platform/mtk-mipicsi/Makefile create mode 100644 drivers/media/platform/mtk-mipicsi/mtk_mipicsi.c