From patchwork Fri Sep 20 09:04:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitao Shi X-Patchwork-Id: 11154089 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A678197C for ; Fri, 20 Sep 2019 09:04:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 421502054F for ; Fri, 20 Sep 2019 09:04:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 421502054F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 517D96FBBB; Fri, 20 Sep 2019 09:04:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailgw02.mediatek.com (unknown [1.203.163.81]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CA9D6FBBB for ; Fri, 20 Sep 2019 09:04:54 +0000 (UTC) X-UUID: 63266cf694af4e0db76126d4cc475171-20190920 X-UUID: 63266cf694af4e0db76126d4cc475171-20190920 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 435764281; Fri, 20 Sep 2019 17:04:47 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 20 Sep 2019 17:04:39 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 20 Sep 2019 17:04:38 +0800 From: Jitao Shi To: CK Hu , David Airlie , Daniel Vetter , Subject: [PATCH v7 0/5] Support mipitx for mt8183 Date: Fri, 20 Sep 2019 17:04:27 +0800 Message-ID: <20190920090432.3308-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24922.005 X-TM-AS-Result: No-7.246900-8.000000-10 X-TMASE-MatchedRID: FtlMm0id6DqKhA2hG2DTqzfu+RTlciXg3I10sp4Pur5UjspoiX02F1cI P2h8KmtmWoORQFltGbfQIxN5t4Wy6qG06k9cn1gVx5sgyUhLCNuiNCtus+nPOlhs8uimgHNCJGZ 0d4KSzVJ7rorDYcwGp6DYSStiU7K3JFTEHHYFNqkD2WXLXdz+ARNWFLeBYxoxjlFfNjQx+AJMEn lUJ0kvxRs/944ZgrxWgDLqnrRlXrZ8nn9tnqel2DsAVzN+Ov/s1wB/JHTYLFjBswPqxB5nQXoGZ l6/B6fpP4ecY9MSVqwi07x2VoFGHQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.246900-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24922.005 X-TM-SNTS-SMTP: E72900222F02D4BCBCAF82A04967990AB9DF57EDCF8207DAC548FF615E30579E2000:8 X-MTK: N X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jitao Shi , srv_heupstream@mediatek.com, stonea168@163.com, cawa.cheng@mediatek.com, sj.huang@mediatek.com, linux-mediatek@lists.infradead.org, Matthias Brugger , yingjoe.chen@mediatek.com, eddie.huang@mediatek.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Changes since v6: - add the mipitx driving control in device tree. - config mipitx impedance with calibration data. Changes since v5: - remove mipi_tx->ref_clk - remove mt8183 pll prepare unprepare Changes since v4: - fine tune the mipi_tx->ref_clk and mipi_tx->pll sequence 1. Prepare mipi_tx->ref_clk 2. Prepare mipi_tx->pll 3. Enable mipi_tx->ref_clk 4. Enable mipi_tx->pll Changes since v3: - turn off PLL before setting PLL parameters. Changes since v2: - update Acked-by: Rob Herring - update mt8183 max bit rate support Changes since v1: - update dt-bindings document for mt8183 mipitx. - remove mtk_mipitx_clk_get_ops and assign clk_ops in probe. - fix the lincence - remove txdiv1 from mtk_mipi_tx_pll_prepare Jitao Shi (5): dt-bindings: display: mediatek: update dsi supported chips drm/mediatek: separate mipi_tx to different file drm/mediatek: add mipi_tx driver for mt8183 drm/mediatek: add the mipitx driving control in device tree drm/mediatek: config mipitx impedance with calibration data .../display/mediatek/mediatek,dsi.txt | 15 +- drivers/gpu/drm/mediatek/Makefile | 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c | 344 ++---------------- drivers/gpu/drm/mediatek/mtk_mipi_tx.h | 51 +++ drivers/gpu/drm/mediatek/mtk_mt8173_mipi_tx.c | 289 +++++++++++++++ drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 220 +++++++++++ 6 files changed, 603 insertions(+), 318 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_mipi_tx.h create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8173_mipi_tx.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c