From patchwork Tue Apr 16 09:27:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stu Hsieh X-Patchwork-Id: 10902507 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 905011390 for ; Tue, 16 Apr 2019 09:44:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 708D0285E2 for ; Tue, 16 Apr 2019 09:44:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 646CC28614; Tue, 16 Apr 2019 09:44:51 +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=ham 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 15A7A285E2 for ; Tue, 16 Apr 2019 09:44:51 +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=E09Bw5N/aOESSHSfKJMciaFmz28tz/T2LgBJy2Tuzl8=; b=YRb/SEsy4wyufX awi5P0MoSMY1gMec5LxEx6Erm6sbOD5Kefd/BKAU5/vVz5feGUGv0MZfvcQju8Cy8YAIyGtETXV7K vvZ/yxzaVr9jSlCrgAHE0OieTZJU6s746C4aFXhgV6Lm4RSRce+32XlvKdwBFDm1rJdUiH3uppEhy We1m0Nbc2ehwhU4LbrNwXGCRDWsgJdsKL8nL3v621YM3zqcZdd28L+d2vL86zSlHodf0UbFnd/GbC s2lqtraQD6Za2FrJ71Di0CdaXaA9v6VbgZrVlT+73tQkpWEM0i25cIAXN7WOidTqv7SwIehn/lfpM ZB2zS26oXFXwzd/+cm/A==; 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 1hGKe1-0005HK-At; Tue, 16 Apr 2019 09:44:49 +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 1hGKNu-0001HF-8u; Tue, 16 Apr 2019 09:28:16 +0000 X-UUID: 05c318e3c019471f83e008b3855f72e0-20190416 X-UUID: 05c318e3c019471f83e008b3855f72e0-20190416 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 2067261963; Tue, 16 Apr 2019 01:28:02 -0800 Received: from MTKMBS01N2.mediatek.inc (172.21.101.79) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 02:28:01 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 17:27:46 +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, 16 Apr 2019 17:27:46 +0800 From: Stu Hsieh To: Mauro Carvalho Chehab , Rob Herring , CK Hu Subject: [PATCH v2 00/15] Add mediatek mipicsi driver for Mediatek SOC MT2712 Date: Tue, 16 Apr 2019 17:27:28 +0800 Message-ID: <1555406863-18069-1-git-send-email-stu.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: 805393A14045F2617856A5F8F8516F8511D55088F052C0F85FFAA0CFA9C41AE22000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_022810_821740_EC831C33 X-CRM114-Status: GOOD ( 10.88 ) 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, wsd_upstream@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 v2: - Add the dt-binding document for mediatek mipicsi driver - Modify the logic about "is_support" function in patch "[media] mtk-mipicsi: add color format support for mt2712" Stu Hsieh (15): dt-bindings: media: Add binding for MT2712 MIPI-CSI2 [media] mtk-mipicsi: add mediatek mipicsi driver for mt2712 [media] mtk-mipicsi: add pm function [media] mtk-mipicsi: add color format support for mt2712 [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: add mipicsi reg setting for mt2712 [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 the function for Get/Set PARM for application [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 | 1686 +++++++++++++++++ 5 files changed, 1816 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