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: 13923627 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 B5BE5E77188 for ; Tue, 31 Dec 2024 06:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=tX40pth/fTTO7nu3UCb8EIq/1yoRGX86zu5d99RTBc0=; b=AxANmT/HoVm5zKmxfZiS3rXiOy qWnoOtF5ePlOY74j8PCv6mHNSjl+Tk63tK5xChNgdTeRG/S5h56pqNx3eoaP9hGDLt3yqF4cbMBzl 2bvUXydh505BohW3sQL2AHMFeVWY3ZcSawS+3siAaFLIvBDm3xVuylyQiva5iUEjcnI9rH/9GY4KJ sIJmOSEgCnP1EK6J6sKjRCfROVw5GotD4pwACV3+OfoAFcK5BeGl971p+5SsRuH5q1LG3ZkjJwqeq 1dEO+s8XW4Rj7acSGW3n9ETtotuLUIieFrV/v6Q1T7y0oJUz08P8d0i2+AshSkR7TER5ueF8pkxDa 1KsM+sxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tSVKb-00000006az3-0eDM; Tue, 31 Dec 2024 06:02:17 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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