Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6649620imu; Wed, 14 Nov 2018 05:02:56 -0800 (PST) X-Google-Smtp-Source: AJdET5eGRgitt4xY7NKUTYsLL09VGePUSirlTM6gRg5pfGRDiahk+Kkk+IFsx3LDWspzOdUeD2Hi X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr1805270plm.313.1542200576691; Wed, 14 Nov 2018 05:02:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542200576; cv=none; d=google.com; s=arc-20160816; b=z1HFdB1ooNX2b5W5zt0lPfIaUQwS5rKI8kIfPThBOs3sH5iktbRTdrVP7UqoSlSOpl wElfumPAHvVDmL1ICaHfAxG3EevEMshLVg3ip3zDW4Nh4S2RHzK9vveHqM5RNTZ13Oa2 sxr2c17oYI2uT2wFcLQ6K5aJkyx43Og7pwULxglwlq96qiUogU85PdzpbfX7bJ6H6p2E X93TUtbFo7Ih8uytT4W/Ou55MQCSq7tu3OdgcBY0jsjsp9e37XU8r1tOg0zmDq6f1OmV uxNp9Rly3zDbqCF5D/ISIVzRdzbUHGfq90lMYAVq3MbgmgzkdTE29GGr6hvZtgLCr2WL uV7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=4y9ko9sSOl+xC7S1ZMqDGQcix+QWxbX/dXLo6/T5exY=; b=yaWPSHtkonYuMPiL00wPbxJEZehda71GNe5khti6ATac+j/ReodneUOKK6oPL7axO/ FhwmnFBYak+LxCt+fj9cJi/SPFlwYzu6nInMlshutXF06Qpp7drW9DezAEqNKjET6TQ/ C6KIWf1fIF8z17PS/zUkIDG2XStUtlvm/7DLXPSwBzFM/KjrOlUDtxyZZ3XaCADcT96k aU4HGuui0P3+xfJ0KJ3EwvYkrqjXijKph1lopkGk0EvbQNy7lqdQDPeZDcn63sW8b1O0 ZvbqJilpEFJF0TX4htDz5jud8HkmKVWB1coPBZyX07czWuYn6tN7Q2Rp5ZSVvw3LRc+o tIuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YDxU6Mh+; 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 t17si933749pgu.257.2018.11.14.05.02.40; Wed, 14 Nov 2018 05:02:56 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YDxU6Mh+; 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 S1733201AbeKNXEs (ORCPT + 99 others); Wed, 14 Nov 2018 18:04:48 -0500 Received: from mail-eopbgr80059.outbound.protection.outlook.com ([40.107.8.59]:56394 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728203AbeKNXEs (ORCPT ); Wed, 14 Nov 2018 18:04:48 -0500 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=4y9ko9sSOl+xC7S1ZMqDGQcix+QWxbX/dXLo6/T5exY=; b=YDxU6Mh+xCzH0kt0Lg3Y5Y8DVIsoxSQuuJZkvrPwXxTSs14J9REQhdnn5+pf7b8A5Y0H63ow+DqWDGPoaD55iV59E802T7RPjpupjZDHbJ0UQjTHX3i4UHd2nMvSJkfq+5TVRvuc+d4uQ8UGXbfARxEJ6iRTIVdWOzrqtOjN3ng= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4066.eurprd04.prod.outlook.com (52.134.125.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Wed, 14 Nov 2018 13:01:31 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1294.045; Wed, 14 Nov 2018 13:01:31 +0000 From: "A.s. Dong" 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 , Jacky Bai , dl-linux-imx , "A.s. Dong" Subject: [PATCH V6 0/9] clk: add imx7ulp clk support Thread-Topic: [PATCH V6 0/9] clk: add imx7ulp clk support Thread-Index: AQHUfBop1Xq5Us4kAEeJejcBpfY7Tg== Date: Wed, 14 Nov 2018 13:01:31 +0000 Message-ID: <1542200198-3017-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0057.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::21) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4066;6:Fx5ibsszKcU97p+r8NAuPjE2TKC+N4iaPfUG0Wm3QT2lwbhG0S8Jbt0OgZsNRJX9/rkg3ufbiylCcI7TBAez89U+wxW9nsS2KKW0w6JTYthv9Huk19lM10Ekmi3JspNlt6mfg8Jc17no31KMmplexT4fU0kezDstmKL5ijo++yhZy0t987d+DQP8eZTn10q6QmZj78QIyMFrB5EpOcR+v2WBpy7fAInwPEt59D1kjlbRWxy2hIg6srYtTT4eNVttznEM4mTHmA2oyJsfxWJ5fmVU3bXA4qH38SR66iOtEvVC7U0SVOfQB+B+SchiH/cwMT88MDqkOK54tRG3zRN1Rz1x8SSfA2b1VX8yINKsidtbAKfxvrxMhH40nfUPHbX7U4I7+4r9MMID2T6kwKtjTy3XMWF0lfJN8nMpDaiU1rFWaCFaXAD3Wajm/C/kSu/uL0etYvqK4dhUsn4wymh+mA==;5:Q5+n8ytjLnEuGZ65PPRLTAtoX/4jVlC3bVRk4P4fnuM8Xsnt1U7wG/SKUyWtllnO+O+5suTBCEAxtpdU7++8VER5KNodOxQ29h4CRXdjjCBaJrRxv025M4+gQMprkwAztQw3gpb+AGp8XhTz0Bxx3TulQWIMbXbZSE4rP5vJAbw=;7:txLy8KUEjYreRsLfAPTFCgvTSVCxufB4C3xrcAMH2LK4gWCF2sS/vP/I8YFNvhmpEEOMujP62CmaUYDMoOhEke+ctUmnRUoWJ1K2LpkAQusJ7RZqOWSfTYCfOBHAkRQuBXy8jkbSUchT06AXxODBjw== x-ms-office365-filtering-correlation-id: 20f9f041-a664-45af-99d0-08d64a314c1b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4066; x-ms-traffictypediagnostic: AM0PR04MB4066: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(269456686620040); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231410)(944501410)(52105112)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB4066;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4066; x-forefront-prvs: 085634EFF4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(979002)(366004)(376002)(396003)(346002)(136003)(39860400002)(199004)(189003)(54534003)(5660300001)(25786009)(6916009)(14444005)(6436002)(4326008)(6486002)(486006)(54906003)(71190400001)(7736002)(305945005)(86362001)(2616005)(36756003)(14454004)(71200400001)(186003)(476003)(97736004)(99286004)(68736007)(8936002)(6116002)(3846002)(2501003)(8676002)(26005)(81166006)(81156014)(52116002)(478600001)(50226002)(5640700003)(102836004)(6512007)(2900100001)(105586002)(256004)(2906002)(53936002)(66066001)(2351001)(106356001)(6506007)(386003)(316002)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4066;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:3; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: fcE0DeADsq/2PJA6YZiu+2naP33fzdw6cQFNJvb1SjN1qSA4jSQ+U2yvlQrZXgMCSDDlWmXm3w09T3jaLsWKL4e3G65D5PGNG2K590qmQFdQ1nQMy4LzTUdTVke6Yt5XVjxfHCDIe8rQH8RwobiUevIzTKPS6NV0nNLyfAchh+ggk8tGcbR+zz3i5BsorCdOdfWrkFcObmn522yoLSbZv5jqqE+oHjF0jAUCbjV4PYNg0RQU00UoM6BCGUy9GMLffWGn35MfidlVzey/SQc80iOFS6+x8ZvF66QmUlYOoE2Ly9ilbT9+LiBYBe5lnJSoT8+QOTfpZD7OQg+k+u9/Bp6AYVA3HMVVLfoRurYw7EI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20f9f041-a664-45af-99d0-08d64a314c1b X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2018 13:01:31.3116 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4066 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: v5->v6: * move gatable divider from common divider to imx specfic folder(suggested= by Michael) * a small update of PATCH 9 for ddr/firc/dpll/sosc clocks to use divider t= able v4->v5: * rename to clk-composite-7ulp.c as we have another clk-composite-8m.c, function name also changed accordingly * binding doc updated with adding input clocks for PCC module v3->v4: * update after changing scg and pcc into separete nodes according to Rob's suggestion v2->v3: * Patch 1 changed on: 1) split normal and gate ops 2) fix the possible rac= y 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 possibl= e 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: imx: add gatable clock divider 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 imx7ulp 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 | 104 ++++++++++ drivers/clk/clk-fractional-divider.c | 10 + drivers/clk/imx/Makefile | 7 +- drivers/clk/imx/clk-busy.c | 2 +- drivers/clk/imx/clk-composite-7ulp.c | 85 ++++++++ drivers/clk/imx/clk-divider-gate.c | 219 +++++++++++++++++= +++ drivers/clk/imx/clk-fixup-mux.c | 2 +- drivers/clk/imx/clk-imx7ulp.c | 220 +++++++++++++++++= ++++ 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 | 96 ++++++++- include/dt-bindings/clock/imx7ulp-clock.h | 109 ++++++++++ include/linux/clk-provider.h | 8 + 14 files changed, 1257 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/imx7ulp-clock.t= xt create mode 100644 drivers/clk/imx/clk-composite-7ulp.c create mode 100644 drivers/clk/imx/clk-divider-gate.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 --=20 2.7.4