From patchwork Tue May 16 06:47:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Tu X-Patchwork-Id: 9383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp222306vqo; Mon, 15 May 2023 23:51:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JzCPe/q29ib3uWw+5BzO/M63eiV7vvMwfss2jKTZ7SKC+T81TI3Su2KLBRAIAyM2eHflq X-Received: by 2002:a05:6a20:5493:b0:105:5f6:8701 with SMTP id i19-20020a056a20549300b0010505f68701mr13017235pzk.22.1684219866493; Mon, 15 May 2023 23:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684219866; cv=none; d=google.com; s=arc-20160816; b=U7itVWXQ5mSAwW1XIb1YRcdB3JIqdVE1x/6Ak8Dc+SVum4XY7/iwUDZgLI6lT0QgaK c9sRdu141bTmb5yDhcrJMguuzvkFRxWPTJmQ7xSdq0YbbkTfclw9Cu3Z2TL6eTjVjDkU ZoQ/+7YBndKtUmNrVvFASNjwl5bmdT90SG2TZoTJnN+zECEgHl3vE8Xzare4TM5GwWc/ sHGJjWNlKKewUWGBuXu+cuYPKpIQnmC3s71vRPdms/Dt2WPJcGEWrT1iQS1IcbpT67Uj wxkY4poee85bHf1jozggoVpjTkm85JMlDKA+6SAdsdVQYz5w36bahiA5zYpIV1A5uTak /psQ== 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=IYfdH2TuITvHqX6XiB27jrV9zsVMMZHPOCTY5VCfe4w=; b=nRlap2/o1Yvt6Ylkiq/FJ9tiTLuV9GeCSetK3vQK3hiEZcmpwnDmFcjuRlCMWyH435 avFH9ZrhkK8v6xHK1tG7UY3jQTCcQWh5s8CFmCeVB/jsNytrDgsD0YA3NmSmpCYho7ge IxyYe3B9M9i93sI0o0+JTlOxhNqg8q4lJ4f579YSdGjoRF8n6PqsKgbMddPPitDEAtr3 PcqG/i0kTLgsRAZ4EGUv3F72jVj/0rzurMS5j+AVeg03T+GXyBPZES9b5a3ZPTsHpZ9Y una2XAiN5i4A0gBfmT4vdCltM1UnHn6SnyS0r+k90WYqi1wS2eHIbwcbzPdMRP9jXxkB FY7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a625b06000000b00643b0b0f48csi18554257pfb.127.2023.05.15.23.50.54; Mon, 15 May 2023 23:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjEPGt2 (ORCPT + 99 others); Tue, 16 May 2023 02:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjEPGtZ (ORCPT ); Tue, 16 May 2023 02:49:25 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FB8C3A87; Mon, 15 May 2023 23:48:46 -0700 (PDT) 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; Tue, 16 May 2023 14:48:34 +0800 From: Yu Tu To: , , , , , Rob Herring , "Neil Armstrong" , Jerome Brunet , Kevin Hilman , Michael Turquette , Stephen Boyd , "Krzysztof Kozlowski" , Conor Dooley , Martin Blumenstingl CC: , , Yu Tu Subject: [PATCH V8 RESEND 0/4] Add S4 SoC PLL and Peripheral clock Date: Tue, 16 May 2023 14:47:32 +0800 Message-ID: <20230516064736.10270-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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766032530672669034?= X-GMAIL-MSGID: =?utf-8?q?1766032530672669034?= 1. Add S4 SoC PLL and Peripheral clock controller dt-bindings. 2. Add PLL 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 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/all/20230417065005.24967-1-yu.tu@amlogic.com/ .../clock/amlogic,s4-peripherals-clkc.yaml | 97 + .../bindings/clock/amlogic,s4-pll-clkc.yaml | 50 + MAINTAINERS | 1 + drivers/clk/meson/Kconfig | 25 + drivers/clk/meson/Makefile | 2 + drivers/clk/meson/s4-peripherals.c | 3830 +++++++++++++++++ drivers/clk/meson/s4-peripherals.h | 217 + drivers/clk/meson/s4-pll.c | 907 ++++ drivers/clk/meson/s4-pll.h | 87 + .../clock/amlogic,s4-peripherals-clkc.h | 131 + .../dt-bindings/clock/amlogic,s4-pll-clkc.h | 30 + 11 files changed, 5377 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: ac9a78681b921877518763ba0e89202254349d1b