From patchwork Wed Jan 18 17:53:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9524627 X-Patchwork-Delegate: sboyd@codeaurora.org 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 C84ED60113 for ; Wed, 18 Jan 2017 19:28:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B92F828629 for ; Wed, 18 Jan 2017 19:28:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD69F2862C; Wed, 18 Jan 2017 19:28:55 +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 1E18828629 for ; Wed, 18 Jan 2017 19:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbdART2y (ORCPT ); Wed, 18 Jan 2017 14:28:54 -0500 Received: from mail-cys01nam02on0086.outbound.protection.outlook.com ([104.47.37.86]:59712 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751863AbdART2x (ORCPT ); Wed, 18 Jan 2017 14:28:53 -0500 Received: from BLUPR0301CA0033.namprd03.prod.outlook.com (10.162.113.171) by CY4PR03MB2470.namprd03.prod.outlook.com (10.168.163.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 17:54:06 +0000 Received: from BN1BFFO11FD012.protection.gbl (2a01:111:f400:7c10::1:151) by BLUPR0301CA0033.outlook.office365.com (2a01:111:e400:5259::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 18 Jan 2017 17:54:06 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD012.mail.protection.outlook.com (10.58.144.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Wed, 18 Jan 2017 17:54:06 +0000 Received: from r49496.am.freescale.net (r49496.am.freescale.net [10.29.244.18]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v0IHs3DF005932; Wed, 18 Jan 2017 10:54:04 -0700 From: Fabio Estevam To: CC: , , , , "Fabio Estevam" Subject: [PATCH 1/2] clk: imx7d: Add the OCOTP clock Date: Wed, 18 Jan 2017 15:53:56 -0200 Message-ID: <1484762037-10737-1-git-send-email-fabio.estevam@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131292356465817234; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39450400003)(39400400002)(39840400002)(39850400002)(39410400002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(104016004)(8656002)(92566002)(54906002)(2351001)(86362001)(626004)(105606002)(48376002)(189998001)(50466002)(110136003)(356003)(85426001)(106466001)(8676002)(81156014)(305945005)(81166006)(69596002)(97736004)(8936002)(33646002)(50986999)(50226002)(53936002)(5003940100001)(38730400001)(4326007)(6666003)(77096006)(36756003)(2906002)(47776003)(5660300001)(68736007)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2470; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD012; 1:p3qCSz4lHPRAgXBUUjhFvOoDZQ4GO9FWFhQtyMDUZipI6vz2RAWLXD9TlBBym97OVB/v22idv/zEAu+FP2+lyqY4NOh37SKjgVmscP8GrtspaVRcLLVXa+MY8osBbnksQzNRR3i8dsyFK+KfpbgFID+mMAhQfivVJQnkaF1y6DRCnSbHST3D3P4weFXHUVi4632wkSkqDG97SfdZYnjVsiVasSucZUPPl2X+D0SflMwM+qWhSdkGPP39kFHdlJuzkbA5HYOCs4pLqHnecPJ2aTdoH7uMlV8uR4XP2DfEOrjRgdp7vno9GHepI+MwZRdTytdgmEfCv5YCFYgrXq8hICkVTVERoyUQpy9lr9hg8yocBZV8oCT5BBYU4ZM51pklwRw4HHPu5pbr3Zw7r35XGMUSqrelM2o+hoBIN9aoiN/UGQQ3+4Pd7GP+2GP8g4+jrIeR2WaraPVCrGf0jTUDzT6dSj+OUnCulkFSKvMkqMYtRDUW4qGdUt0Xg7vQDCoeUdKgkBwyGg0arFcCpTXH0hQY/egXAq5+4Lxigc0HTjfUzUGuA/QKcEcMxfIFZ9Bfk0j9B8poaZMil2mwsn3t8zJs6kopyF5HX/s5+3+EbVj/w/W6GH0HDwwIoBEPYkLbziaB3lF0SWbd9WYXKKGxoonx2niG3jGIR3mqnur5mvGdGeVlt2i1/hO0Qh/3A4nrRy8ZjSg1PWAoEq95OyeLDw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6f314e6e-2dc4-4e93-b3d4-08d43fcaff50 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR03MB2470; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2470; 3:aH/DDqhhlBWaRxWukKB6wXH2N+zls0eVgYPdqZLhgmhicdWHzdvLCpIO888pN0qgVlWzzUKn2HbmuLKmYpxfU5DB0noNdv6GJXtEnH/xPGz+h5oa0beXasM1NwsX2Sm72sW6jjFgkx4moThgWfy/mQay/zsdNPbr9G8xdpE1S+SfWUGWLjNxKOSv5NiLs+lBIK7i6u8R04HipzxSM50f4Qb0+2P0/DqP+IJkLKjMQIhun4Ei8bhHcJmyW18OIyirkuuxe24wXuRkjaUNMdhccAEIusycxoPRN3Vr3VnYPlk+KbQQu07mLoM6kUwrMqddK4wZjrGrfFU6rJaclMc7dMtVL+/SkXHlpFaTtM8EPjPKT5+Kva5QOs7SN1tdrN6E; 25:o+pdE4m1jhmez4CmL/GDytNyU7ck1Mq/laRxut+7ahxWob0I/cWnH4xlWVN139DQrgtwiIMK01O9KXIYUOaEuGbQd9oumgE5SClbtWPXPmc3SWm227aSfmw5Dxe1UW+3/XO/Xd83R0wwGxGkCIfvgrER3kbRg9P8gLoJQN/izyi93Oj0aIWZdqlNvnoq9l/XpODwXSkyF/CweExYNKJU2K497Yw2jT6bxOLuAt98c5phBAGOeGaZT6/MX49tkmpfi2gwI2zQLcRTHvKydFPS2l6lhave1HVH5Zxu2I5jdc8t7etP/z+fAjSA4BmaMkhvICMiDT/3xD8P4Lqb6JdAfrVlirMjAlefwp4jQ3t4f6AiYsaDO3GGkoV1l4ixPBXwG44ckA6uy6JwtONqRm+shAglwC3dL2MH61jBQs69mzEowhPnQeyq2GpnkawAdjMDOkeaMXOw6yTNxLAc8HKaXw== X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2470; 31:hrXVT+xoXda4KWxTPIblKqpD64Welwa2yVnB+7qOZDJH7fxY0xhigExyOd1eq2UAmnbaB4JLdPxtApZQT2tv9AkjULC+1bC9AXYMYnVmMc2kwVfuKwHxAER5hwLzLWVEzMeHHNodgQAtILTxcYXIfILnd3wXNmHbjoIHD0iSezYmsE0o4nMGIJ8yPfa0iZDfmj58JUY12LC7mwsDww+4UggcNfOfDyeYJWmhqBrdSQSM2MHARZrd5e27fqXnesYrPv64kEdEuNm/vODfr1gpUQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13024025)(13015025)(13023025)(13018025)(13017025)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123559025)(20161123565025); SRVR:CY4PR03MB2470; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2470; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2470; 4:AwgbnWfzlrBPJoIr/C58oPEa5MKtCFji3shgE5e2DVh/iSurL4VMiDcH3LREZylJ4+7tzwdjMoX6v+dNMugXo/3mDsZOeaC8IUXqMtyX+6Xz6FLOifWpXL0cGEsqqm9w3FflnhsfLYqj7S/PdjGtqjoppa60lyKEyEQif2g9H5w/FHh2MGtQngZrdr/MvLKmiX7cKDCKF94J8IDYK8C0unLHVGEVEyn0mQ4WYMN5ipssN3YdOuEfw8reVBZdWOD/d9AfCN70Qc7At9zIm8CLx11XgNFNC3r0a0iGC4U2/gThJ4nD11KX0BqdT6jCXi9Dxpgsrk+bjq9EMWFv1FHx/s/Z0fXW2XLfQ3PW+YkPmiN1RcnUF6AZXhDfAglTjFvZxfn4pPrLNm4GL84LqZrkjUyniE187XPJEniRzW2hUat6hZw/cIkyp1dGBQhLPkavei5AibTUdjufnjQgFfAfxzbelWxpKC8ZjylY13KFeuQhj51gzMP8DIeVf9DKLch/kLBw7X2ywhWf/FsZt0RIhse/nem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G/OAyKJW6itvO63XC9+9NGdplulkQ6g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 17:54:06.3165 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2470 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 Add the OCOTP so that this hardware block can be used. Signed-off-by: Fabio Estevam --- drivers/clk/imx/clk-imx7d.c | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index e7c7353..ae1d31b 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -803,6 +803,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) clks[IMX7D_DRAM_PHYM_ROOT_CLK] = imx_clk_gate4("dram_phym_root_clk", "dram_phym_cg", base + 0x4130, 0); clks[IMX7D_DRAM_PHYM_ALT_ROOT_CLK] = imx_clk_gate4("dram_phym_alt_root_clk", "dram_phym_alt_post_div", base + 0x4130, 0); clks[IMX7D_DRAM_ALT_ROOT_CLK] = imx_clk_gate4("dram_alt_root_clk", "dram_alt_post_div", base + 0x4130, 0); + clks[IMX7D_OCOTP_CLK] = imx_clk_gate4("ocotp_clk", "ipg_root_clk", base + 0x4230, 0); clks[IMX7D_USB_HSIC_ROOT_CLK] = imx_clk_gate4("usb_hsic_root_clk", "usb_hsic_post_div", base + 0x4420, 0); clks[IMX7D_SDMA_CORE_CLK] = imx_clk_gate4("sdma_root_clk", "ahb_root_clk", base + 0x4480, 0); clks[IMX7D_PCIE_CTRL_ROOT_CLK] = imx_clk_gate4("pcie_ctrl_root_clk", "pcie_ctrl_post_div", base + 0x4600, 0); diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index 1183347..a7a1a50 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h @@ -449,5 +449,6 @@ #define IMX7D_ADC_ROOT_CLK 436 #define IMX7D_CLK_ARM 437 #define IMX7D_CKIL 438 -#define IMX7D_CLK_END 439 +#define IMX7D_OCOTP_CLK 439 +#define IMX7D_CLK_END 440 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */