Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp542357imm; Wed, 18 Jul 2018 06:41:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfcrJQqzZd/5qbtOLvGZbE+B0p2dI8WofoAMsRAilef3x/usiqWfUg/F+75/Wl+I2t0N7+M X-Received: by 2002:a62:3c4f:: with SMTP id j76-v6mr5293588pfa.119.1531921283793; Wed, 18 Jul 2018 06:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531921283; cv=none; d=google.com; s=arc-20160816; b=KbNzcUH54U/yAMdBoaAMBfOKXVFZANQQJ9GdwUsQLvsvL9Sl1QNbtEOH8PoNqu0NgY iHMDYMRkaRvtK2utpsl6ukc83l7JuGGqHsKxEFP8QR2nD1NeYsOUE0WoNIbItP7fAvu8 KCK83VXRLnnavh2Raxqdid1DbTVg9d3x07d4Np9O8NHIOccKUHOQRW83zxA0Sb7opNDw uWDq1jAimlhVMR6qeZGO3cW6p9pWjPOFFe+K1hZUxXepU2ih5a10Hzm5hhsCX2f9NqKs la5L89cyPhPuFu778dK4BBtPKb7mrIT0+pYTlfQENmsikqMIXVpOZd2JKNp+2HGt4zpm jpoQ== 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:dkim-signature:arc-authentication-results; bh=oizwUQiYCq/o/mOVpOaD/VnGzEZGysw4Y9AKHhwRxB0=; b=kXSiQyvFzhxxwnAR4yVyJIks+VpticGorseT5HiI8GGVihfq8flT/CTk5zqoyyMOLP Ea8DN8yryXGGp4nQYlm6keD2dViVm16/QroZQi57iQ4GUXbMDTcSmMXw9h2qGDtqXsD6 ojixlaDq/JmipvvsZq1XhYFLOJPBbbrHvsPFPR9yc3BVKE03bKxfQIcFMYJ5Jb21BXBo 7pBQn6yPC1CQnQ8hK2EQ6TT1fn40qDz+vBgeF39pbVDx4EnCs3VxcSJkVMO5iV4s8zQc McMww5b2wUimDJ6iIf+yiWIvgoVzqdkmQu7BxDcVdInfpuLA70Q7d+7ppBnz/ZX7T+m3 c1iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=wYqbsosD; 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=pass (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 f67-v6si3457070plb.460.2018.07.18.06.41.09; Wed, 18 Jul 2018 06:41:23 -0700 (PDT) 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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=wYqbsosD; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731535AbeGRORz (ORCPT + 99 others); Wed, 18 Jul 2018 10:17:55 -0400 Received: from mail-eopbgr10042.outbound.protection.outlook.com ([40.107.1.42]:26695 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730920AbeGRORz (ORCPT ); Wed, 18 Jul 2018 10:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oizwUQiYCq/o/mOVpOaD/VnGzEZGysw4Y9AKHhwRxB0=; b=wYqbsosD4A/X6oPaVPNNS/ZiaK5bu30kkiQEyGwHu12Kno4KXpHVeOhiLmqY5qrk6O4qSOd56pC5NE8ki3HhLdrs9Qu7cv4N3qmLLt5rw3MHCyr3gsykLnHo1//hdoapWLzlQlJGBx1g4Lo6+3VdDbY0Gfk40niYS4CPW0ge6+A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; Received: from b29396-OptiPlex-7040.ap.freescale.net (119.31.174.66) by DB7PR04MB4219.eurprd04.prod.outlook.com (2603:10a6:5:27::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.19; Wed, 18 Jul 2018 13:39:47 +0000 From: Dong Aisheng To: linux-clk@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, Anson.Huang@nxp.com, ping.bai@nxp.com, linux-imx@nxp.com, Dong Aisheng Subject: [PATCH V4 0/9] clk: add imx7ulp clk support Date: Wed, 18 Jul 2018 21:36:54 +0800 Message-Id: <1531921023-18497-1-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0090.apcprd03.prod.outlook.com (2603:1096:203:72::30) To DB7PR04MB4219.eurprd04.prod.outlook.com (2603:10a6:5:27::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e1da4e02-7e9d-41f9-7ec5-08d5ecb3f012 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4219; X-Microsoft-Exchange-Diagnostics: 1;DB7PR04MB4219;3:26T+L5sqhFRXtlxHZdbJmlyM2M2Chs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UMUkNI0UiYWGLNmOOm5OOl0Ll5Pirq5v9EUn2o5H7qDblnirMhE1lX3Fnn657DCy54oTdXOHtVYh7VmWfcMd+Xp93HJAp+t9tLoM43AbeId6ViGTnQNMm/URaH2po3PuWmGIveO6FzBXEU9heot7h1f3BO3VRXAwU9CP9zmKRk0TQo8wK7SGWYSeaRGj0Kb5HPnWPyJwmmcPwMGFg9KuqgEns0X/2HEk7IOx1macuSNNluP4KW6rL7q3zxZkzKprHL3ln1MR8kep9hkffWAKk9JTyXmrBe3XTwP4yG4gkEFd1SALqpXSl6d1J;4:y9UVwpyU+Cos4I7yGhYxF/gLrKgVhc43x/XqHmyw2zpCFWbp2vDzsgDoKVk8M2YHbRGRxsBTdIQePZwuW4W8r0dU8TxI83k/PrPQAIXeW2jHhG0/sRqpc5F+OGCqoxsv0wAVs60ZJ7ygr2LgtLu/Edj92mng0SWQ+8cc44vwRrlO1/BOHNtmVRIRumX28Df3G7UzxbxwsabDy8n5NpFSLmmBObjFk4PZdVtuvmLhmLP15sg0HpP+NTPHM+8C68EdXwBtZUOMEvwGFAqkfjkchQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:DB7PR04MB4219;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4219; X-Forefront-PRVS: 0737B96801 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(396003)(136003)(376002)(346002)(366004)(189003)(199004)(54534003)(47776003)(486006)(2361001)(6116002)(3846002)(68736007)(186003)(97736004)(50226002)(476003)(956004)(2616005)(86362001)(36756003)(16586007)(25786009)(6666003)(81166006)(6916009)(8936002)(105586002)(2351001)(7736002)(52116002)(81156014)(66066001)(51416003)(8676002)(305945005)(316002)(6306002)(478600001)(4326008)(6486002)(106356001)(16526019)(26005)(48376002)(966005)(386003)(6506007)(5660300001)(2906002)(6512007)(50466002)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4219;H:b29396-OptiPlex-7040.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB7PR04MB4219;23:4XAU1q6WUV8Mv9dpv5sldfbWkrG8Q3/U5DX5MVjup?= =?us-ascii?Q?Kp5FYYutVDBIAuol48npNQxEL25itJZlZkGFsU6AXJ3oKZmcExJt6cpg9vwk?= =?us-ascii?Q?R/z1jSjqVWZZv/yU4KevMWo6kIGoKt9LxUo699QPm76DmliBF/z327ULqueF?= =?us-ascii?Q?BuPLhtcmmzXxht90xLzRSDFjLu2tjA/IyB+qEnLdVZqSOnzfuasPqXrU1vuc?= =?us-ascii?Q?lEwMTHLN8THd+EjHYhmCxgq56AF+0DHQxtes2rfCtVB0BKFPKN8MJB02LS6j?= =?us-ascii?Q?BETzhQkLm2zLmSeqNt2/4HBQHjnJtkpk80YCLDsc+iLZMs0OqAGQfKiS9cbN?= =?us-ascii?Q?Lg5bYR+xdMxFEtknBrWcUnF0Wtg9fWgT2W65Vz5H+xSxtOameMtuc6u0z6Hq?= =?us-ascii?Q?u/XNfv44wdtZTI23rmhWsIDzGeyw2haWE53vsqAjlEw26YRIu0wRm1yXfHG3?= =?us-ascii?Q?HptodzmA0BnA1GebPmJWZ6QDnOVvqeyu7xfEBDJLXTgFM6pSAoKCEJvHhyEH?= =?us-ascii?Q?qvhOU08IwKHoAfbXHSncF4Ih2NfJVLTt8psfA6C/sH87+4JZCtO9jR0/kcek?= =?us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pgQNEALFgehWn85S93VGM43Y8AK8dF3sKRMsxxIoTa6LsEQKnhayRRTiqV/4KL54w6d+fnUJU30A2hRbwb5EbMqd7cSQ= X-Microsoft-Exchange-Diagnostics: 1;DB7PR04MB4219;6:OiAD94JqV4i5BQxx2j3dyroD5vWGr5hoQHTWEpagNf+c/bIXPGsJ9CkuzSdnSxLMOMKUqM3vDaZesTUWRjvYFcbw4tJP6CITZMu5GqWyC/l4C+vKUSwKE41KNifapqyp065EJdSwTIRkH0DeByx3i0QEq/rbZQBJShAZ7STX4OONNyX7xuGB3FGdOTQ+o1yNBpM5e7TJ4H3GLu52AzE3r2mBFLVSKWBuZAj68smnapB25SFpsaJcQ3LqLnV58kmOiwDw9wiPHyeW3wgJ58l830TCGGbmnOSV6Q/vXVHo/bMvTxpXocxSubpBIKJFHARcXNJztOGo+C7EgMHV8NgO223khHLdLyb5tqfeaGZOGl4qEFwQaRlxD+4B3E8hy/FYSlGaU6a76uLV09Ystoa3fyHOXSb6ttsBW63zp+RMIxgYq/kBY7/3qh9n7BGPxHOpF1ckk/d9je0IOFGrgS8qow==;5:D9ZR/wxyfss/51lygcXQkz6MOYl3MDu5/KrK/G4xZTpiE+rG5WP9n+Td7tytkkrrhphDK0bn8QHc5c2yx3CQ/8RuaPLT1kvii2/KMnp0dvxefv2AAVEghR2+SsmNwb6BzZB1BSjwPYEcmus2p27JhjZaJlB6aHU4YiiNjt3HQ8I=;24:kVqPM1r06s1XMcY6SUWHMlaYf/aT5WA4ats1z1uTz79Nn47Iukr9aBpiK6Pw7zhmo3sway1Y7p3sHL/Opn3BY798nN7Pm56Gx3isvMAZCCA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB7PR04MB4219;7:PqzozeJATj5j4SiODaYEpY3tnKVnOTLmP91VhXx1+T9OWzLoa9NxahKKeVSkx3Y4nKjbthr8X0jkYr887cjuFQxp2708DnJ8moFIaqzBhnsuBJw9Yt2GMMTJDk5HzY3CjY28WQ4paLjVzqG+gdIMt2wwey5UNHy0tcaNdrj9z+ze5vUOFnvoLZzfJwi7rLjSeJmJeciN6j5iI+Zro+5NY9CakueYoMA3HgxFlNyURzdfAY/HWfHeVOcqf4MIXuzi X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2018 13:39:47.5555 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1da4e02-7e9d-41f9-7ec5-08d5ecb3f012 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4219 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a rebased version of below patch series against latest clk tree. [PATCH RESEND V3 0/9] clk: add imx7ulp clk support https://lkml.org/lkml/2018/3/16/310 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: v3->v4: * rebased to latest kernel * make scg and pcc separate nodes according to Rob's suggestion 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 (9): 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 .../devicetree/bindings/clock/imx7ulp-clock.txt | 87 +++++++++ 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 | 85 +++++++++ drivers/clk/imx/clk-fixup-mux.c | 2 +- drivers/clk/imx/clk-imx7ulp.c | 209 +++++++++++++++++++++ drivers/clk/imx/clk-pfdv2.c | 201 ++++++++++++++++++++ drivers/clk/imx/clk-pllv4.c | 182 ++++++++++++++++++ drivers/clk/imx/clk.c | 22 +++ drivers/clk/imx/clk.h | 92 ++++++++- include/dt-bindings/clock/imx7ulp-clock.h | 109 +++++++++++ include/linux/clk-provider.h | 17 ++ 14 files changed, 1166 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/imx7ulp-clock.txt 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