From patchwork Fri Feb 25 09:53:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WGlubGVpIExlZSAo5p2O5piV56OKKQ==?= X-Patchwork-Id: 12760003 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 2B287C433F5 for ; Fri, 25 Feb 2022 09:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=zIQ7MytSgtiO6K56bkvSpdUdN2oVLLFoX06r/JdE9vY=; b=o3nnF7J+wExaaH X5pv226YUdIFcodpLjlIzulfGOHg4BmEYIyddvREH9QYxwCqEVeoNst6vcqaERRg/9UizDRAeQDOg GnjGWCSJbGntnzThTofXRaneCU5qC+oTIGtX/lQCd4Xe0BWYmBVyKK6IExBMjlZO8iE/Dj6ThwyNj f6CEI8NKO0JrHGKbIFTFs07QC+3egKJ2OQmP8zBGaJlSJ4+vPTwiMMCD7Q06Qx+jfCbdxBbon37wv 0POGBgi4zaSyHJvZ8S8BTHwTKnHFv4n6dyqbrSriNENDxRB07dwH8BHO3Xh0myF7/seL7DH+WHJk7 SNYF/NVcr9/uPX9qo1Iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXIq-004EXc-3C; Fri, 25 Feb 2022 09:54:20 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNXId-004ESP-96; Fri, 25 Feb 2022 09:54:09 +0000 X-UUID: dd3e1042eea146a89458b77539194204-20220225 X-UUID: dd3e1042eea146a89458b77539194204-20220225 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 840029123; Fri, 25 Feb 2022 02:54:00 -0700 Received: from MTKMBS34N1.mediatek.inc (172.27.4.172) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 25 Feb 2022 01:53:58 -0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS34N1.mediatek.inc (172.27.4.172) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 25 Feb 2022 17:53:57 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 25 Feb 2022 17:53:56 +0800 From: To: , , , , CC: , , , , , , , , Xinlei Lee Subject: [PATCH v1,0/3] Add TOPCKGEN control dpi_clk and mt8186 dpi Date: Fri, 25 Feb 2022 17:53:50 +0800 Message-ID: <1645782833-27875-1-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220225_015407_328438_9E1613B9 X-CRM114-Status: UNSURE ( 5.39 ) X-CRM114-Notice: Please train this message. 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 From: Xinlei Lee TOPCKGEN's control of dpi_clk was added in this series because in this patch: http://lists.infradead.org/pipermail/linux-mediatek/2016-May/005281.html Give CCF-controlled TOPCKGEN to dpi driver control, as described below: The dpi0_sel clock should not propagate rate changes to its parent clock so the dpi driver can have full control over PLL and divider. This requires corresponding modifications in dpi_driver. Change-Id: Id5182cc64a71e15f5326a95310c3296967d0693f Xinlei Lee (3): dt-bindings: display: mediatek: dpi: Add compatible for MediaTek MT8186 drm/mediatek: Add TOPCKGEN select mux control dpi_clk drm/mediatek: Add mt8186 dpi compatible to mtk_dpi.c .../display/mediatek/mediatek,dpi.yaml | 1 + drivers/gpu/drm/mediatek/mtk_dpi.c | 49 +++++++++++++++++-- 2 files changed, 46 insertions(+), 4 deletions(-)