From patchwork Tue Sep 14 02:16:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Jie Chen X-Patchwork-Id: 12491319 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=unavailable 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 B849EC433EF for ; Tue, 14 Sep 2021 02:27:34 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6E49C60F44 for ; Tue, 14 Sep 2021 02:27:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6E49C60F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=inqSpVBaIQVEqhjb+GZLhG7ph5Qlqs3+gYpcwTqW7RM=; b=a+a/6ZMow526E1 5ObfYFDA2BGFlh5Zxpn5aeu2yfiO8tm23RI2+HqHLbx0H2QeKsQD4AHKqz/5ucMzuvvPjCbIF0wen CEECDUYtHVK9l7tb/r7JRa7TEF6uqVI9VRszQY/6JoXoxJowCOtgjfZdZi9JBUCMtmXiZXoN2hgCs IS4NpG/jA6WmmufmS624yfZHPRZUjvf+YavJeftvcrtM2oH7cXleDCQydR3gt//0dhMuNivb9BVB9 DWsYOIg/6R3cZLOi/BKvd5FkKJqLoqxYkKKgp1ZXFXy6iQRf1LojEwc6+pj0Fts5pAogV57vXV8f8 wvlZ9TiDuBtihW9l5+uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPyAN-003qs0-2c; Tue, 14 Sep 2021 02:27:23 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPy9u-003qfZ-Ry; Tue, 14 Sep 2021 02:26:56 +0000 X-UUID: 24d325e06cc94f3989c41ece708dac46-20210913 X-UUID: 24d325e06cc94f3989c41ece708dac46-20210913 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1060829031; Mon, 13 Sep 2021 19:26:47 -0700 Received: from mtkmbs07n1.mediatek.inc (172.21.101.16) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Sep 2021 19:16:45 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Sep 2021 10:16:43 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 14 Sep 2021 10:16:43 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , Subject: [v3 00/24] Mediatek MT8195 clock support Date: Tue, 14 Sep 2021 10:16:09 +0800 Message-ID: <20210914021633.26377-1-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_192654_932844_035429A2 X-CRM114-Status: GOOD ( 15.48 ) 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 this patch series is based on 5.15-rc1. changes since v2: - fix line wrap in Makefile - update commit message in vdosys clock provider - refine description of special clock - refine kconfig - merge CLK_OF_DECLARE_DRIVER to builtin_platform_driver (topck) changes since v1: - fix resource leak if error condition happens - refine clock name to match datasheet - remove redundant data in mux parent source - seperate clock driver based on IP architecture - change to dual licence - refine dt-binding file - remove audio clock driver (handled in [4]) - integrate vdosys0 and vdosys1 clock registration with mmsys in [2] and [3] [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=521127 [2] https://patchwork.kernel.org/project/linux-mediatek/list/?series=531695 [3] https://patchwork.kernel.org/project/linux-mediatek/list/?series=519617 [4] https://patchwork.kernel.org/project/linux-mediatek/list/?series=528369 Chun-Jie Chen (24): dt-bindings: ARM: Mediatek: Add new document bindings of MT8195 clock clk: mediatek: Add dt-bindings of MT8195 clocks clk: mediatek: Fix corner case of tuner_en_reg clk: mediatek: Add API for clock resource recycle clk: mediatek: Fix resource leak in mtk_clk_simple_probe clk: mediatek: Add MT8195 apmixedsys clock support clk: mediatek: Add MT8195 topckgen clock support clk: mediatek: Add MT8195 peripheral clock support clk: mediatek: Add MT8195 infrastructure clock support clk: mediatek: Add MT8195 camsys clock support clk: mediatek: Add MT8195 ccusys clock support clk: mediatek: Add MT8195 imgsys clock support clk: mediatek: Add MT8195 ipesys clock support clk: mediatek: Add MT8195 mfgcfg clock support clk: mediatek: Add MT8195 scp adsp clock support clk: mediatek: Add MT8195 vdecsys clock support clk: mediatek: Add MT8195 vdosys0 clock support clk: mediatek: Add MT8195 vdosys1 clock support clk: mediatek: Add MT8195 vencsys clock support clk: mediatek: Add MT8195 vppsys0 clock support clk: mediatek: Add MT8195 vppsys1 clock support clk: mediatek: Add MT8195 wpesys clock support clk: mediatek: Add MT8195 imp i2c wrapper clock support clk: mediatek: Add MT8195 apusys clock support .../arm/mediatek/mediatek,mt8195-clock.yaml | 254 ++++ .../mediatek/mediatek,mt8195-sys-clock.yaml | 73 + drivers/clk/mediatek/Kconfig | 8 + drivers/clk/mediatek/Makefile | 8 + drivers/clk/mediatek/clk-mt8195-apmixedsys.c | 145 ++ drivers/clk/mediatek/clk-mt8195-apusys_pll.c | 92 ++ drivers/clk/mediatek/clk-mt8195-cam.c | 142 ++ drivers/clk/mediatek/clk-mt8195-ccu.c | 50 + drivers/clk/mediatek/clk-mt8195-img.c | 96 ++ .../clk/mediatek/clk-mt8195-imp_iic_wrap.c | 68 + drivers/clk/mediatek/clk-mt8195-infra_ao.c | 206 +++ drivers/clk/mediatek/clk-mt8195-ipe.c | 51 + drivers/clk/mediatek/clk-mt8195-mfg.c | 47 + drivers/clk/mediatek/clk-mt8195-peri_ao.c | 62 + drivers/clk/mediatek/clk-mt8195-scp_adsp.c | 47 + drivers/clk/mediatek/clk-mt8195-topckgen.c | 1273 +++++++++++++++++ drivers/clk/mediatek/clk-mt8195-vdec.c | 104 ++ drivers/clk/mediatek/clk-mt8195-vdo0.c | 123 ++ drivers/clk/mediatek/clk-mt8195-vdo1.c | 140 ++ drivers/clk/mediatek/clk-mt8195-venc.c | 69 + drivers/clk/mediatek/clk-mt8195-vpp0.c | 110 ++ drivers/clk/mediatek/clk-mt8195-vpp1.c | 108 ++ drivers/clk/mediatek/clk-mt8195-wpe.c | 143 ++ drivers/clk/mediatek/clk-mtk.c | 21 +- drivers/clk/mediatek/clk-mtk.h | 1 + drivers/clk/mediatek/clk-pll.c | 2 +- include/dt-bindings/clock/mt8195-clk.h | 864 +++++++++++ 27 files changed, 4304 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-clock.yaml create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8195-sys-clock.yaml create mode 100644 drivers/clk/mediatek/clk-mt8195-apmixedsys.c create mode 100644 drivers/clk/mediatek/clk-mt8195-apusys_pll.c create mode 100644 drivers/clk/mediatek/clk-mt8195-cam.c create mode 100644 drivers/clk/mediatek/clk-mt8195-ccu.c create mode 100644 drivers/clk/mediatek/clk-mt8195-img.c create mode 100644 drivers/clk/mediatek/clk-mt8195-imp_iic_wrap.c create mode 100644 drivers/clk/mediatek/clk-mt8195-infra_ao.c create mode 100644 drivers/clk/mediatek/clk-mt8195-ipe.c create mode 100644 drivers/clk/mediatek/clk-mt8195-mfg.c create mode 100644 drivers/clk/mediatek/clk-mt8195-peri_ao.c create mode 100644 drivers/clk/mediatek/clk-mt8195-scp_adsp.c create mode 100644 drivers/clk/mediatek/clk-mt8195-topckgen.c create mode 100644 drivers/clk/mediatek/clk-mt8195-vdec.c create mode 100644 drivers/clk/mediatek/clk-mt8195-vdo0.c create mode 100644 drivers/clk/mediatek/clk-mt8195-vdo1.c create mode 100644 drivers/clk/mediatek/clk-mt8195-venc.c create mode 100644 drivers/clk/mediatek/clk-mt8195-vpp0.c create mode 100644 drivers/clk/mediatek/clk-mt8195-vpp1.c create mode 100644 drivers/clk/mediatek/clk-mt8195-wpe.c create mode 100644 include/dt-bindings/clock/mt8195-clk.h