Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp5167986ybh; Wed, 7 Aug 2019 01:49:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQzprd181JjKP7mWzojme415fvwuXUlTzQJuQ39uI4rA/4RgGB0K3NQMTZCoU4RdLPVphP X-Received: by 2002:aa7:9591:: with SMTP id z17mr8273660pfj.215.1565167742360; Wed, 07 Aug 2019 01:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565167742; cv=none; d=google.com; s=arc-20160816; b=yXIVuojBsPfE+vquRa1Mzcn7EdabXznUZ/7bQ4epkeT0DJL7dJSLnj5tYqHsPFVbNY iErMjrNCFQHptOuaw5SWSLwMAfxrowummWd55ZQxD79XG99H5dclLaFncp/x6CzHm0be I0hQ2EO3VrmOahAiqifJqSBDgJ8MvjIV3yzyH4fNvRw3lr2trj1ueTcb7IQRAWyqrkFb b+804ghS2VJy7C2Genh8EiqOS1CGerr+EHCDJKVtBO88wwCBwEjTQgDa0U5xPCmNXyyq DWntPBqM11/m+rL4gPeuxCAYC62jRyVyEa30BPSmTa98PJ8cb87HOBvgDac9XEXcyNS0 stbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NouNxvST4ylVeD1NmJPCVCirboKepJXaVbgieKFbQ8s=; b=IXEshvK3DA9gtZsohi4h/P+UXbQ5ueW9gOwD1o21QJFMUUP07cAo7knhDErWy4EKNP 7mTM70QmMlOczx4huQiyU+sB7p9q2Xgkn3Zp3RDtzcnvaNb7INSChbSU5R3DGxStLca+ xA9jIrcrU6FURkRc17N4uu5mDoQCwhrXY2sdXBPFCd9Ux3wCb7pYeJDB+KlOFqwfSH0Z 6+p+ZNvp6nKXyNKxVt0lD3yh6Z0HIke6GWdgZXp95g5Iy+eqQGXXUnQBatM9j7G3JH4s 0THbrs8jSUGuTd8knAHL+LXciMUPRIBzzrrhGE71lJG1rxIYilGYE0WPijSN1UqGy5jh 4T5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si17341752pjq.60.2019.08.07.01.48.47; Wed, 07 Aug 2019 01:49:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387854AbfHGIrQ (ORCPT + 99 others); Wed, 7 Aug 2019 04:47:16 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:54677 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728726AbfHGIrP (ORCPT ); Wed, 7 Aug 2019 04:47:15 -0400 X-UUID: 641bf1ff151045afb9b53c008c4837f9-20190807 X-UUID: 641bf1ff151045afb9b53c008c4837f9-20190807 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1689623142; Wed, 07 Aug 2019 16:46:54 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 7 Aug 2019 16:46:48 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (172.27.4.253) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 7 Aug 2019 16:46:46 +0800 From: Jitao Shi To: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , , David Airlie , "Matthias Brugger" CC: Jitao Shi , Thierry Reding , Ajay Kumar , Inki Dae , "Rahul Sharma" , Sean Paul , "Vincent Palatin" , Andy Yan , "Philipp Zabel" , Russell King , , , , , , , "Sascha Hauer" , , , , , , Subject: [PATCH v6 0/3] Support mipitx for mt8183 Date: Wed, 7 Aug 2019 16:46:42 +0800 Message-ID: <20190807084645.63738-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24828.001 X-TM-AS-Result: No-6.934100-8.000000-10 X-TMASE-MatchedRID: angWuI+ZklDHO8eAxCOj9iAI8aJmq0jwEypq3q87aEEL9Tj77wy87Pib PPdYWnRM+F2zlPAdpe6A45NLifUOpj3qUaC7D/bC/1dEgwtQ6NBcaNB/u5yQq8z/SxKo9mJ4NHw BAGIh28uVta6x57a42xw8w8GZWTrwoqClLVAxl2VDiyuN5FvFNj+k5IvvZ1N/mvnco5r4a3OjxY yRBa/qJcFwgTvxipFajoczmuoPCq1guV9FslmIPhw7K8UtBQeEp3IVzZN0+VdcN1xZFcfLHXIs9 fkcQeBP X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--6.934100-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24828.001 X-TM-SNTS-SMTP: 64327E99D620C0FC25FBF80F2165C701713A62B3F7AA8C8E730E2B111128E7202000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change since v5: - remove mipi_tx->ref_clk - remove mt8183 pll prepare unprepare Change 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 (3): dt-bindings: display: mediatek: update dsi supported chips drm/mediatek: separate mipi_tx to different file drm/mediatek: add mipi_tx driver for mt8183 .../display/mediatek/mediatek,dsi.txt | 4 +- drivers/gpu/drm/mediatek/Makefile | 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c | 338 ++---------------- drivers/gpu/drm/mediatek/mtk_mipi_tx.h | 49 +++ drivers/gpu/drm/mediatek/mtk_mt8173_mipi_tx.c | 289 +++++++++++++++ drivers/gpu/drm/mediatek/mtk_mt8183_mipi_tx.c | 150 ++++++++ 6 files changed, 515 insertions(+), 317 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 -- 2.21.0