Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2919476pxb; Mon, 18 Oct 2021 04:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTukvUTZ8NDKet4qdo30ZSY1vd9m9aQdaOyu9Rac9N/kftl8/aqetJ5N3x6xfTwpL8G5jm X-Received: by 2002:a05:6402:3489:: with SMTP id v9mr44188429edc.130.1634557784512; Mon, 18 Oct 2021 04:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634557784; cv=none; d=google.com; s=arc-20160816; b=oRz6QXHLGoD2xZNNkPRy260P8jjR0Aq4c0+e6fEkg/k9/sodVvOi6NZgtM45WYOUic 2d003HTPT7el42d7eQ2JvT6n4LndWrnBlLA0mpRWEBTKrTRY+1E/zqGeRaaWqgR0IvUJ Xctgb/hNegbe5XZFn44svMq1wi/omjx3iKx2zp2MSIH7ekJWZoQL0TcGmg6fY7f0kI/d 2xYjm+n02S7t1OaPdzzlD0+ST7LrnmHbcLSziUUEMAy/C9uNd1YJhJLuCEVVR3C8dK3W 9Pi7F36RnLknwyIWnDw+hNF4K23eG7VZ/bzo5lfFB3lzHM6HlCoGXaCn8C2/bZb4XfpN HPug== 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=Pc57iJnR+7DAkg6XfHbtoV3kRBO8E7ZGVvhgEzaG1vE=; b=Ah7KALxgU6wajjWSbRPTVg79W1cFtSewt0rs295UNlDps4AdziBJS92yPupwoFVS/7 uxy6k5ih1Qbs+QEmyZG6hpTVlzb/ymhpIGaQhUBbbVpXYMzvCDLDm2i6+e4z9IAeRAcm MgId+rk8pxfKaBNZyFpjIuNfTq3NTcWQYrYcnEAGlLVLJOO8ko6jOgXwMNAU272FRnYn PU6miUJWPLdKowa/Ei0/1b04PGEra4zY24wHWQFxmeQNrE2N4u7YsjC6qdmeWAs7tW+X fTE6WAmr19Aeq3z46D3V3GNzqyhy/7zNCxs3eLZpZP5FlH0RtONN43XjN2BLq2JZ4wnp Q1sw== 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 kq16si19821406ejb.521.2021.10.18.04.49.21; Mon, 18 Oct 2021 04:49:44 -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 S231566AbhJRLte (ORCPT + 99 others); Mon, 18 Oct 2021 07:49:34 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:50336 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231364AbhJRLtb (ORCPT ); Mon, 18 Oct 2021 07:49:31 -0400 X-UUID: 0172d2064dc440339f9ef37e75c540be-20211018 X-UUID: 0172d2064dc440339f9ef37e75c540be-20211018 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 1008275473; Mon, 18 Oct 2021 19:47:17 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 18 Oct 2021 19:47:16 +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; Mon, 18 Oct 2021 19:47:16 +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: [PATCH v5 0/5] Mediatek MT7986 basic clock support Date: Mon, 18 Oct 2021 19:46:56 +0800 Message-ID: <20211018114701.13984-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/ --- 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