From patchwork Sat Apr 9 13:22:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Jie Chen X-Patchwork-Id: 12807894 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 E46E3C433FE for ; Sat, 9 Apr 2022 13:23:56 +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=klEmhOFipyQRC0aCKhx3ZktF3QSLU9Ifql4doKbBehs=; b=zOrbkIw0oFXpZz 8uuKdRV2nG8MRNrkjlCAwJPXHSHJCaml3sKOCds895/WTNqu6WmfUqaYMbbF3JwXokCO92YVjU3Do byEr3z2LEXKbeOzM8OuCFhaG1Q/Vh/YXj2wTBJFlFtOqaI/Aq24tzFL1fnj538H986Pjxsi4OiIcO JtzAoT9D4HwF6hj/hdaSLFZKugPXfdizU0hWWIcqSH9NYqWby9LNWroy0AVBCYThR5pjMkH0Hyabj cJEiSzwOg17PpT6sJuPfV5pzCFiXiUvun87kb1jOzakvQGmpmg/cG89k0LMEs4WyOH7rGgiXKNA8/ NdewdF3Slr77kkhDYnIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndB4B-003B0D-Ix; Sat, 09 Apr 2022 13:23:51 +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 1ndB3z-003Aun-Oc; Sat, 09 Apr 2022 13:23:41 +0000 X-UUID: ee60ab69551c4252bae94df511798ab2-20220409 X-UUID: ee60ab69551c4252bae94df511798ab2-20220409 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 376713332; Sat, 09 Apr 2022 06:23:29 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 9 Apr 2022 06:23:27 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sat, 9 Apr 2022 21:23:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 Apr 2022 21:23:25 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , Subject: [PATCH v5 00/15] MediaTek MT8186 clock support Date: Sat, 9 Apr 2022 21:22:36 +0800 Message-ID: <20220409132251.31725-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-20220409_062339_861704_36C06917 X-CRM114-Status: GOOD ( 10.84 ) 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 v5.18-rc1. changes since v4: - change "Acked-by" to "Reviewed-by" - rebase to 5.18-rc1 changes since v3: - re-order linux and internal driver header - remove redundant lock in mcusys muxes - add more description for mcusys clock driver changes since v2: - add '|' to preserve the formatting in binding document - change 'Mediatek'to 'MediaTek' changes since v1: - combine dt-binding documents as a single patch - remove redundant example in binding document - change to dual license in binding document - add more clock error handle based on interface provided in [1] [1]https://patchwork.kernel.org/project/linux-mediatek/list/?series=612171 Chun-Jie Chen (15): dt-bindings: ARM: MediaTek: Add new document bindings of MT8186 clock clk: mediatek: Add MT8186 mcusys clock support clk: mediatek: Add MT8186 topckgen clock support clk: mediatek: Add MT8186 infrastructure clock support clk: mediatek: Add MT8186 apmixedsys clock support clk: mediatek: Add MT8186 imp i2c wrapper clock support clk: mediatek: Add MT8186 mfgsys clock support clk: mediatek: Add MT8186 mmsys clock support clk: mediatek: Add MT8186 wpesys clock support clk: mediatek: Add MT8186 imgsys clock support clk: mediatek: Add MT8186 vdecsys clock support clk: mediatek: Add MT8186 vencsys clock support clk: mediatek: Add MT8186 camsys clock support clk: mediatek: Add MT8186 mdpsys clock support clk: mediatek: Add MT8186 ipesys clock support .../arm/mediatek/mediatek,mt8186-clock.yaml | 56 ++ .../mediatek/mediatek,mt8186-sys-clock.yaml | 54 ++ drivers/clk/mediatek/Kconfig | 8 + drivers/clk/mediatek/Makefile | 5 + drivers/clk/mediatek/clk-mt8186-apmixedsys.c | 133 +++ drivers/clk/mediatek/clk-mt8186-cam.c | 90 ++ drivers/clk/mediatek/clk-mt8186-img.c | 68 ++ .../clk/mediatek/clk-mt8186-imp_iic_wrap.c | 67 ++ drivers/clk/mediatek/clk-mt8186-infra_ao.c | 216 +++++ drivers/clk/mediatek/clk-mt8186-ipe.c | 55 ++ drivers/clk/mediatek/clk-mt8186-mcu.c | 108 +++ drivers/clk/mediatek/clk-mt8186-mdp.c | 80 ++ drivers/clk/mediatek/clk-mt8186-mfg.c | 48 ++ drivers/clk/mediatek/clk-mt8186-mm.c | 111 +++ drivers/clk/mediatek/clk-mt8186-topckgen.c | 780 ++++++++++++++++++ drivers/clk/mediatek/clk-mt8186-vdec.c | 88 ++ drivers/clk/mediatek/clk-mt8186-venc.c | 51 ++ drivers/clk/mediatek/clk-mt8186-wpe.c | 51 ++ include/dt-bindings/clock/mt8186-clk.h | 445 ++++++++++ 19 files changed, 2514 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-clock.yaml create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-sys-clock.yaml create mode 100644 drivers/clk/mediatek/clk-mt8186-apmixedsys.c create mode 100644 drivers/clk/mediatek/clk-mt8186-cam.c create mode 100644 drivers/clk/mediatek/clk-mt8186-img.c create mode 100644 drivers/clk/mediatek/clk-mt8186-imp_iic_wrap.c create mode 100644 drivers/clk/mediatek/clk-mt8186-infra_ao.c create mode 100644 drivers/clk/mediatek/clk-mt8186-ipe.c create mode 100644 drivers/clk/mediatek/clk-mt8186-mcu.c create mode 100644 drivers/clk/mediatek/clk-mt8186-mdp.c create mode 100644 drivers/clk/mediatek/clk-mt8186-mfg.c create mode 100644 drivers/clk/mediatek/clk-mt8186-mm.c create mode 100644 drivers/clk/mediatek/clk-mt8186-topckgen.c create mode 100644 drivers/clk/mediatek/clk-mt8186-vdec.c create mode 100644 drivers/clk/mediatek/clk-mt8186-venc.c create mode 100644 drivers/clk/mediatek/clk-mt8186-wpe.c create mode 100644 include/dt-bindings/clock/mt8186-clk.h