From patchwork Sat Jul 24 09:34:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 12397553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EC86C432BE for ; Sat, 24 Jul 2021 09:35:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44F4C60EAF for ; Sat, 24 Jul 2021 09:35:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234985AbhGXIyr (ORCPT ); Sat, 24 Jul 2021 04:54:47 -0400 Received: from out28-73.mail.aliyun.com ([115.124.28.73]:48084 "EHLO out28-73.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234748AbhGXIyq (ORCPT ); Sat, 24 Jul 2021 04:54:46 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09970395|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0186914-0.000741943-0.980567;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047203;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=14;RT=14;SR=0;TI=SMTPD_---.KprUvTZ_1627119307; Received: from zhouyanjie-virtual-machine.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.KprUvTZ_1627119307) by smtp.aliyun-inc.com(10.147.40.233); Sat, 24 Jul 2021 17:35:15 +0800 From: =?utf-8?b?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= To: sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org, paul@crapouillou.net Cc: linux-clk@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, sihui.liu@ingenic.com, jun.jiang@ingenic.com, sernia.zhou@foxmail.com Subject: [PATCH v7 00/11] Add new clocks and fix bugs for Ingenic SoCs. Date: Sat, 24 Jul 2021 17:34:35 +0800 Message-Id: <1627119286-125821-1-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org v4->v5: 1.modify the CGU PLL correlation code to make it compatible with I2S PLL. 2.Change X1000's I2S clock to CGU_CLK_PLL as Paul Cercueil's suggestion. 3.Add documentation for JZ4775 and X2000 bindings. 4.Add JZ4775 and X2000 clock bindings. 5.Add CGU driver for JZ4775 and X2000. v5->v6: Change the type of stable_bit from u8 to s8, because a negative value will appear when the stable_bit bit does not exist. v6->v7: 1.Add Rob Herring's Acked-by. 2.Change to dual license. 周琰杰 (Zhou Yanjie) (11): clk: JZ4780: Add function for disable the second core. clk: Ingenic: Adjust cgu code to make it compatible with I2S PLL. dt-bindings: clock: Add missing clocks for Ingenic SoCs. clk: Ingenic: Fix problem of MAC clock in Ingenic X1000 and X1830. clk: Ingenic: Add missing clocks for Ingenic SoCs. clk: Ingenic: Clean up and reformat the code. dt-bindings: clock: Add documentation for JZ4775 and X2000 bindings. dt-bindings: clock: Add JZ4775 clock bindings. dt-bindings: clock: Add X2000 clock bindings. clk: Ingenic: Add CGU driver for JZ4775. clk: Ingenic: Add CGU driver for X2000. .../devicetree/bindings/clock/ingenic,cgu.yaml | 4 + drivers/clk/ingenic/Kconfig | 20 + drivers/clk/ingenic/Makefile | 2 + drivers/clk/ingenic/cgu.c | 118 ++- drivers/clk/ingenic/cgu.h | 10 +- drivers/clk/ingenic/jz4725b-cgu.c | 49 +- drivers/clk/ingenic/jz4740-cgu.c | 49 +- drivers/clk/ingenic/jz4760-cgu.c | 106 ++- drivers/clk/ingenic/jz4770-cgu.c | 83 +-- drivers/clk/ingenic/jz4775-cgu.c | 572 +++++++++++++++ drivers/clk/ingenic/jz4780-cgu.c | 149 ++-- drivers/clk/ingenic/x1000-cgu.c | 210 ++++-- drivers/clk/ingenic/x1830-cgu.c | 210 ++++-- drivers/clk/ingenic/x2000-cgu.c | 790 +++++++++++++++++++++ include/dt-bindings/clock/jz4775-cgu.h | 59 ++ include/dt-bindings/clock/x1000-cgu.h | 5 + include/dt-bindings/clock/x1830-cgu.h | 5 + include/dt-bindings/clock/x2000-cgu.h | 89 +++ 18 files changed, 2210 insertions(+), 320 deletions(-) create mode 100644 drivers/clk/ingenic/jz4775-cgu.c create mode 100644 drivers/clk/ingenic/x2000-cgu.c create mode 100644 include/dt-bindings/clock/jz4775-cgu.h create mode 100644 include/dt-bindings/clock/x2000-cgu.h