From patchwork Mon Sep 4 07:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Tu X-Patchwork-Id: 13373542 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 48CA8C83F3F for ; Mon, 4 Sep 2023 07:56:47 +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=CNP7LiE6tGH6zbMMmilXae3FLo2vLUpdN4oZU1Xc6eM=; b=LQtTkg9c2QSM9i wz3PNz2laxULzYthlb8wD/bZDrQ+jK0BH0WXi3+iKHRC71YeMuq0gGUoHVlfwdRDx57qh7IqE9JVo JmcwlJh7QaFuUOXH92j8PDCBIVDHodMX/9Z1izxyuGFYyhyGn3ZcYD4m3TYANNEhEAT/iHwX1fnGB oVJhjLyC04yk6QRQGIq7rHTICqqlkx1tR6JupwTllh63FgJe1yBcLxcyivySttf4mamhQiVFqFlC6 ZDoPxir52RwXpOmketCQd57gzSjaEbjhCUW9bnRfu0/v83vPqGwKlH+IDwrWKwKndXNFzAF+hQeg4 RJJ08egxQxrF239FKsqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd4RX-003WNi-2j; Mon, 04 Sep 2023 07:56:19 +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 1qd4RU-003WLk-2v; Mon, 04 Sep 2023 07:56:18 +0000 Received: from droid06.amlogic.com (10.18.11.248) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Mon, 4 Sep 2023 15:56:07 +0800 From: Yu Tu To: Neil Armstrong , Jerome Brunet , Michael Turquette , "Stephen Boyd" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Kevin Hilman , "Martin Blumenstingl" , , , , , CC: , , Yu Tu Subject: [PATCH V11 0/4] Add S4 SoC PLLs and Peripheral clock Date: Mon, 4 Sep 2023 15:55:00 +0800 Message-ID: <20230904075504.23263-1-yu.tu@amlogic.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Originating-IP: [10.18.11.248] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230904_005616_941735_B8102881 X-CRM114-Status: UNSURE ( 8.00 ) 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 1. Add S4 SoC PLLs and Peripheral clock controller dt-bindings. 2. Add PLLs and Peripheral clock controller driver for S4 SOC. Yu Tu (4): dt-bindings: clock: document Amlogic S4 SoC PLL clock controller dt-bindings: clock: document Amlogic S4 SoC peripherals clock controller clk: meson: S4: add support for Amlogic S4 SoC PLL clock driver clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller V10 -> V11: 1. Change patch 0001/0002 dt-bindings tag. Suggested by Krzysztof. 2. Change patch 0002 dt-bindings added minItems. Suggested by Jerome. 3. Change patch 0004 added clock ".flags = 0" and comment. Suggested by Jerome. V9 -> V10: 1. Change the relevant S4 CLK patch based on Neil's recently modified patch. 2. Change patch 0003/0004 clocks comment, format and clock flags suggested by Jerome. V8 -> V9: Add patch 0001/0002 dt-bindings tag. Suggested by Krzysztof. V7 -> V8: 1. Change patch 0001/0002 dt-bindings title description, remove "meson". Suggested by Dmitry, Neil. 2. Change patch 0003/0004 clocks comment, format and clock flags suggested by Dmitry, Neil, Jerome. V6 -> V7: Change send patch series as well change format and clock flags suggested by Jerome. Change dt-bindings suggested by Krzysztof. V5 -> V6: Change send patch series, as well change format and clock flags. V4 -> V5: change format and clock flags and adjust the patch series as suggested by Jerome. V3 -> V4: change format and clock flags. V2 -> V3: Use two clock controller. V1 -> V2: Change format as discussed in the email. Link:https://lore.kernel.org/linux-amlogic/20230822082750.27633-1-yu.tu@amlogic.com/ .../clock/amlogic,s4-peripherals-clkc.yaml | 96 + .../bindings/clock/amlogic,s4-pll-clkc.yaml | 49 + drivers/clk/meson/Kconfig | 23 + drivers/clk/meson/Makefile | 2 + drivers/clk/meson/s4-peripherals.c | 3813 +++++++++++++++++ drivers/clk/meson/s4-peripherals.h | 57 + drivers/clk/meson/s4-pll.c | 867 ++++ drivers/clk/meson/s4-pll.h | 38 + .../clock/amlogic,s4-peripherals-clkc.h | 236 + .../dt-bindings/clock/amlogic,s4-pll-clkc.h | 43 + 10 files changed, 5224 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,s4-peripherals-clkc.yaml create mode 100644 Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml create mode 100644 drivers/clk/meson/s4-peripherals.c create mode 100644 drivers/clk/meson/s4-peripherals.h create mode 100644 drivers/clk/meson/s4-pll.c create mode 100644 drivers/clk/meson/s4-pll.h create mode 100644 include/dt-bindings/clock/amlogic,s4-peripherals-clkc.h create mode 100644 include/dt-bindings/clock/amlogic,s4-pll-clkc.h base-commit: 41680df0975e04b959a28bf6ab85fd6a307ae0ea