Received: by 10.223.176.46 with SMTP id f43csp1140132wra; Fri, 19 Jan 2018 07:26:39 -0800 (PST) X-Google-Smtp-Source: ACJfBov5pooI90CS5/MWt9LrLPqwXHMmu2WzDuskeAeteyVcfKd1oSCazXbpoCtyRv5pzWzC0YEe X-Received: by 10.101.90.202 with SMTP id d10mr18576009pgt.366.1516375599800; Fri, 19 Jan 2018 07:26:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516375599; cv=none; d=google.com; s=arc-20160816; b=aQsr6TkWzi4cWQ9OnTwurmG4D2Uq3629E38m08JfthvAg2Np0K2M27osReLBIVZobW MtQlsTI40crl2K96cjrqNrnsrW91TyokX6CbKOgjioXpxiq5zjO4SbipENj72j+x6ait Quhk33NtEGouRejaZOQzRFQnFttM4m4zbKCxzJsOdprUYe4nen0sjdUPH4Kt/7gAxOgU Is82LkMfBw5lwSi6tfM+KEwC0pdafSqzhIMLLhHg5FjoKKe09FKbUXC6tShAKdI7vhtR 89pO9/nYZff3I0U1drAHBkEW4LG8iWar0qAQXEYwI6sgpKTvd/dynssvSBFUpAIFB9r1 y4mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:arc-authentication-results; bh=iidTzBWOQS/Nxi3N7JN7MGqV21N5acRRPcua62QB9Wg=; b=qHXFZt3G1YjoXSV3dHOd6YQ5tz3odjrTVjXeMsEiej0sorDHKQOf3cMqa1IbgUXdTC HaGdDfFRolBXAYrV5IaxzaKQVBKg65hAQmWzbG1EHDPXZWzbaHsEaJGPxtizRm45+Oug tTrW0SrQzUQANTD8OvLIvD9XTrrc+pDOmYHggzJPWOHFAxzcLfD+xk024WKxRxVHAG69 FYeBDVxqRiqMcLo/s4lFqquptiStbm0iq8LpjM+hpfjnk9lxJO6k9fwQZbSVhscwvImP wbQv9MDQYhvNWRIesHlhAekKcs2W486N/LfwVhKFwThbcD69z3ZATIrKVhI5n68+phCN 95pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si460316pgr.475.2018.01.19.07.26.25; Fri, 19 Jan 2018 07:26:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756054AbeASPZb (ORCPT + 99 others); Fri, 19 Jan 2018 10:25:31 -0500 Received: from mail-dm3nam03on0062.outbound.protection.outlook.com ([104.47.41.62]:32533 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755996AbeASPZB (ORCPT ); Fri, 19 Jan 2018 10:25:01 -0500 Received: from DM5PR03CA0034.namprd03.prod.outlook.com (10.174.189.151) by MWHPR03MB2701.namprd03.prod.outlook.com (10.168.207.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 19 Jan 2018 15:24:59 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::180) by DM5PR03CA0034.outlook.office365.com (2603:10b6:4:3b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Fri, 19 Jan 2018 15:24:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Fri, 19 Jan 2018 15:24:57 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.1]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0JDBGiK013190; Fri, 19 Jan 2018 06:11:17 -0700 From: Dong Aisheng To: CC: , , , , , , , , , Dong Aisheng Subject: [PATCH V3 00/10] clk: add imx7ulp clk support Date: Fri, 19 Jan 2018 21:11:00 +0800 Message-ID: <1516367470-24340-1-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131608490995583585;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(54534003)(450100002)(4326008)(48376002)(50466002)(47776003)(16586007)(2351001)(53936002)(54906003)(316002)(105606002)(106466001)(5660300001)(356003)(68736007)(2906002)(498600001)(6916009)(6666003)(36756003)(81166006)(305945005)(97736004)(26005)(50226002)(8936002)(85426001)(81156014)(86362001)(104016004)(8676002)(77096007)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2701;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD026;1:ke/8huNxEj/79nciPU9WxiyvCK0bt16onAVga45NZq6p1TX+tNHbFOf6mFEsuCGqRsqGQYwaukg9vaPRAwtTF0ZeIPQp3ZtD4CPQJIM4XRbMUNn4fDrdnZlz6awe8hRv MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1fa227b-0c48-42bb-7f69-08d55f50cd9b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(5600026)(4604075)(2017052603307);SRVR:MWHPR03MB2701; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2701;3:ifNhVHRSADrZC5PmgtzvzVX7kDHVRAvoemxAMvT+jNQ+K9sM7Frkji09BfcSlfmkhoOIOXsvtITIaG9LkeVbn9aHAN+Q5oG5RFx3MjWhMnf1J3fCP2EmY0Eqyy1PgpaPsLAjfNNOV+sanIxhuETfl+ZdN7NE099OLoet7PFisNEe3wNItKppUBp98cCfZNc/JNNfIygYe5rDzUnEJVKooCArzZyWM/66El0fYytrufKdnsguNxhtaLiXftvJEqJUkzXTKDlhV02uzdl5b0rWC4ZIrc5dumXyulopamMFBXPzEk/FkG7Kh2MaA/QeXC4+2M27jxHYh0iP1FeKvYrwT7pdwEygGpzYBREuQIMHylY=;25:mI1K1P7Qr1CYegxjF54R+u2/PZc9uXqCUjNHWd6KhO9OfqS5AJIQg15q6L182L6yjpK59njF+RIlsFH/duHbNkF1c4dKE7P88u0tsB0Vk9lcke/W3jfViebd/MXnkHphdAbR2CXJYBiHjpeehpgvaTT2WAlve99VN7JJontI6FSZ9jB6ddwRown0qJZJAubUurvdmOu30SkpimfyOOSLUrWCFGAuSLt2jZz1ua9mFYeJmnI4G+yHTy5s+59SNxK+zdDM4fpvDqctSbBogfxbpUoKnySNfsLz6U/tHMR/+qbDiA9osjM/6cAOFTgVyFA2DNH2J/Yz1L0XBxnka6KCfw== X-MS-TrafficTypeDiagnostic: MWHPR03MB2701: X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2701;31:0EH1nlphUfF7hTaJ6IKsZSwsoqMgXdJjHraFprpqEzh0G7Yj+CJis/Z1yjTKVNL0HNpm6JSprIVdsM0yCzg0Zj2rjRLmaRXqYMF+RPL3TAzTvcaeUydtzSy9f3WT5b9mfV+6sm7HzcVEagpazTA2IDryH5vMV7cmJduZFbF28TfOlIN6XSAiztjoMaQJvcku083pFmI+We85jJvshdbcAWGqCHdMp0MWdC7d3fkl+X8=;4:Fer/yuNxb04sZO639uW030gpMeyM3oAOJMB4trstn1T81fF+xF7f6vhwmvGz6HAeX6Tccm5X9lyuIOf3vvA7y/wFteqOxLOeZXyen2/9ZQ7xWE4soADYFDxH7shv9cRIY+B/rmDNuQ/H/nxCmuxnHc5BFxf9DzEn2cjdigfluRaXXXAaUzBc4E1AzILxDdXZ3MAGhVTCVG4P1/zD0a7bGO5c33wMS4oIaGEIGwX2YxzyjluOd9OmwQaCRd94Q3JYR7PDtCM1X384HXAyIAZdqg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231023)(2400079)(944501161)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123563025)(20161123561025)(20161123559100)(20161123556025)(201708071742011);SRVR:MWHPR03MB2701;BCL:0;PCL:0;RULEID:(100000803101)(100110400095)(400006);SRVR:MWHPR03MB2701; X-Forefront-PRVS: 0557CBAD84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR03MB2701;23:Gnlmm4RppWaVoIs2EeqHpFCcerji/nu4XglLcwiVG?= =?us-ascii?Q?NN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FU64iOGdfkgcrJv0fdRGLSSVx6/FrA5QWNaacdH5nuKx0yRD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 15:24:57.1403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1fa227b-0c48-42bb-7f69-08d55f50cd9b X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2701 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series intends to add imx7ulp clk support. i.MX7ULP Clock functions are under joint control of the System Clock Generation (SCG) modules, Peripheral Clock Control (PCC) modules, and Core Mode Controller (CMC)1 blocks The clocking scheme provides clear separation between M4 domain and A7 domain. Except for a few clock sources shared between two domains, such as the System Oscillator clock, the Slow IRC (SIRC), and and the Fast IRC clock (FIRCLK), clock sources and clock management are separated and contained within each domain. M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules. Note: this series only adds A7 clock domain support as M4 clock domain will be handled by M4 seperately. Change Log: v2->v3: * Patch 1 changed on: 1) split normal and gate ops 2) fix the possible racy Others no changes. v1->v2: * add enable/disable for the type of CLK_DIVIDER_ZERO_GATE dividers * use clk_hw apis to register clocks * use of_clk_add_hw_provider * split the clocks register process into two parts: early part for possible timers clocks registered by CLK_OF_DECLARE_DRIVER and the later part for the left normal peripheral clocks registered by a platform driver. Dong Aisheng (10): clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support clk: fractional-divider: add CLK_FRAC_DIVIDER_ZERO_BASED flag support clk: imx: add pllv4 support clk: imx: add pfdv2 support clk: imx: add composite clk support dt-bindings: clock: add imx7ulp clock binding doc clk: imx: make mux parent strings const clk: imx: implement new clk_hw based APIs clk: imx: add imx7ulp clk driver add imx7ulp support .../devicetree/bindings/clock/imx7ulp-clock.txt | 62 ++++++ arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx7ulp-evk.dts | 87 ++++++++ arch/arm/boot/dts/imx7ulp.dtsi | 202 ++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 16 +- arch/arm/mach-imx/Kconfig | 9 + arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/common.h | 1 + arch/arm/mach-imx/cpu.c | 3 + arch/arm/mach-imx/mach-imx7ulp.c | 37 ++++ arch/arm/mach-imx/mxc.h | 1 + arch/arm/mach-imx/pm-imx7ulp.c | 32 +++ drivers/clk/clk-divider.c | 152 ++++++++++++++ drivers/clk/clk-fractional-divider.c | 10 + drivers/clk/imx/Makefile | 6 +- drivers/clk/imx/clk-busy.c | 2 +- drivers/clk/imx/clk-composite.c | 90 ++++++++ drivers/clk/imx/clk-fixup-mux.c | 2 +- drivers/clk/imx/clk-imx7ulp.c | 232 +++++++++++++++++++++ drivers/clk/imx/clk-pfdv2.c | 207 ++++++++++++++++++ drivers/clk/imx/clk-pllv4.c | 188 +++++++++++++++++ drivers/clk/imx/clk.c | 22 ++ drivers/clk/imx/clk.h | 92 +++++++- include/dt-bindings/clock/imx7ulp-clock.h | 108 ++++++++++ include/linux/clk-provider.h | 17 ++ 25 files changed, 1561 insertions(+), 20 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/imx7ulp-clock.txt create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts create mode 100644 arch/arm/boot/dts/imx7ulp.dtsi create mode 100644 arch/arm/mach-imx/mach-imx7ulp.c create mode 100644 arch/arm/mach-imx/pm-imx7ulp.c create mode 100644 drivers/clk/imx/clk-composite.c create mode 100644 drivers/clk/imx/clk-imx7ulp.c create mode 100644 drivers/clk/imx/clk-pfdv2.c create mode 100644 drivers/clk/imx/clk-pllv4.c create mode 100644 include/dt-bindings/clock/imx7ulp-clock.h -- 2.7.4