Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp280923pxb; Mon, 13 Sep 2021 19:17:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9O1LOshrNEfeU0N+8iTFfPiW3+0hnJBSJLnr5L87geZGuy+q7EunULy4jRTXnm8ZLNbBa X-Received: by 2002:a6b:c308:: with SMTP id t8mr5029843iof.2.1631585867048; Mon, 13 Sep 2021 19:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631585867; cv=none; d=google.com; s=arc-20160816; b=EjINgmzLKKwWHOLiLHpa5/it02pi/zR3BD7WYAf+Uae6On0vCE0w50JqXmniSQrfHR +jzTqSUe/Mr3yw9hOr52UBdAYuvhzujKO+ct4PDetpY6uudMfL/9BdYbtTuIpolQH+LJ jzokgpDmjdXzoua2NZrS6388t1+GP2MZaKXtfM7clTbtTymbZZWAYwlCUINngunp3tt4 DfeYekBwoWHcxmn+H5Nu7MrHKv17FtF77kMZRj6WWbqsCK8OdxP5QW5Nz4Dz+iUuXxpW 2bQt6pQ4dnc53gkm1+hgI7j05lRx/9Y5B8ijQlZ3W02Wc5N+f2iXk1sFX0xq/EqGBhUv F+oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=cO7UZxhbHtxx5lytARYycliTfjSiRm/NvK8iagcaqZU=; b=GEXfBbE32EF4DX3DPYaKDE3TA9EfLh9v5LOC7rj13t1Hxc8ZJexWdBsD2y5IUn1SKt jttyXxX5e+vWKmQ66wIGhXi1IykBQkG+ahcoHvyzUxrx4gxf1M/5kTIkTTxAqnmLjgpL DLZJyGyKiK1TMC4hpTlmN8YpjeyDOtaDalO/gsY/zi/K7A24cDg2uDvI9rAvMGVqWCQk /mvZ/67gxj3p1uUkCP/TGByWO0Pm+vpq/nUzuBrOz0B8o7j1tuGGSM4e+ZnNmtVLqaXi UVGxzZGszuKi3p39+GJCKcmKqv8SA11q8SMCopHwuwhCVjBhGFIG/9xE18LReOqPSVmR zCrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id z11si8427572ilb.65.2021.09.13.19.17.35; Mon, 13 Sep 2021 19:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236608AbhINCSG (ORCPT + 99 others); Mon, 13 Sep 2021 22:18:06 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:33164 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229754AbhINCSF (ORCPT ); Mon, 13 Sep 2021 22:18:05 -0400 X-UUID: 1f51c357e7d84e9597453061b0f0bcca-20210914 X-UUID: 1f51c357e7d84e9597453061b0f0bcca-20210914 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1673174197; Tue, 14 Sep 2021 10:16:44 +0800 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 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.18.0