From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4520C00449 for ; Wed, 3 Oct 2018 04:54:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 916B82082A for ; Wed, 3 Oct 2018 04:54:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 916B82082A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726712AbeJCLlS (ORCPT ); Wed, 3 Oct 2018 07:41:18 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:10609 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726533AbeJCLlR (ORCPT ); Wed, 3 Oct 2018 07:41:17 -0400 X-UUID: a6e58a9408fa42c280fa6fcc81643914-20181003 X-UUID: a6e58a9408fa42c280fa6fcc81643914-20181003 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 686744991; Wed, 03 Oct 2018 12:54:22 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 3 Oct 2018 12:54:18 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 3 Oct 2018 12:54:19 +0800 Message-ID: <1538542459.14795.2.camel@mtksdaap41> Subject: Re: [PATCH v5 00/11] drm/mediatek: support hdmi output for mt2701 and mt7623 From: CK Hu To: Bibby Hsieh CC: David Airlie , Matthias Brugger , Daniel Vetter , , , Yingjoe Chen , Cawa Cheng , Daniel Kurtz , "Philipp Zabel" , YT Shen , "Thierry Reding" , Mao Huang , , , "Sascha Hauer" Date: Wed, 3 Oct 2018 12:54:19 +0800 In-Reply-To: <20181003034151.31452-1-bibby.hsieh@mediatek.com> References: <20181003034151.31452-1-bibby.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 941D813853F400CF1DF50B539F6CA519D43881083CE9A351B759EFE1211D64D52000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bibby: Applied to mediatek-drm-next-4.20 [1], thanks. [1] https://github.com/ckhu-mediatek/linux.git-tags/commits/mediatek-drm-next-4.20 Regards, CK On Wed, 2018-10-03 at 11:41 +0800, Bibby Hsieh wrote: > In order to support HDMI on mt2701, > we have to make some modifications. > 1) Add the HDMI driver. > 2) Add the DPI driver. > 3) Add a mechanism that config output component by dts. > > Change since v4: > - move some change from patch9 to patch7 > > Change since v3: > - Remove drm/mediatek: config component output by device node port > patch, we will push another patches to flexibly config the component output. > - fixup the return value > - replace dpi->power_ctl and power_sta with reference count mechanism. > - move the common function to mtk_hdmi_phy.c/h > > Changes since v2: > - Fix the typo in commit message. > - Remove const of reg_h_fre_con in the mtk_dpi_conf struct > - Remove unused error log > - Use lower casee for hex number > - Use common API which defined in mtk_hdmi_phy.c to reduce code size > - Implemet the enable/disable of phy_pll_ops the same as 8173 > - Move the common header to mtk_hdmi_phy.h > - Remove the including of debugfs.h > NOTE: > - add description about thecoponent output in the binding document in v4. > > Changes since v1: > - Separate some patches to independent patch. > - add DISP_REG_CONFIG_DSI_SEL and DISP_REG_CONFIG_DPI_SEL > configuration in the condition of BLS&DPI0 connection. > > Changes since v0: > - Correct some typos in commit message. > - Fixup the build warning (tmp variable didn't be initialized) > > Bibby Hsieh (2): > drm/mediatek: implement connection from BLS to DPI0 > drm/mediatek: add a error return value when clock driver has been > prepared > > chunhui dai (9): > drm/mediatek: add refcount for DPI power on/off > drm/mediatek: move hardware register to node data > drm/mediatek: adjust EDGE to match clock and data > drm/mediatek: add clock factor for different IC > drm/mediatek: convert dpi driver to use drm_of_find_panel_or_bridge > drm/mediatek: add dpi driver for mt2701 and mt7623 > drm/mediatek: separate hdmi phy to different file > drm/mediatek: add support for SPDIF audio in HDMI > drm/mediatek: add hdmi driver for MT2701 and MT7623 > > drivers/gpu/drm/mediatek/Makefile | 5 +- > drivers/gpu/drm/mediatek/mtk_dpi.c | 131 ++++++++------ > drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 14 +- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 2 +- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 + > drivers/gpu/drm/mediatek/mtk_hdmi.c | 15 +- > drivers/gpu/drm/mediatek/mtk_hdmi.h | 2 +- > drivers/gpu/drm/mediatek/mtk_hdmi_phy.c | 235 +++++++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_hdmi_phy.h | 60 +++++++ > drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 212 ++++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 226 +----------------------- > 12 files changed, 627 insertions(+), 279 deletions(-) > create mode 100644 drivers/gpu/drm/mediatek/mtk_hdmi_phy.c > create mode 100644 drivers/gpu/drm/mediatek/mtk_hdmi_phy.h > create mode 100644 drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c >