From patchwork Tue Oct 10 06:29:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 13414832 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 75BE4CD68EE for ; Tue, 10 Oct 2023 06:30:13 +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=t4tDP+RqoKw7T6S3MLcXJF1fA3y5ayp/5ef3xRvka4E=; b=KUfY/ei3+fIfu3 r01D/Zbbac2wGwaxaok5SImzzrynQV3UvvDXqyK1RWcbPM4vzp0waE7+cf5i6tqjgoCZ1lKOo/35x WPYj0S3IBCvxVWH47fmvz6SJkVyKFD1+fcfLDNK5FzjKMXPLSIkALTrrp2UNYmpDE4ZiPmrli0lk/ 6OSURRXQkfBC0FurFamxiopHYn1I1CzSv8H8IR6i2wxZn4YJNRMytrm95TZuqi6Y8cloaUKiyHuyk roweHsQJeeCHzaicGN6XcTDQjHfp6xzGqWgosMzCKdksiYY6wUignqnQ7pWkcR3vLj+2kc62K32aw DPBiF3f09fjAyG5qiF8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qq6FT-00CaDB-2r; Tue, 10 Oct 2023 06:29:43 +0000 Received: from mail-sh.amlogic.com ([58.32.228.43]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qq6FO-00CaAY-0i; Tue, 10 Oct 2023 06:29:42 +0000 Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Tue, 10 Oct 2023 14:29:19 +0800 From: Xianwei Zhao To: , , , , CC: Neil Armstrong , Jerome Brunet , Michael Turquette , "Stephen Boyd" , Rob Herring , "Krzysztof Kozlowski" , Kevin Hilman , Martin Blumenstingl , Chuan Liu , Xianwei Zhao Subject: [PATCH V2 0/4] Add C3 SoC PLLs and Peripheral clock Date: Tue, 10 Oct 2023 14:29:13 +0800 Message-ID: <20231010062917.3624223-1-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Originating-IP: [10.98.11.200] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_232938_256646_07C90A16 X-CRM114-Status: UNSURE ( 6.96 ) 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 Add C3 SoC PLLs and Peripheral clock controller dt-bindings. Add PLLs and Peripheral clock controller driver for C3 SOC. V1 -> V2: 1. Fix errors when check binding by using "make dt_binding_check" 2. Delete macro definition Xianwei Zhao (4): dt-bindings: clock: add Amlogic C3 PLL clock controller bindings dt-bindings: clock: add Amlogic C3 peripherals clock controller bindings clk: meson: c3: add support for the C3 SoC PLL clock clk: meson: c3: add c3 clock peripherals controller driver .../clock/amlogic,c3-peripherals-clkc.yaml | 92 + .../bindings/clock/amlogic,c3-pll-clkc.yaml | 59 + drivers/clk/meson/Kconfig | 25 + drivers/clk/meson/Makefile | 2 + drivers/clk/meson/c3-peripherals.c | 3096 +++++++++++++++++ drivers/clk/meson/c3-peripherals.h | 48 + drivers/clk/meson/c3-pll.c | 808 +++++ drivers/clk/meson/c3-pll.h | 35 + .../clock/amlogic,c3-peripherals-clkc.h | 230 ++ .../dt-bindings/clock/amlogic,c3-pll-clkc.h | 42 + 10 files changed, 4437 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,c3-peripherals-clkc.yaml create mode 100644 Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml create mode 100644 drivers/clk/meson/c3-peripherals.c create mode 100644 drivers/clk/meson/c3-peripherals.h create mode 100644 drivers/clk/meson/c3-pll.c create mode 100644 drivers/clk/meson/c3-pll.h create mode 100644 include/dt-bindings/clock/amlogic,c3-peripherals-clkc.h create mode 100644 include/dt-bindings/clock/amlogic,c3-pll-clkc.h base-commit: 57b55c76aaf1ba50ecc6dcee5cd6843dc4d85239