Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1656746pxb; Fri, 22 Oct 2021 05:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0cULA9VLdH3/bjN9VGOAQ/kdmIz6Rbbb6+RMnZGl4gQkvsoyGTB82FtUkjEiHHK9jSjLZ X-Received: by 2002:a17:902:ba85:b0:13e:c846:c92e with SMTP id k5-20020a170902ba8500b0013ec846c92emr10947940pls.57.1634905425457; Fri, 22 Oct 2021 05:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634905425; cv=none; d=google.com; s=arc-20160816; b=0HVdgdKoc0siw0DnAJ6C8JA50qzB0AyLK4wd4RfBT66HXBtIIST0whHpqFIw2/rSbY DdKopoG3ULPIo6CQeQ4savGi3XpHbi9nZvknrjrrfsYJDgGpzmm/4pc5kAigMk8Dm/+Z nLNo7QJMas/Nmmj329buL1S/XBPQbJhVMI0Et6zbpWu26Sr4q0RCBmzKDFmRLAU+q0sB ofVy7lgV5swT9QMIOHAiQWTjS/Kb2uICZXaRDs6umdsEuQCtV1WUODrn45WIQn2wF0nM AeUrngNMO3DEyCof2je54GLZFV704eiRZE4ppOft7pbeO+DXZ47sJvf0b3HIxxiJ6mkb KLvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zT7ehmAP0kXSdyJawzm/x12kzWUm2cQ4/E6IlE0H8NM=; b=MPWexydpJGUsp0McMvo0RWr5yFz29tRmgceVQuO39cMkjJJW2amLh+0gwz4puLWRI9 Ji8Mc0HaNtE2Lx6KN+cYZdu0RWrOI51y2RK5X7f9kMpkfoA22ZPMPRI2GxC8xfSly6VM xdVjhQ33+wfN4VJ/VwXDE/HetsP2oG+XUCJUqsRAE7MbacIofAitIXntdww603Zgveg8 T/XWcgVjWrxqfZ3E9Hwu6WuQrRIrnal66tBbS05N91mYY53gx0uxq6jPZETFYO9r2dvn /GUtdnP7k/mIAlnX1ribF9j5FDBWUMDRIoCZVsiZk7yiK6FkrDArx0VSbAGqnCemwXHX okEA== 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 b16si11353919pls.193.2021.10.22.05.23.31; Fri, 22 Oct 2021 05:23:45 -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 S232740AbhJVMYk (ORCPT + 99 others); Fri, 22 Oct 2021 08:24:40 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34686 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231611AbhJVMYj (ORCPT ); Fri, 22 Oct 2021 08:24:39 -0400 X-UUID: fe42fe69248a4aeb9b4cd1680e6ae3b2-20211022 X-UUID: fe42fe69248a4aeb9b4cd1680e6ae3b2-20211022 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1662205131; Fri, 22 Oct 2021 20:22:20 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) 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; Fri, 22 Oct 2021 20:22:19 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 22 Oct 2021 20:22:18 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 22 Oct 2021 20:22:18 +0800 From: Sam Shih To: Rob Herring , Matthias Brugger , Michael Turquette , Stephen Boyd , Fabien Parent , "Weiyi Lu" , Chun-Jie Chen , Ikjoon Jang , Miles Chen , "Enric Balletbo i Serra" , , , , , CC: John Crispin , Ryder Lee , "Sam Shih" Subject: [RESEND, PATCH v6 0/5] Mediatek MT7986 basic clock support Date: Fri, 22 Oct 2021 20:22:13 +0800 Message-ID: <20211022122213.27065-1-sam.shih@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add basic clock support for mediatek mt7986 SoC. It is based on patch series "Add basic SoC support for mediatek mt7986" https://lore.kernel.org/all/20211018114009.13350-1-sam.shih@mediatek.com/ and "clk: mediatek: Add API for clock resource recycle" https://lore.kernel.org/linux-arm-kernel/20210914021633.26377-5-chun-jie.chen@mediatek.com/ --- v6: Used lowercase hex values in clock DT v5: used builtin_platform_driver instead of CLK_OF_DECLARE follow recent clk-mt8195 clock patch series: https://lore.kernel.org/linux-arm-kernel/20210914021633.26377-1-chun-jie.chen@mediatek.com/ v4: According to the maintainer’s suggestion, this patch splits the previous thread into independent patch series. This patch include clock driver and device tree update Original thread: https://lore.kernel.org/all/20210914085137.31761-1-sam.shih@mediatek.com/ https://lore.kernel.org/linux-arm-kernel/20210914085137.31761-2-sam.shih@mediatek.com/ --- Sam Shih (5): dt-bindings: clock: mediatek: document clk bindings for mediatek mt7986 SoC clk: mediatek: add mt7986 clock IDs clk: mediatek: add mt7986 clock support arm64: dts: mediatek: add clock support for mt7986a arm64: dts: mediatek: add clock support for mt7986b .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,ethsys.txt | 1 + .../arm/mediatek/mediatek,infracfg.txt | 1 + .../arm/mediatek/mediatek,sgmiisys.txt | 2 + .../arm/mediatek/mediatek,topckgen.txt | 1 + arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 68 +++- arch/arm64/boot/dts/mediatek/mt7986b.dtsi | 68 +++- drivers/clk/mediatek/Kconfig | 17 + drivers/clk/mediatek/Makefile | 4 + drivers/clk/mediatek/clk-mt7986-apmixed.c | 100 +++++ drivers/clk/mediatek/clk-mt7986-eth.c | 132 +++++++ drivers/clk/mediatek/clk-mt7986-infracfg.c | 224 ++++++++++++ drivers/clk/mediatek/clk-mt7986-topckgen.c | 342 ++++++++++++++++++ include/dt-bindings/clock/mt7986-clk.h | 169 +++++++++ 14 files changed, 1120 insertions(+), 10 deletions(-) create mode 100644 drivers/clk/mediatek/clk-mt7986-apmixed.c create mode 100644 drivers/clk/mediatek/clk-mt7986-eth.c create mode 100644 drivers/clk/mediatek/clk-mt7986-infracfg.c create mode 100644 drivers/clk/mediatek/clk-mt7986-topckgen.c create mode 100644 include/dt-bindings/clock/mt7986-clk.h -- 2.29.2