From patchwork Tue Dec 31 06:00:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian Hu X-Patchwork-Id: 13923629 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 3DC9CE77188 for ; Tue, 31 Dec 2024 06:01:17 +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=yV+BkiiywCPTNJf1mVh0g6OzoiVKqd4DOXbOTnljjC8=; b=ukAvt+fPBPBdSO 2Q7LyO2sw0YjC3psx4h4wFZrlDVutsv6tl3XNSCJFyQyuVzl9zASS3uJsXLK3I0aWzXaVKPO3cwtl /6vE2OYiwwx/RqUVfROmS2glvT6Bq0fTIMLlqGXpiSdPgQCgXjaCjSHyJhFhBfBUiumZuUObmVvMy EzMCxoKUkP9xjh3SvV/esjwVsF0bkgFYkJVCk3PUQR+9fksBs6tl50awCzhbP9kDNjfxue9da1he5 jvzfdrM6MQFryjFgI0pHem6iBRyRB9GjJQ55VkfjhNZH5BZJ2EWgq07ZWECztUvJWT34kv2JDUih/ zt2Yxq87VJMNpEbpvFww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tSVJT-00000006apt-1x8x; Tue, 31 Dec 2024 06:01:07 +0000 Received: from [58.32.228.46] (helo=mail-sh.amlogic.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tSVJO-00000006aoV-2EjW; Tue, 31 Dec 2024 06:01:06 +0000 Received: from rd03-sz.software.amlogic (10.28.11.121) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.39; Tue, 31 Dec 2024 14:00:50 +0800 From: Jian Hu To: Jerome Brunet , Xianwei Zhao , Chuan Liu , Neil Armstrong , Kevin Hilman , "Stephen Boyd" , Michael Turquette , "Dmitry Rokosov" , robh+dt , Rob Herring CC: Jian Hu , devicetree , linux-clk , linux-amlogic , linux-kernel , linux-arm-kernel Subject: [PATCH 0/5] add support for T7 family clock controller Date: Tue, 31 Dec 2024 14:00:42 +0800 Message-ID: <20241231060047.2298871-1-jian.hu@amlogic.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Originating-IP: [10.28.11.121] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241230_220102_570924_F673DCB3 X-CRM114-Status: UNSURE ( 7.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org It intrduces three clock controller: - scmi clock controller, these clocks are managed by the SCP and handled through SCMI; - PLL clock controller; - peripheral clock controller. Jian Hu (5): dt-bindings: clock: add Amlogic T7 PLL clock controller dt-bindings: clock: add Amlogic T7 SCMI clock controller dt-bindings: clock: add Amlogic T7 peripherals clock controller clk: meson: t7: add support for the T7 SoC PLL clock clk: meson: t7: add t7 clock peripherals controller driver .../clock/amlogic,t7-peripherals-clkc.yaml | 111 + .../bindings/clock/amlogic,t7-pll-clkc.yaml | 115 + drivers/clk/meson/Kconfig | 27 + drivers/clk/meson/Makefile | 2 + drivers/clk/meson/t7-peripherals.c | 2319 +++++++++++++++++ drivers/clk/meson/t7-pll.c | 1192 +++++++++ .../clock/amlogic,t7-peripherals-clkc.h | 231 ++ .../dt-bindings/clock/amlogic,t7-pll-clkc.h | 57 + include/dt-bindings/clock/amlogic,t7-scmi.h | 48 + 9 files changed, 4102 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,t7-peripherals-clkc.yaml create mode 100644 Documentation/devicetree/bindings/clock/amlogic,t7-pll-clkc.yaml create mode 100644 drivers/clk/meson/t7-peripherals.c create mode 100644 drivers/clk/meson/t7-pll.c create mode 100644 include/dt-bindings/clock/amlogic,t7-peripherals-clkc.h create mode 100644 include/dt-bindings/clock/amlogic,t7-pll-clkc.h create mode 100644 include/dt-bindings/clock/amlogic,t7-scmi.h