From patchwork Wed Feb 13 19:05:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 10810793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61A7D746 for ; Wed, 13 Feb 2019 19:06:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E6AE2DCC1 for ; Wed, 13 Feb 2019 19:06:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 418B82DCD2; Wed, 13 Feb 2019 19:06:00 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E89DC2DCC1 for ; Wed, 13 Feb 2019 19:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=peC9XID3S9hgI3fIHcldi2Z5eV4U8F4ELdEFgWtVCMg=; b=TfIMQrk6uWFKKb bPBRdOfvn5cFhGP0Io+SAoZbvQbatXLmFSU3h+OZc83d5DMNT7Nq0NKCJRq4V3EEQyj25fiKBsDnC Oqo87HKLPyExpCGXACDKgDxyO4TIAGdgRfFNbcZfQ8jh0zghaEksnh3so2NbH+fjv+RLVL3xIRON6 MGTwiJi+7Ppom7GKuPGIs+ll/lA0Rtutj+8ECRW4/wn/BPbsRzCg1UQZAYB0ZfBrGjnvhpOfJlim0 fByZJ+nnDmCby4RfUay/4xQthSMsWoDnFJuziN0uEmab6ndVB8ug/mOVGLO8/Lk4q3hH9kvoNAprU pYz4av2IGuvfZkoXMmmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtzr4-0006Bj-Ej; Wed, 13 Feb 2019 19:05:58 +0000 Received: from mail-eopbgr70040.outbound.protection.outlook.com ([40.107.7.40] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtzqS-0005P8-T5 for linux-arm-kernel@lists.infradead.org; Wed, 13 Feb 2019 19:05:23 +0000 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=ep2w2cZAfcfxXLCNjmOf3YUxLKRZ44/siUE9rL1xvpc=; b=lISvBKZDJNXyuOcawYYRMVYjCko46qEsy5kbHl8r6FbAAeTVtOyb0TDWaIdPiMA/DohduyFsuJWVqr4tSoKV4b2WH+Kirik/fsj0E/ZW71WkFE7wwUf4G17aiqZSTWonFq/BVgEp0AqK0psmYqji45mI/votMB0SmB/DJLbclOo= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB4515.eurprd04.prod.outlook.com (52.135.148.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 19:05:15 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::ec4e:4756:a9dc:914c%3]) with mapi id 15.20.1601.023; Wed, 13 Feb 2019 19:05:15 +0000 From: Abel Vesa To: Rob Herring , Stephen Boyd , Mark Rutland , Mike Turquette , Shawn Guo , Sascha Hauer , Lucas Stach , Angus Ainslie , Anson Huang Subject: [RFC 3/5] clk: imx8mq: Add the missing ARM clock Thread-Topic: [RFC 3/5] clk: imx8mq: Add the missing ARM clock Thread-Index: AQHUw88NcMpiZioGe0qpdfUO8mvjtg== Date: Wed, 13 Feb 2019 19:05:15 +0000 Message-ID: <1550084693-9797-4-git-send-email-abel.vesa@nxp.com> References: <1550084693-9797-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1550084693-9797-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0701CA0058.eurprd07.prod.outlook.com (2603:10a6:203:2::20) To AM0PR04MB5779.eurprd04.prod.outlook.com (2603:10a6:208:131::23) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6638f32-0c52-4fb9-a8b5-08d691e62fe9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4515; x-ms-traffictypediagnostic: AM0PR04MB4515: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB4515; 23:PXtsI8l0GOwS3P2DEVazcrc2dmYJsvQJRrgfW4P?= =?iso-8859-1?q?XGG/Hq3yoHSbgbh?= =?iso-8859-1?q?SwzyRC4z0/YKFgWBg5DAk84WtRNvnVaWcJOyVIissWBNrFy+kWEIt/39kY+K?= =?iso-8859-1?q?xEX3Y21BBQnXzLvaEuJH9My+bVjsafgHQs0ashzJ+b6iv2oW071VFF/N01D0?= =?iso-8859-1?q?QhNwj5Xp549HFnuJr77lYL8VX+iEiwvgucW57FwQe5lnHmIYASVZ0RjTa2OU?= =?iso-8859-1?q?XthVeNao7ZWc9yIcHBs2PKWyBzHQpraHtNMSUtZ0bDz623RZJ69xORSkYvHV?= =?iso-8859-1?q?zeb8avngXene+rzDP1BTMOG8F5t9Rqhmm36yd+rJ9SyTvPY3EARrGu/WIEYK?= =?iso-8859-1?q?Ta7OMfCrdyef075MrQDkmiBIys++aaVmePSYfc698B1dKp+0enACIqap1drj?= =?iso-8859-1?q?jj9/xO5pGP+zMor8AsaBok2O76l8bLfT+qudw7iJi6PcEnF/tETuUTsO+5H1?= =?iso-8859-1?q?zpANfq5kkfLzw8yESdLBCq77HHXBRDJfkzHpj0cERJWVN7lyhxSJJxSK953i?= =?iso-8859-1?q?iPioirgBEdd7phkfeg9J7dtzaDJ2N5SbMBQBg4aLpnxjIOJd6g3OdAtPUi22?= =?iso-8859-1?q?m6/CNKjZQiH47crjIcP6Fs/30TGtB4+in+18cDNroc758rqHtnssX+Cyfnhl?= =?iso-8859-1?q?X7FDBDbMPU1i10tdv4WQSgJfbRbKjIwI77hOZ42pS0uFd5r6JkKRRjTc+YGw?= =?iso-8859-1?q?XhzS9XfNFWn1/ctprg0pDMRlG92vXNWGt7ikinCaR5cJibb5z+/CI+ZUxwf4?= =?iso-8859-1?q?3wUyKEReD5LUWpE4ib7Wscw7Qji6DHrgkpx+nJEbCJiNRPak8fc0de0Mrk2T?= =?iso-8859-1?q?TImwiQqYkIvUW2QfkhEoHQwqiIFLwqoyWkrciSlbkT+E0IJKMfCY8EX4lWQm?= =?iso-8859-1?q?DDJicQHDr+aWMGepcKuzt9r1S3GZoFogFpcHfvr/k8wiU/rWe1YSVcGhOgzN?= =?iso-8859-1?q?aS+KUb07rdeb2oMxJTkODVSrNeJ3e9Uuo/Wm5QVTIU+++8dvcv+GdYjZM78h?= =?iso-8859-1?q?Rp58NTmniJjY7YEntQSW18PPL0XG2L6aEE7vijvxcBXr/DEw7f6mnzq4N/su?= =?iso-8859-1?q?U548LaDL78DyOwcVsYYbEExLy0HrP0vV2dD6yDb5NFbf4yVPE7npdZSdTaAs?= =?iso-8859-1?q?paW//Y+pevY3XetW/an7P6lYO4C1VATtPLfKKkPIsYFeqjHeF/jUBAhh+vO7?= =?iso-8859-1?q?JKlipQg61e7sUiZZU9gV7uYf5lksBePp+RBtWp8YA8QtW8CEw+Dhx1743Bxa?= =?iso-8859-1?q?MLAY6RQ2eAledLnvXKtI9O6hxY?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(346002)(136003)(366004)(199004)(189003)(4326008)(52116002)(2906002)(6636002)(3846002)(6116002)(99286004)(106356001)(105586002)(7736002)(305945005)(25786009)(97736004)(14454004)(66066001)(53936002)(8676002)(81156014)(81166006)(68736007)(36756003)(8936002)(478600001)(6486002)(6436002)(6512007)(50226002)(110136005)(54906003)(316002)(486006)(186003)(2616005)(476003)(256004)(26005)(102836004)(4744005)(11346002)(446003)(71200400001)(71190400001)(7416002)(6506007)(76176011)(86362001)(386003)(44832011)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4515; H:AM0PR04MB5779.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: mYnueK+3dXUPxokeVd+BL4upnkq8vq60rF8xUd2XUxKwTjYVItJWa19jB9Vy0hE74lY6H3NqFIyjXmdRiSkhVFXqLISDJoWrDJSwH8NGbLln71nEZEC6d/8ZeCn749hRXiCEpZkizMrkAO5ITyG50MmB5Y8AUPkR3UG2iiU/iWoe2DW5Q2dv3Tp8cNnrjp9fy+lPajdVFZXXLHMfG9cjDqeHLkI0cjHTGsLS+23JEZMBztpHDLPBJ9k9Eb2/RhH5u5UnttvvO+bUyNwD26e0+0p/DhrxBwsLQh3gas+KZyEGdyPAP0TocwKkng7T5dF6beRstfymGeKZ4ZGnBH7sP/PMWbELe1QFpn1+Ur5ozwe8nPruEK5DirR2OLv3UF7kJRhsZxre6DH2EKHx7IIz74JDout6HEj4QTOrasLyahw= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6638f32-0c52-4fb9-a8b5-08d691e62fe9 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 19:05:14.4916 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4515 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_110521_161170_EF0A1D2C X-CRM114-Status: GOOD ( 11.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Abel Vesa , Linux Kernel Mailing List , dl-linux-imx , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the ARM clock as imx_clk_cpu type. Will be used by cpufreq. Signed-off-by: Abel Vesa Reviewed-by: Lucas Stach --- drivers/clk/imx/clk-imx8mq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 57499ed..8a283cb 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -558,6 +558,12 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) clks[IMX8MQ_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc_25m", 1, 8); clks[IMX8MQ_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4); + clks[IMX8MQ_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div", + clks[IMX8MQ_CLK_A53_DIV], + clks[IMX8MQ_CLK_A53_SRC], + clks[IMX8MQ_ARM_PLL_OUT], + clks[IMX8MQ_SYS1_PLL_800M]); + for (i = 0; i < IMX8MQ_CLK_END; i++) if (IS_ERR(clks[i])) pr_err("i.MX8mq clk %u register failed with %ld\n",