From patchwork Sat Jul 9 14:20:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Kuang Hu X-Patchwork-Id: 12912228 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA79FCCA47C for ; Sat, 9 Jul 2022 14:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qiTwgJgmz/a/hc7GAbOXkUgcKNoRb00cI7YRsN2yKfE=; b=n6dRO/+JYqTE34WZCDPtjJJM14 hTsOZRglGyYi5otho2JRlTWNWaL0z2UiTodq7sH5SxbjMpywjhbGT3iZhH6lg1cBGg+YotetEoNE3 U2pcWQMqNyuFQjlDd/fUdZdQsrfecqB+aE5edfW8CZNjudgVKzSIYE6IrHhmMtCusoS1rWAh4JJow e08K/rs/BZswq5z04Ojwe5oTiWmcLJXz9zo+Un9BGbpCJoP59tJS1aRCnkwCks2pgfhxwy0hKfBx+ +Q5fPS8Qb8aaGirRH3tvw3ppIq6c0EINV2544MwOHf5LutQYc43ahvyRsfPkIgQ/SnUjveOis8X8+ NlzJZD6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oABK0-008Edy-D5; Sat, 09 Jul 2022 14:20:36 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oABJx-008Ecp-Lb for linux-mediatek@lists.infradead.org; Sat, 09 Jul 2022 14:20:35 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CA6F060C36; Sat, 9 Jul 2022 14:20:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0C54C3411C; Sat, 9 Jul 2022 14:20:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657376431; bh=6FanLZxvWhgkn3OjODsJfNChI79sSokOiEZwzLd2E9M=; h=From:To:Cc:Subject:Date:From; b=RuSdypsGRIqfxrfoeOoKKMKCjU9d6rfVATZypATfWg9pvrZaznF46ya7su31cfNut HQryr5WpYPss5eft3XlN81yTslVSqeWuw5drb9S6iYeAZ0ls9FGSuaovKRJ2bFf55l jjXKfUQb76q447DsWKNKThS3Kz88gx7DcOiBIpJm8LBazIN8nuGKo9vKrP/Duh3vBf 0pgIGTMqeVwBsZhfLMfxzdBqTfLLUSf80+wqzziULiY1/AvaDS+ev9xZwjhzzbpV5/ 5ASK1YlJAyyu532PiRDdjAelo5zdNwsFM0hFHvsZTzHdfhgnZI3WeGcb+ESWDaGbjk b0n1KPxhf/OHw== From: Chun-Kuang Hu To: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org Cc: Allen-KH Cheng , Bo-Chen Chen , Guillaume Ranquet , Hsin-Yi Wang , Jitao Shi , Markus Schneider-Pargmann , "Nancy . Lin" , Xinlei Lee , "jason-jh . lin" Subject: [GIT PULL] mediatek drm next for 5.20 Date: Sat, 9 Jul 2022 22:20:21 +0800 Message-Id: <20220709142021.24260-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220709_072033_830053_59E2BF8B X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Hi, Dave & Daniel: This includes: 1. Add Mediatek Soc DRM (vdosys0) support for mt8195 2. Cooperate with DSI RX devices to modify dsi funcs and delay mipi high to cooperate with panel sequence 3. Add mt8186 dsi compatible and convert dsi_dtbinding to .yaml 4. Add MediaTek SoC DRM (vdosys1) support for mt8195 5. Add MT8195 dp_intf driver Regards, Chun-Kuang. The following changes since commit f2906aa863381afb0015a9eb7fefad885d4e5a56: Linux 5.19-rc1 (2022-06-05 17:18:54 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git tags/mediatek-drm-next-5.20 for you to fetch changes up to d86c1568910e7079e6ceb875d653e44293409194: drm/mediatek: dpi: Add dp_intf support (2022-07-06 22:51:44 +0800) ---------------------------------------------------------------- Mediatek DRM Next for Linux 5.20 1. Add Mediatek Soc DRM (vdosys0) support for mt8195 2. Cooperate with DSI RX devices to modify dsi funcs and delay mipi high to cooperate with panel sequence 3. Add mt8186 dsi compatible and convert dsi_dtbinding to .yaml 4. Add MediaTek SoC DRM (vdosys1) support for mt8195 5. Add MT8195 dp_intf driver ---------------------------------------------------------------- Allen-KH Cheng (1): drm/mediatek: Remove mt8192 display rdma compatible Bo-Chen Chen (8): dt-bindings: display: mediatek: dpi: Revise mediatek strings to correct format drm/mediatek: dpi: Add kernel document for struct mtk_dpi_conf drm/mediatek: dpi: Remove output format of YUV drm/mediatek: dpi: Add support for quantization range drm/mediatek: dpi: Add YUV422 output support drm/mediatek: dpi: Add config to support direct connection to dpi panels drm/mediatek: dpi: Add input_2pixel config support drm/mediatek: dpi: Add pixels_per_iter config support Guillaume Ranquet (9): drm/mediatek: dpi: Only enable dpi after the bridge is enabled drm/mediatek: dpi: Implement a CK/DE pol toggle in SoC config drm/mediatek: dpi: Implement a swap_input toggle in SoC config drm/mediatek: dpi: Move dimension mask to SoC config drm/mediatek: dpi: Move hvsize_mask to SoC config drm/mediatek: dpi: Move swap_shift to SoC config drm/mediatek: dpi: Move the yuv422_en_bit to SoC config drm/mediatek: dpi: Move the csc_enable bit to SoC config drm/mediatek: dpi: Add dp_intf support Hsin-Yi Wang (1): drm/mediatek: Ensure bridge disable happends before suspend Jitao Shi (2): drm/mediatek: Separate poweron/poweroff from enable/disable and define new funcs drm/mediatek: Keep dsi as LP00 before dcs cmds transfer Markus Schneider-Pargmann (1): dt-bindings: display: mediatek: dpi: Add DP_INTF compatible Nancy.Lin (7): dt-bindings: display: mediatek: add vdosys1 RDMA definition for mt8195 drm/mediatek: Add display MDP RDMA support for MT8195 drm/mediatek: Add display merge advance config API for MT8195 drm/mediatek: Add display merge start/stop API for cmdq support drm/mediatek: Add display merge mute/unmute support for MT8195 drm/mediatek: Add display merge async reset control drm/mediatek: Add mediatek-drm plane color encoding info Rex-BC Chen (1): drm/mediatek: Add MT8186 DSI compatible for mtk_drm_drv.c Xinlei Lee (5): drm/mediatek: Modify dsi funcs to atomic operations drm/mediatek: Add pull-down MIPI operation in mtk_dsi_poweroff function dt-bindings: display: mediatek: dsi: Convert dsi_dtbinding to .yaml dt-bindings: display: mediatek: dsi: Add compatible for MediaTek MT8186 drm/mediatek: Add mt8186 dsi compatible to mtk_dsi.c jason-jh.lin (4): drm/mediatek: Add DSC support for mediatek-drm drm/mediatek: Add MERGE support for mediatek-drm drm/mediatek: Add mediatek-drm of vdosys0 support for mt8195 drm/mediatek: Add suffix 0 to DDP_COMPONENT_DITHER for mt8195 vdosys0 .../bindings/display/mediatek/mediatek,dpi.yaml | 11 +- .../bindings/display/mediatek/mediatek,dsi.txt | 62 ---- .../bindings/display/mediatek/mediatek,dsi.yaml | 116 ++++++++ .../display/mediatek/mediatek,mdp-rdma.yaml | 88 ++++++ drivers/gpu/drm/mediatek/Makefile | 4 +- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 20 ++ drivers/gpu/drm/mediatek/mtk_disp_merge.c | 320 +++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 8 +- drivers/gpu/drm/mediatek/mtk_dpi.c | 259 +++++++++++++---- drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 18 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 69 ++++- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 3 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 184 ++++++++++-- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 8 + drivers/gpu/drm/mediatek/mtk_drm_plane.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_plane.h | 1 + drivers/gpu/drm/mediatek/mtk_dsi.c | 101 +++++-- drivers/gpu/drm/mediatek/mtk_mdp_rdma.c | 315 ++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_mdp_rdma.h | 20 ++ 19 files changed, 1422 insertions(+), 186 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.txt create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mdp-rdma.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_merge.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mdp_rdma.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mdp_rdma.h