From patchwork Thu Nov 29 13:41:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jian Hu X-Patchwork-Id: 10704547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 643971057 for ; Thu, 29 Nov 2018 13:42:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5571A2F0A4 for ; Thu, 29 Nov 2018 13:42:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49A9B2F091; Thu, 29 Nov 2018 13:42:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 080B72F0A2 for ; Thu, 29 Nov 2018 13:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=cT0d6gIAFKjlkw/YLhJaDRgkmC/X4uYhiadT4XzuiFA=; b=eJk7fhuZmBAQMu A7kDkyTydE896s6/lhNUUwIjBfc9bs+1rHzjQpxNMqUDK0N/tvYa2M1sNPt48gZQjCZ7nNoOZaNfm yOZDRJlaI05kCPkCloQNzk/v2X5bpmmHitO59CRhf+ENAWXKC+9GHy3tUWDgAJ25qqEbTLtBTEgBQ e3DPgAk5AVPUerjoBKsD9tCpZEqClO3o8dk8Eqdd5hNThszK3te6bo2vmiSauRvd7a2xuhaKzd11c qBsHrkjlqigION+T7FV97ys2AELKII2hZcM3c0/MHCjc4kpeAZcjAMkVM/StTvGD8FWkQeQ1b22h5 EugRIZ31sQ4TDRRZIYeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSMaD-0000yV-8f; Thu, 29 Nov 2018 13:42:21 +0000 Received: from mail-sh2.amlogic.com ([58.32.228.45]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSMaA-0000xT-Fl; Thu, 29 Nov 2018 13:42:19 +0000 Received: from droid15-sz.amlogic.com (10.28.8.25) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Thu, 29 Nov 2018 21:42:20 +0800 From: Jian Hu To: Jerome Brunet , Neil Armstrong Subject: [PATCH v5 0/2] clk: meson-g12a: Add EE clock controller driver Date: Thu, 29 Nov 2018 21:41:55 +0800 Message-ID: <1543498917-98605-1-git-send-email-jian.hu@amlogic.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.28.8.25] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181129_054218_518846_E04D76DF X-CRM114-Status: UNSURE ( 7.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Jianxin Pan , devicetree@vger.kernel.org, Martin Blumenstingl , Kevin Hilman , Michael Turquette , Yixun Lan , linux-kernel@vger.kernel.org, Stephen Boyd , Jian Hu , Qiufang Dai , Carlo Caione , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changes since v4 at[5] -add bypass clock "g12a_ee_core" from DT -fix Kconfig description -change g12a_mpll0_div/g12a_mpll1_div/g12a_mpll2_div/g12a_mpll3_div clock's parent name as fixed_pll_dco -drop CLK_SET_RATE_PARENT flag for pll clock -drop CLK_GET_RATE_NOCACHE flag for pll_dco clock -delete usless note -enable G12A clock driver Changes since v3 at[4] -add fixed clocks clk_regmap definition Changes since v2 at[2] -fix fixed clocks's descriptions -fix alignment -add enable bit for plls base on [3] patches -add fixed clock gate bit Changes since v1 at[1] -fix typo of 'Everything'. -change the word 'AmLogic' to 'Amlogic' -squash patch 1 and 2. -delete usless message of "Trying obsolete regs". -delete the empty line in include/dt-bindings/clock/g12a-clkc.h. -rebase on top of the "next/drivers" branch, and add g12a clock patch. -add CLK_MUX_ROUND_CLOSEST for g12a_sd_emmc_b_clk0_sel and g12a_sd_emmc_c_clk0_sel. [1]https://lkml.kernel.org/r/1531133549-25806-2-git-send-email-jian.hu@amlogic.com [2]https://lkml.kernel.org/r/1531728707-192230-2-git-send-email-jian.hu@amlogic.com [3]https://lkml.kernel.org/r/20180717095617.12240-1-jbrunet@baylibre.com [4]https://lkml.kernel.org/r/1533890858-113020-1-git-send-email-jian.hu@amlogic.com [5]https://lkml.kernel.org/r/1541511349-121152-1-git-send-email-jian.hu@amlogic.com Jian Hu (2): dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings clk: meson-g12a: Add EE Clock controller driver .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + arch/arm64/Kconfig.platforms | 1 + drivers/clk/meson/Kconfig | 8 + drivers/clk/meson/Makefile | 1 + drivers/clk/meson/g12a.c | 1185 ++++++++++++++++++++ drivers/clk/meson/g12a.h | 130 +++ include/dt-bindings/clock/g12a-clkc.h | 93 ++ 7 files changed, 1419 insertions(+) create mode 100644 drivers/clk/meson/g12a.c create mode 100644 drivers/clk/meson/g12a.h create mode 100644 include/dt-bindings/clock/g12a-clkc.h