From patchwork Thu May 28 03:15:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhou Yanjie X-Patchwork-Id: 11574267 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 097E914C0 for ; Thu, 28 May 2020 03:17:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DEB632100A for ; Thu, 28 May 2020 03:17:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgE1DRP (ORCPT ); Wed, 27 May 2020 23:17:15 -0400 Received: from out28-97.mail.aliyun.com ([115.124.28.97]:33075 "EHLO out28-97.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgE1DRP (ORCPT ); Wed, 27 May 2020 23:17:15 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.2034777|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0142839-7.76422e-05-0.985638;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03309;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=13;RT=13;SR=0;TI=SMTPD_---.HeebJ-Y_1590635771; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.HeebJ-Y_1590635771) by smtp.aliyun-inc.com(10.147.42.22); Thu, 28 May 2020 11:17:10 +0800 From: =?utf-8?b?5ZGo55Cw5p2wIChaaG91IFlhbmppZSk=?= To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, mturquette@baylibre.com, robh+dt@kernel.org, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, yanfei.li@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com, paul@crapouillou.net Subject: [PATCH v13 0/7] Add support for the X1830 and fix bugs for X1000. Date: Thu, 28 May 2020 11:15:42 +0800 Message-Id: <20200528031549.13846-1-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org v10->v11: Split [3/6] in v10 to [3/7] in v11 and [4/7] in v11. v11->v12: Use "CLK_OF_DECLARE_DRIVER" instead "CLK_OF_DECLARE", this modification was mentioned in the comments, but did not really exist in the patch. Reported-by: Paul Cercueil v12->v13: 1.Add Rob Herring's Acked-by for [4/7]. 2.Add "#include " for writel/readl. 3.Add a comment on why use "CLK_OF_DECLARE_DRIVER()". Suggested-by: Stephen Boyd 周琰杰 (Zhou Yanjie) (7): clk: Ingenic: Remove unnecessary spinlock when reading registers. clk: Ingenic: Adjust cgu code to make it compatible with X1830. dt-bindings: clock: Add documentation for X1830 bindings. dt-bindings: clock: Add X1830 clock bindings. clk: Ingenic: Add CGU driver for X1830. dt-bindings: clock: Add and reorder ABI for X1000. clk: X1000: Add FIXDIV for SSI clock of X1000. .../devicetree/bindings/clock/ingenic,cgu.yaml | 2 + drivers/clk/ingenic/Kconfig | 10 + drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/cgu.c | 28 +- drivers/clk/ingenic/cgu.h | 4 + drivers/clk/ingenic/jz4725b-cgu.c | 4 + drivers/clk/ingenic/jz4740-cgu.c | 4 + drivers/clk/ingenic/jz4770-cgu.c | 8 +- drivers/clk/ingenic/jz4780-cgu.c | 3 + drivers/clk/ingenic/x1000-cgu.c | 123 +++++- drivers/clk/ingenic/x1830-cgu.c | 448 +++++++++++++++++++++ include/dt-bindings/clock/x1000-cgu.h | 64 +-- include/dt-bindings/clock/x1830-cgu.h | 55 +++ 13 files changed, 705 insertions(+), 49 deletions(-) create mode 100644 drivers/clk/ingenic/x1830-cgu.c create mode 100644 include/dt-bindings/clock/x1830-cgu.h