From patchwork Mon May 15 13:59:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9727039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 231A460380 for ; Mon, 15 May 2017 14:00:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FBC1289B5 for ; Mon, 15 May 2017 14:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DA52289AF; Mon, 15 May 2017 14:00:30 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01CFF289DE for ; Mon, 15 May 2017 14:00:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965150AbdEOOAY (ORCPT ); Mon, 15 May 2017 10:00:24 -0400 Received: from mail-by2nam01on0073.outbound.protection.outlook.com ([104.47.34.73]:41024 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965356AbdEON7y (ORCPT ); Mon, 15 May 2017 09:59:54 -0400 Received: from BN3PR03CA0105.namprd03.prod.outlook.com (10.174.66.23) by BN1PR03MB169.namprd03.prod.outlook.com (10.255.200.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Mon, 15 May 2017 13:59:42 +0000 Received: from BY2FFO11FD023.protection.gbl (2a01:111:f400:7c0c::193) by BN3PR03CA0105.outlook.office365.com (2603:10b6:400:4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16 via Frontend Transport; Mon, 15 May 2017 13:59:41 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; 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 BY2FFO11FD023.mail.protection.outlook.com (10.1.15.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Mon, 15 May 2017 13:59:41 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4FDxEqn015180; Mon, 15 May 2017 06:59:37 -0700 From: Dong Aisheng To: CC: , , , , , , , Dong Aisheng , Rob Herring , Mark Rutland Subject: [PATCH 7/9] dt-bindings: clock: add imx7ulp clock binding doc Date: Mon, 15 May 2017 21:59:21 +0800 Message-ID: <1494856763-6543-8-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494856763-6543-1-git-send-email-aisheng.dong@nxp.com> References: <1494856763-6543-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131393303816655878; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(39410400002)(39850400002)(39380400002)(39840400002)(39400400002)(39450400003)(2980300002)(1110001)(1109001)(3190300001)(339900001)(199003)(189002)(9170700003)(5660300001)(498600001)(85426001)(305945005)(81166006)(2906002)(189998001)(8936002)(2351001)(5003940100001)(33646002)(6916009)(86362001)(4326008)(36756003)(6666003)(2950100002)(8676002)(104016004)(50226002)(106466001)(68736007)(77096006)(110136004)(48376002)(50466002)(105606002)(47776003)(356003)(7416002)(54906002)(38730400002)(8656002)(50986999)(76176999)(53936002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB169; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD023; 1:Hk3BSenlA3pdpATzh+LVF4eRC4+JIvbtn5Rn+/+5cd8vmISJ8rpsxhg5SzumaROrM2qd/41xZ/+jzuDRk+EqGOEpQKXfA8scanKhe23eDfT1KzvhUkUt1ln+gNTgKW1730DC976AweubFV/4gnQEHtTW9l08wdcQfnfNIixA/cCgcz0mNc9bCshj46Bxi885bU/wLqRUQ774HE8a2BERA25J5rOMtSXn7skielMUlWdr7lGnkB5WL9+DYasjfP0o7zboov8qwYsLszqTlZU0YAhLCon2ZN5mef9xP88/DpSRGcgnTtYllkcBipaPHBc++aBR+Iv+Wvqi7GQ1eSraU+LbHoTRLYFDGQ+H1e6rdAeSN0swsmLPw/5UdWNaU7XHryae7ZLgTTtLsGIX5ozyMEtenc7H65CjxftcuiVWbKWcAGh8ObMPQhZ20WaiISANjjaq6Uzx5uC56Vu8oNE+LM02jvlXbU9X6WtDNw+bfR+Rq0ZxD/cj2Rfwro7RTHntMbHZhllecnzExfTU/vkqXGYxzWn4w1F0AqxWKe3bzyKrS+mxba7g0xaNPQcg9MPUTNQCoknRuij1aAEIYhAxJsoQpSDAQwicg/5VGcB+F8UF0si+AeEuhd2Ba32wmWjnxPUDL3iATHEoCNzQKAqLxJ/xHdN898Vyjbc6luWYS4o= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9aaaf7be-bfb3-4275-5406-08d49b9aa252 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN1PR03MB169; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB169; 3:FEDOkwCTuXkAWXo0N+H4Xo1S5nIbDPODu0lPG37WszfbWWuu3KRS4k3zYpsWCJpsr/JFcizbmfTi84hHaV+elSh2EQpR/GzlHW9luOCiAUGmtx7a8lQQZXtTnkUWvNXx7hoDAmZnmIUk7Gr6q+6a1sRmL51xVaBSgvUjK75SJeTcAczyAchupziggEZWqvXHI3LBfq8mWxF4j923ZtmIczlHpXsgQtZRGm3h0l+tEsWKyxA56A6cR4kcCKD1CfuygaeaNGLXkHYA+mVYI219a3WQ+gTv5dUtN3gdRb8sm3rgTxP2Re+/ZR6z2zgiqBws/i7igfOVVsVGzvrVY/fwYdmJspm+6Wpt3pEFa2JicqJlVLpWP+WHZ5m+oeF5bJQONF0AfToi7UbDh7DDJuGFV6vDj32ZQOdni2qkgku7kbcULYoHSRkButE5/7ehLzSj; 25:wAP8e5oJNjTURy3Uwxt6x1YDwRQAiPJaacg6V+3SJVhKaJTVajUd+2jvIuypCSo5mUdp5ZkoNKA5fPi/mwsJPz1s5GE/XyeYpahcWFpl3W0gNFseb8ffcEr42LywZuIAJXN7PoglV5cjnsqRtKa6ktt3XccC8hIWTevXkslKWNNsIJR63p29sVRNZ5mSNJejntG0PKbo7mt3JMJRBR3V1sVtINrl5t5UiwNFOdR+gGWlDR9AaoSCVtWnweTVRaK9WL9vzvV3qBRKXujVSx67oSnk3NjdyYTxrucL1Y2RDHF2YhbFw6MeRncISHoy8vreC5HTzCxCUTWkoS44UzSkLvFO5J1MNKdw2iWv18yfR3WTIz3f+/Yy/DK7ML3Hw8LmzPNYxnUpejnf+9UrD/pVwCXE+JJyh9LfquK43SOLqv0et9+YQzK3tdfruyZlsASdOTHry6Bj7uuw0JgrKvt7ug== X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB169; 31:J33DE3jdiS0acUZX3F3wx5yizx25LxPgm0FNJFVlVY1jqhRJEGZ2/u1p6UwBRT8tZASSyfa6BGD7SQX59KmTrfDFVpUpmyIwOkWqDlVLgT2EcUQ/aAClw2VVi9WD6HbP74OfyhxuEnCuhqPs2nc0cvvOEcCsZMWw8dsEHunKDsv2BKXOmqtP3qrgjTPlVwF1DW79vIrUE6z/oKeRmHVFtElEe3XGO23MuX1gjeNPOrYt6Od01K0FJYfFKdvJ1SmCWi9U8XITJvAlWoNpz+40ow== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13023025)(13024025)(13018025)(13015025)(5005006)(8121501046)(13017025)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123559100)(20161123563025); SRVR:BN1PR03MB169; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB169; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB169; 4:S/UoUNqcV8ah/veRVzNbwmD/QfG3hroRgyq7nPdDTzv?= =?us-ascii?Q?q8Emp6bXiMVsH/QdbqpCpkyQDkKW2qTqDWrCmxpjCHgveEcbbhGIZLOjhrgr?= =?us-ascii?Q?ISRolni+xMHpviYpjBj2IGm/y0iwiuPKywYUuIhuJPT3E9xti+l4owkjAX6F?= =?us-ascii?Q?QLBDAl+JIiu8fcg04lOVtjLLCcPEHkm2tk16QZqhyiT/faBn8Hx1iXU5Vay9?= =?us-ascii?Q?ZLK6/K+SR37jTfC0mxIPZl7iNZrAhVO9vzooSJ0T1jkIxsZMgMz0CZ1ZjkL4?= =?us-ascii?Q?C+W+mCKjoi64UDMqpFZ53rYnKN5jEZoTna+M6gHb+zrLRgRVWTqRAZcMBkIa?= =?us-ascii?Q?JJsc9IqxdeJcbLtecR8NtYPaY7CfBUvKxfDTBEM/NxWz5w+sVMTfwDB0fl+9?= =?us-ascii?Q?6bvbzLApbIg6yrrpLkaJaMAtq2nTwuaMOJnIpducal/cgsHm4EeACYv/4ROv?= =?us-ascii?Q?FLq7S3lYzcqAXgnirqFRbc+egMt1NReyqWqyvu69Mj4PXwUaNbkOZSDHbQP5?= =?us-ascii?Q?wTTuM1/RCrLeg2SEnMbmLuaIaNuiMDg1VMuqFYVZBiTVDvEyHeftcLN2eqS2?= =?us-ascii?Q?KahINGNLOGRo64nK3S3tdT3Iujk467xDLnBzWCpPplXKJwuXhHe2eQDBYjrD?= =?us-ascii?Q?4vY/t1AtT7AsJx45IsyuTHRmSbxtAqdsx1NQBsC15ZOEICjtnYHNFVZAsFPO?= =?us-ascii?Q?1QnkBAZ+uSx2oS5Py7HlCFoYbkZg2szPD2VUr60dX9GOH7IU8keoRVdDu8rn?= =?us-ascii?Q?9j3mQHfOQi6l4f2+jk4ugB20CEzGRauHsOi2ymUKu3YBl4APuCy1yjp5aT9g?= =?us-ascii?Q?LwZNaf3gi4vk8SpXZaIEo/Yl8REuGvX6lMJarZc7Y8p6ePEAfoObV2LGSvbA?= =?us-ascii?Q?IBjdsSBCfIcU7s4i9P2G63ZFdMTr9iyBQkD49QeBSQg1J+AYkm0RjAkSB8ky?= =?us-ascii?Q?8iCaLWQWwxENxVmwnzE7F5JkDybTAsLOhsPnskS9iQ9vN1r/omP8vJcxbhUQ?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 0308EE423E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB169; 23:f90Sni+aWwgTkabFwB0BQPEV9nzMQYrRBByUqheiHz?= =?us-ascii?Q?oB/50PflYM0XqJLO/Tblu+gav18CLcKoTu8UpTUMkEnpH9nUntdDGeD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L61w0gT5yQZ1iZgqcEqV/E5HPhMu1aEuJD6Qau4KCY/bHKRTCR91uk+DFkIbvUDGTD3sbba3/10kHKZZHFqIrgPgL0dwkhqoW2ys1NibRZ6lS555sBo; 24:VEcwROlv9cqnIsLJpaLYE0IMpMrFrnD1KrADltJoacJz1oXg8SNqJ/flm1/8PAqPsCt2k/gcBRAcFXsB8uioKb7MS85FlWsqkub2q9r2cnA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB169; 7:C38AduUHySEV9UUBpJhgSjIStSxFQXCCh74wr0zmGNBIHsSf0ZASDyE68Le+Gl6NSo+y+ciXsBqbO04hQ+qyYeZBZNcI7Ob2mDRirSPYAl9835RyM+285W2Ba2tWIjaT7GiH0YiX9tK6TDsCmX9Kn4YcUM07Xf5DNzUY/4vNmzFRrRCBFXa8q5x5p6GwwByQtevDahsFXFjdPFqXPVhScXrmf9FpGJw2AetvYYAy/BstlfTwvIbhbTyYlI6xxUAS7fqzA+ufuAKBr4uVINZuqC9G8iB0pQUmtnBaOEp9UHOvECa/ZBqoOTPDCie42/tv+t7c01I9y7vIAWvUNx0PoQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2017 13:59:41.4783 (UTC) 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: BN1PR03MB169 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Note IMX7ULP has two clock domains: M4 and A7. This binding doc is only for A7 clock domain. Cc: Rob Herring Cc: Mark Rutland Cc: Stephen Boyd Cc: Michael Turquette Cc: Shawn Guo Cc: Anson Huang Cc: Bai Ping Signed-off-by: Dong Aisheng --- .../devicetree/bindings/clock/imx7ulp-clock.txt | 62 ++++++++++++ include/dt-bindings/clock/imx7ulp-clock.h | 108 +++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imx7ulp-clock.txt create mode 100644 include/dt-bindings/clock/imx7ulp-clock.h diff --git a/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt b/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt new file mode 100644 index 0000000..76ea3c7 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/imx7ulp-clock.txt @@ -0,0 +1,62 @@ +* Clock bindings for Freescale i.MX7ULP + +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 binding doc is only for A7 clock domain. + +Required properties: + +- compatible: Should be "fsl,imx7ulp-clock". +- reg : Should contain registers location and length for scg1, + pcc2 and pcc3. +- reg-names: Should contain the according reg names "scg1", "pcc2" + and "pcc3". +- #clock-cells: Should be <1>. +- clocks: Should contain the fixed input clocks. +- clock-name: Should contain the following clock names:"rsoc", "sosc", + "sirc", "firc", "upll", "mpll". + +The clock consumer should specify the desired clock by having the clock +ID in its "clocks" phandle cell. +See include/dt-bindings/clock/imx7ulp-clock.h +for the full list of i.MX7ULP clock IDs. + +Examples: + +#include + +clks: scg1@403e0000 { + compatible = "fsl,imx7ulp-clock"; + reg = <0x403e0000 0x10000> + <0x403f0000 0x10000> + <0x40b30000 0x10000>; + reg-names = "scg1", "pcc2", "pcc3"; + clocks = <&rsoc>, <&sosc>, <&sirc>, + <&firc>, <&upll>, <&mpll>; + clock-names = "rsoc", "sosc", "sirc", + "firc", "upll", "mpll"; + #clock-cells = <1>; +}; + +usdhc1: usdhc@40380000 { + compatible = "fsl,imx7ulp-usdhc"; + reg = <0x40380000 0x10000>; + interrupts = ; + clocks = <&clks IMX7ULP_CLK_NIC1_BUS_DIV>, + <&clks IMX7ULP_CLK_NIC1_DIV>, + <&clks IMX7ULP_CLK_USDHC1>; + clock-names ="ipg", "ahb", "per"; + bus-width = <4>; + status = "disabled"; +}; diff --git a/include/dt-bindings/clock/imx7ulp-clock.h b/include/dt-bindings/clock/imx7ulp-clock.h new file mode 100644 index 0000000..2556106 --- /dev/null +++ b/include/dt-bindings/clock/imx7ulp-clock.h @@ -0,0 +1,108 @@ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2017 NXP + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#ifndef __DT_BINDINGS_CLOCK_IMX7ULP_H +#define __DT_BINDINGS_CLOCK_IMX7ULP_H + +#define IMX7ULP_CLK_DUMMY 0 +#define IMX7ULP_CLK_ROSC 1 +#define IMX7ULP_CLK_SOSC 2 +#define IMX7ULP_CLK_FIRC 3 + +/* SCG1 */ +#define IMX7ULP_CLK_SPLL_PRE_SEL 4 +#define IMX7ULP_CLK_SPLL_PRE_DIV 5 +#define IMX7ULP_CLK_SPLL 6 +#define IMX7ULP_CLK_SPLL_POST_DIV1 7 +#define IMX7ULP_CLK_SPLL_POST_DIV2 8 +#define IMX7ULP_CLK_SPLL_PFD0 9 +#define IMX7ULP_CLK_SPLL_PFD1 10 +#define IMX7ULP_CLK_SPLL_PFD2 11 +#define IMX7ULP_CLK_SPLL_PFD3 12 +#define IMX7ULP_CLK_SPLL_PFD_SEL 13 +#define IMX7ULP_CLK_SPLL_SEL 14 +#define IMX7ULP_CLK_APLL_PRE_SEL 15 +#define IMX7ULP_CLK_APLL_PRE_DIV 16 +#define IMX7ULP_CLK_APLL 17 +#define IMX7ULP_CLK_APLL_POST_DIV1 18 +#define IMX7ULP_CLK_APLL_POST_DIV2 19 +#define IMX7ULP_CLK_APLL_PFD0 20 +#define IMX7ULP_CLK_APLL_PFD1 21 +#define IMX7ULP_CLK_APLL_PFD2 22 +#define IMX7ULP_CLK_APLL_PFD3 23 +#define IMX7ULP_CLK_APLL_PFD_SEL 24 +#define IMX7ULP_CLK_APLL_SEL 25 +#define IMX7ULP_CLK_UPLL 26 +#define IMX7ULP_CLK_SYS_SEL 27 +#define IMX7ULP_CLK_CORE_DIV 28 +#define IMX7ULP_CLK_BUS_DIV 29 +#define IMX7ULP_CLK_PLAT_DIV 30 +#define IMX7ULP_CLK_DDR_SEL 31 +#define IMX7ULP_CLK_DDR_DIV 32 +#define IMX7ULP_CLK_NIC_SEL 33 +#define IMX7ULP_CLK_NIC0_DIV 34 +#define IMX7ULP_CLK_GPU_DIV 35 +#define IMX7ULP_CLK_NIC1_DIV 36 +#define IMX7ULP_CLK_NIC1_BUS_DIV 37 +#define IMX7ULP_CLK_NIC1_EXT_DIV 38 + +/* PCG2 */ +#define IMX7ULP_CLK_DMA1 39 +#define IMX7ULP_CLK_RGPIO2P1 40 +#define IMX7ULP_CLK_FLEXBUS 41 +#define IMX7ULP_CLK_SEMA42_1 42 +#define IMX7ULP_CLK_DMA_MUX1 43 +#define IMX7ULP_CLK_SNVS 44 +#define IMX7ULP_CLK_CAAM 45 +#define IMX7ULP_CLK_LPTPM4 46 +#define IMX7ULP_CLK_LPTPM5 47 +#define IMX7ULP_CLK_LPIT1 48 +#define IMX7ULP_CLK_LPSPI2 49 +#define IMX7ULP_CLK_LPSPI3 50 +#define IMX7ULP_CLK_LPI2C4 51 +#define IMX7ULP_CLK_LPI2C5 52 +#define IMX7ULP_CLK_LPUART4 53 +#define IMX7ULP_CLK_LPUART5 54 +#define IMX7ULP_CLK_FLEXIO1 55 +#define IMX7ULP_CLK_USB0 56 +#define IMX7ULP_CLK_USB1 57 +#define IMX7ULP_CLK_USB_PHY 58 +#define IMX7ULP_CLK_USB_PL301 59 +#define IMX7ULP_CLK_USDHC0 60 +#define IMX7ULP_CLK_USDHC1 61 +#define IMX7ULP_CLK_WDG1 62 +#define IMX7ULP_CLK_WDG2 63 + +/* PCG3 */ +#define IMX7ULP_CLK_LPTPM6 64 +#define IMX7ULP_CLK_LPTPM7 65 +#define IMX7ULP_CLK_LPI2C6 66 +#define IMX7ULP_CLK_LPI2C7 67 +#define IMX7ULP_CLK_LPUART6 68 +#define IMX7ULP_CLK_LPUART7 69 +#define IMX7ULP_CLK_VIU 70 +#define IMX7ULP_CLK_DSI 71 +#define IMX7ULP_CLK_LCDIF 72 +#define IMX7ULP_CLK_MMDC 73 +#define IMX7ULP_CLK_PCTLC 74 +#define IMX7ULP_CLK_PCTLD 75 +#define IMX7ULP_CLK_PCTLE 76 +#define IMX7ULP_CLK_PCTLF 77 +#define IMX7ULP_CLK_GPU3D 78 +#define IMX7ULP_CLK_GPU2D 79 +#define IMX7ULP_CLK_MIPI_PLL 80 +#define IMX7ULP_CLK_SIRC 81 +#define IMX7ULP_CLK_SOSC_BUS_CLK 82 +#define IMX7ULP_CLK_FIRC_BUS_CLK 83 +#define IMX7ULP_CLK_SPLL_BUS_CLK 84 + +#define IMX7ULP_CLK_END 85 + +#endif /* __DT_BINDINGS_CLOCK_IMX7ULP_H */