From patchwork Tue Jun 29 15:38:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 468431 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 CFC49C11F68 for ; Tue, 29 Jun 2021 15:38:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6A7861DCB for ; Tue, 29 Jun 2021 15:38:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbhF2Pk7 (ORCPT ); Tue, 29 Jun 2021 11:40:59 -0400 Received: from out28-52.mail.aliyun.com ([115.124.28.52]:39772 "EHLO out28-52.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234549AbhF2Pk7 (ORCPT ); Tue, 29 Jun 2021 11:40:59 -0400 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.09404528|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_regular_dialog|0.0158635-0.000755938-0.983381; FP=0|0|0|0|0|-1|-1|-1; HT=ay29a033018047212; MF=zhouyanjie@wanyeetech.com; NM=1; PH=DS; RN=14; RT=14; SR=0; TI=SMTPD_---.KZtCVfJ_1624981102; Received: from zhouyanjie-virtual-machine.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.KZtCVfJ_1624981102) by smtp.aliyun-inc.com(10.147.44.118); Tue, 29 Jun 2021 23:38:28 +0800 From: =?utf-8?b?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org Cc: linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, paul@crapouillou.net, 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 v6 00/11] Add new clocks and fix bugs for Ingenic SoCs. Date: Tue, 29 Jun 2021 23:38:11 +0800 Message-Id: <1624981102-26248-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: devicetree@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. 周琰杰 (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 | 784 +++++++++++++++++++++ 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 | 88 +++ 18 files changed, 2203 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