From patchwork Fri Mar 8 05:49:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daoyuan Huang X-Patchwork-Id: 10844211 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 829761515 for ; Fri, 8 Mar 2019 05:50:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A5882E05E for ; Fri, 8 Mar 2019 05:50:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 483B32E068; Fri, 8 Mar 2019 05:50:12 +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 A3A842E05E for ; Fri, 8 Mar 2019 05:50:11 +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=agPponBl/pLeK2+jUP38g5lLoZBD/nYAOIR0N0tpL0g=; b=QwLpfZgnusY7VO 1YALsTxJ9JN8qVwE74BSF8reB7e2c6066S49Il5ElyM5a0rLLcv49Krk2HTUFDU6QIxOMDv2Zp615 WprAW8WRZhuHWk+e5sHaMaRWwkwc60EgS3b06y49+5uqVpCRN7wjy8Cldz6qspLaYwcxIKosKz2S3 xjsEudjMYBl3yyKiFT6nIi1ksxYVMxo94T0VqGii53ZGTGbSfuzNzOXBjPP0cfN0gOCep7Dl5FPfK iPq9h7b1XFUnjiyNC8aq1RmZYgXvzGIejYbcrH6tKyRw/JVavZX6H72G7cfTIMD53EjrUVSU52aPz bsfcXJgr78ocZk7y713w==; 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 1h28OX-00037q-Kg; Fri, 08 Mar 2019 05:50:09 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h28OR-0001z5-SV; Fri, 08 Mar 2019 05:50:06 +0000 X-UUID: 0226f326cc444ae9b7aa9d53aabf1a90-20190307 X-UUID: 0226f326cc444ae9b7aa9d53aabf1a90-20190307 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 168379717; Thu, 07 Mar 2019 21:49:58 -0800 Received: from mtkmbs03n1.mediatek.inc (172.21.101.181) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 7 Mar 2019 21:49:57 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 8 Mar 2019 13:49:55 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 8 Mar 2019 13:49:55 +0800 From: Daoyuan Huang To: , , , , Subject: [RFC v1 0/4] media: mediatek: support mdp3 on mt8183 platform Date: Fri, 8 Mar 2019 13:49:16 +0800 Message-ID: <1552024160-33055-1-git-send-email-daoyuan.huang@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-20190307_215003_940787_DB75F0E6 X-CRM114-Status: UNSURE ( 7.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Sean.Cheng@mediatek.com, Rynn.Wu@mediatek.com, srv_heupstream@mediatek.com, daoyuan huang , holmes.chiou@mediatek.com, Jerry-ch.Chen@mediatek.com, jungo.lin@mediatek.com, sj.huang@mediatek.com, yuzhao@chromium.org, linux-mediatek@lists.infradead.org, ping-hsun.wu@mediatek.com, zwisler@chromium.org, christie.yu@mediatek.com, frederic.chen@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: daoyuan huang This is the first version of RFC patch for Media Data Path 3 (MDP3), MDP3 is used for scaling and color format conversion. support using GCE to write register in critical time limitation. support V4L2 m2m device control. --- Based on v5.0-rc1 and these series: device tree: http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017570.html clock control: http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017320.html system control processor (SCP): http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017774.html global command engine (GCE): http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017143.html --- daoyuan huang (4): dt-binding: mt8183: Add Mediatek MDP3 dt-bindings dts: arm64: mt8183: Add Mediatek MDP3 nodes media: platform: Add Mediatek MDP3 driver KConfig media: platform: mtk-mdp3: Add Mediatek MDP3 driver .../bindings/media/mediatek,mt8183-mdp3.txt | 217 ++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 109 ++ drivers/media/platform/Kconfig | 18 + drivers/media/platform/Makefile | 2 + drivers/media/platform/mtk-mdp3/Makefile | 9 + drivers/media/platform/mtk-mdp3/isp_reg.h | 38 + drivers/media/platform/mtk-mdp3/mdp-platform.h | 67 ++ drivers/media/platform/mtk-mdp3/mdp_reg_ccorr.h | 76 ++ drivers/media/platform/mtk-mdp3/mdp_reg_rdma.h | 207 ++++ drivers/media/platform/mtk-mdp3/mdp_reg_rsz.h | 110 ++ drivers/media/platform/mtk-mdp3/mdp_reg_wdma.h | 126 +++ drivers/media/platform/mtk-mdp3/mdp_reg_wrot.h | 116 ++ drivers/media/platform/mtk-mdp3/mmsys_config.h | 189 ++++ drivers/media/platform/mtk-mdp3/mmsys_mutex.h | 36 + drivers/media/platform/mtk-mdp3/mmsys_reg_base.h | 39 + drivers/media/platform/mtk-mdp3/mtk-img-ipi.h | 272 +++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-cmdq.c | 407 +++++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-cmdq.h | 52 + drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c | 1180 ++++++++++++++++++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.h | 176 +++ drivers/media/platform/mtk-mdp3/mtk-mdp3-core.c | 257 +++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-core.h | 89 ++ drivers/media/platform/mtk-mdp3/mtk-mdp3-m2m.c | 784 +++++++++++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-m2m.h | 52 + drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c | 778 +++++++++++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.h | 382 +++++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-vpu.c | 277 +++++ drivers/media/platform/mtk-mdp3/mtk-mdp3-vpu.h | 90 ++ 28 files changed, 6155 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,mt8183-mdp3.txt create mode 100644 drivers/media/platform/mtk-mdp3/Makefile create mode 100644 drivers/media/platform/mtk-mdp3/isp_reg.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp-platform.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp_reg_ccorr.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp_reg_rdma.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp_reg_rsz.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp_reg_wdma.h create mode 100644 drivers/media/platform/mtk-mdp3/mdp_reg_wrot.h create mode 100644 drivers/media/platform/mtk-mdp3/mmsys_config.h create mode 100644 drivers/media/platform/mtk-mdp3/mmsys_mutex.h create mode 100644 drivers/media/platform/mtk-mdp3/mmsys_reg_base.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-img-ipi.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-cmdq.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-cmdq.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-core.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-core.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-m2m.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-m2m.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-regs.h create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-vpu.c create mode 100644 drivers/media/platform/mtk-mdp3/mtk-mdp3-vpu.h