Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1654556pxb; Fri, 22 Oct 2021 05:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOFsHIjY1fnfDdS7AD8FYZ5etH6oPsaFg78ia+cB6eHucQEH1MkMYNzXyn+SIftUV+L6Zl X-Received: by 2002:a63:9258:: with SMTP id s24mr8439605pgn.442.1634905275126; Fri, 22 Oct 2021 05:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634905275; cv=none; d=google.com; s=arc-20160816; b=Ig7aezNDjqBJlS8SxbcU7NHHTcTEvhSi9BEh9XeeHEbhZou5omuz1fLuvN9VZpU1Gy C/TL7s71JUaPxJA/B6NNhK9QPsePMc5DI2ertlrAKBhzS3nA2zGwVgN1a7yMiqqEjgU+ gyEMczwXJrAiedt1JhMCFp8cSyHxjYcbawCHgZ3FW4ojnpLKoxNj45BS5Yi/BXm+S2VN AGWOg4LszGmeZHNwvGOb6hw2yaO7EXsbIBmwmD3Sih+Vm5XcbEaclEasJ988TjPhP7d5 xuaW+qQ+PY3OQ4+Y8w7TouDhLLYWnOZWc3A9rJsMrIjYa71t3pp7geR+eNe2IjKnTHxf XcyQ== 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=65syLC1Aps+xBcrZLWxnBgd6jKaz3R9D0/oRvUjAUPA=; b=Mg5W85PXL0ZqknqYfvdfCRybHsQ/4GR57Jdof0iX5ZpTH7zNNEn2s8MjlIT/TxV89J VQcDmRv/Sfnc5edP2o7ds59VPu4MnOBRkkNhF+Z7AenXM1WMCMgrIxMfBOLd/uhEdpx+ +Diih4xJQg8C0++lKYfY3PpwI7beoN1dK8Ds4wNbt6YsShO2ykp+cXGr6Dsg0hb7/sLf X89fpETStggsE895ynvisrGFwt3cVf1ZKtMiCKocigZYH6RDBFzv7BLM/cMWKZnVNmsv jCXiNxofKUC+JRAII+hIKCrehvY+6Z2wNyb703DL2i/IBuGAs3VfwEhlBOli8Xo08kvS sJHg== 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 h185si10948801pfg.114.2021.10.22.05.21.02; Fri, 22 Oct 2021 05:21:15 -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 S231863AbhJVMWQ (ORCPT + 99 others); Fri, 22 Oct 2021 08:22:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58648 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231724AbhJVMWN (ORCPT ); Fri, 22 Oct 2021 08:22:13 -0400 X-UUID: 552bc8c760a8464581cb8b812cb8e39d-20211022 X-UUID: 552bc8c760a8464581cb8b812cb8e39d-20211022 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 265884305; Fri, 22 Oct 2021 20:19:53 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 22 Oct 2021 20:19:52 +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:19:52 +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:19:51 +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: Date: Fri, 22 Oct 2021 20:19:39 +0800 Message-ID: <20211022121944.25687-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 Subject: [PATCH v6 0/5] Mediatek MT7986 basic clock support 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