From patchwork Tue Apr 16 09:30:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stu Hsieh X-Patchwork-Id: 10902563 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 DDC801390 for ; Tue, 16 Apr 2019 09:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2AC6288DC for ; Tue, 16 Apr 2019 09:59:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B632328984; Tue, 16 Apr 2019 09:59:26 +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 67E0A288DC for ; Tue, 16 Apr 2019 09:59:26 +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=h33EBE/gMNvMRh fj4lGlU6hZsY00WUaCn5bUO37YKUAzVf4JIWask/ULeJ48mL1Hv/lRjhtvj3dAjGPsxsGY5DNf10Q jaG3toK853sdgqJ56jO/AO3HbQnGxm5p+YfBHcvl+gw0mPZZ19CY8rW7T2h+siCD/Tb7+aBG7sY+h xtvKVmfzNRCXm2GerF6YBqgM7ZgIdVDEN9TXGJJF8ciC8WR4XOhcTi/cQFwS6Ut6Mm2FZffvaTPS4 EWCwD43wcTQI7upc/4ln2xFfFQc7k9BEyY+VT5P8UGf/vdf99uvtrz3lpUiCXwSQo5zvT968RyPli VoLCCHjr7aVrvbi20YJA==; 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 1hGKs9-0003eS-G6; Tue, 16 Apr 2019 09:59:25 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGKdW-0004By-Q4; Tue, 16 Apr 2019 09:44:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w7y1nWGdSI7VjBCaIfFfPAnavyqXdx96jINcbfS06Q8=; b=HhnBeZM1Cg08weHQ3sV8d/yNOP OXPen1ycMYk4rMLWhezHG0FJ+Hnhr3ZFi7LUtALYHHrNmd5wHmNiy37+tuv6bstYEklSCFTptHGiV odpg4Mx5QgK9iOV6E4M6Ceru6a2oM1vs2jUqj2ylMCBf3Ggi+CFK/HiB2UC0ja+agqcYJB/NE/Q3r F5VNuIf9LUHZ3Im732KDy8/UkVW6Q8OUGjGigJbzIFW4PgpiczpdDn+qX8CFx9iW5X/wdR4T9FzRn XWr5s+STBK1JYQfT85uS+0w6c4vmecV9xCF0emNQUtkYj5cCARKTHuL4UFWnRs3s0GvCrCou/NsX4 yyY3q6Gg==; Received: from mailgw02.mediatek.com ([216.200.240.185]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGKQL-0002lY-8I; Tue, 16 Apr 2019 09:30:43 +0000 X-UUID: a232b56c3f7747b8b3f1b59e7fc3cf91-20190416 X-UUID: a232b56c3f7747b8b3f1b59e7fc3cf91-20190416 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1365828081; Tue, 16 Apr 2019 01:30:20 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 16 Apr 2019 02:30:18 -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, 16 Apr 2019 17:30:17 +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:30:17 +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:30:00 +0800 Message-ID: <1555407015-18130-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-20190416_103041_646620_C1A9BCBC X-CRM114-Status: GOOD ( 14.06 ) 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 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