Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2533889ybg; Thu, 24 Oct 2019 11:08:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSabaemyi7WE1JTJwTnVrtrODg4C2vtue4Lceu/YjRpA61gQUkq+hqwiilBxLxHw1kKfEz X-Received: by 2002:a17:906:4e55:: with SMTP id g21mr15073314ejw.0.1571940522131; Thu, 24 Oct 2019 11:08:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571940522; cv=pass; d=google.com; s=arc-20160816; b=QQ3xO6Iq/xjZikeSPpKTMs1ToHWsVXx+oSC0okdKN1tWQBEH3Sanvj72jbALUAxgmO ubBFJ9GEf0tVZzp3f+ZDXFBq5hY5EHTDDW+NUULaKraFJdJyfnOUF/tGPzmAq6LzUon/ /Ug9PPeEY0KZGXSGkggdxahs0vT5cjZJINRRoYhFS3S1C7BrImIBwhtyqtIkmQYlFK36 eTKR5c1RFxR038hV13DxCHl2levG6IeS5SIEA4Fz0AW6AVBtuftC5ppszNGfLIi3QKef 5VsuGgRAR0JzjMrtrJO5/nrTXXlnaAzG7L1n5sF9wqSd6qf4H/Cjdtt8YD71emJBxr94 b6yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=IQz0GtdNX3b9bVLpwODx8TvJMZ7muHIGuiZQYs5VuNE=; b=ObiXZW8EZPNoU0QsX2OFqAEcNNs/4Va21GjJkGjzzTJE/wNlNt6M19RzWPHj5q700f l5tJpdXLYJotoeoWyVOgsEAq50bPHCNJxPOZpE2f7YqB5GzDv9AEduKEyPq93P5fmyKi 6fHlz0t5STjeL4hSyRzRQ/WA1Un4qsa4Q2snwhWcTv5IYv9r8NZ3cyA4jTAkRJiqRB5q zCry5IhqaSmCJggwFNnIOxh9cjvUDqZLp6Qw5F7riwRxH1+WLEvHrX9u9ycSCI/mtbZd PHCAQsdplDkn3D5vy2UAJhFYrFiWW65kUtKoXf0DZjQvWwk68Qdgln+GF0sb7ajK6Pn+ paUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=C+qMiVvB; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 h23si15681806ejc.1.2019.10.24.11.08.16; Thu, 24 Oct 2019 11:08:42 -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=selector2 header.b=C+qMiVvB; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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 S2408131AbfJXB6v (ORCPT + 99 others); Wed, 23 Oct 2019 21:58:51 -0400 Received: from mail-eopbgr00044.outbound.protection.outlook.com ([40.107.0.44]:33668 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726925AbfJXB6u (ORCPT ); Wed, 23 Oct 2019 21:58:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hSkvhFZxwVBoTziRquSPUxzuh8hX8DBd2Qs3L9f89pMf0NapbaZ3yZZCECllZUS1wlLcsrXFiqoWVKgeNdxEdnVqaZLPqUGOXUftxYLmLDgyDQdgh8mSSVha0KMSbNEysq4xu3iWXYlwPzvDm175fBbaEWdwmxV5VRwLlN/waOwfztfjU+hYYKor6fxDqxUmAghjmEmg8QFpHhaZmAdQ9uma+QF9b1/PK0d1bvInAHOnpcIvo11Nmc9bP8JALftZ9v502mzkfntvAYXh0tVkk7FJ5DGm8DRn/KfusXv0VpVkO7QxhDutAaoV1gxTKMO0+sBouIR/tXxG2nvQ4q/iyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IQz0GtdNX3b9bVLpwODx8TvJMZ7muHIGuiZQYs5VuNE=; b=NGEV4AEyz7CURu29ziaUxpe4F1Jn/Zawu0gWyFFN8DD7pmOayr4ZN/vnTFF04rr3UX8/U2zrk3vjJs7hFtjbNqGUePqEu+k9DamedZmILKyGadYExYfBPK7QnAzYNvYYM/mXPnEbzY7NUHs3/mSBGC7R23JNVU5filtx4eIBG4cXPo2G9ejutXMpKq1DLBrV1nozhQRg0swPdarsfLu4x2O1v1MBvphR96AUNiac1/wZxK9rMTPd65eHV3vg2xF6llzBf/3srwmGwy3h+O7IngUSfV+6pzHFPXy+hTC6mxukKZWwKK1SbWWBVbLQg4roPo7F7Mp947mXtHA6dUnp8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IQz0GtdNX3b9bVLpwODx8TvJMZ7muHIGuiZQYs5VuNE=; b=C+qMiVvByCqzk9ZmAt7r+V2YPpsz/c5eVaNIub9MdKhPTbP65I+VCa74N8N3NyuJ+jnM1R/LrkuQ9Ya6pPgX2FfGglo7vEWtyRwaOhVYdZeerRgf6k5bO4swPp+VR4m6rzkJnjtwpaPD5JNSHF/3cJ3sXG+NXZEFc6WReKGKPYY= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5988.eurprd04.prod.outlook.com (20.178.115.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.20; Thu, 24 Oct 2019 01:58:47 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1%5]) with mapi id 15.20.2347.030; Thu, 24 Oct 2019 01:58:47 +0000 From: Peng Fan To: "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" CC: "kernel@pengutronix.de" , dl-linux-imx , Anson Huang , Jacky Bai , Abel Vesa , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leonard Crestez , Peng Fan Subject: [PATCH V2 3/3] clk: imx: imx8mq: mark sys1/2_pll as fixed clock Thread-Topic: [PATCH V2 3/3] clk: imx: imx8mq: mark sys1/2_pll as fixed clock Thread-Index: AQHVig6SL+3mgqkYJUGuVBtzt4qM8Q== Date: Thu, 24 Oct 2019 01:58:47 +0000 Message-ID: <1571882110-10191-4-git-send-email-peng.fan@nxp.com> References: <1571882110-10191-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1571882110-10191-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0082.apcprd04.prod.outlook.com (2603:1096:202:15::26) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e30789b6-1676-4f6e-595f-08d75825b535 x-ms-traffictypediagnostic: AM0PR04MB5988:|AM0PR04MB5988: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1201; x-forefront-prvs: 0200DDA8BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(39860400002)(366004)(396003)(376002)(346002)(199004)(189003)(186003)(26005)(316002)(4326008)(64756008)(6116002)(71190400001)(6512007)(6436002)(2201001)(76176011)(305945005)(25786009)(36756003)(14454004)(54906003)(71200400001)(478600001)(110136005)(2501003)(5660300002)(7736002)(52116002)(66556008)(2616005)(99286004)(6486002)(476003)(446003)(8936002)(256004)(44832011)(386003)(86362001)(50226002)(6506007)(486006)(102836004)(2906002)(11346002)(66946007)(81156014)(81166006)(66066001)(66476007)(8676002)(66446008)(3846002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5988;H:AM0PR04MB4481.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: BCL:0; x-microsoft-antispam-message-info: SA+hOrohLdfjQmsuBp+Ucs6cSufmrptjEJhuyP66kph8MFWlqUAfPlgooWwmTHAXWqrpcPTOSFHuE5a3RkEdhqJ5yISGavJJjKAPuvdLIAd6xT7AXEutBw50xCuHmnfumdswKmns4F84TNMUgp6/sF1WBWoAG9LweO/PFVWZbMsMYoaUA2g5hRo4jVHnNlAZqtjCruKxkAlilUOX9NW/Nod9t16FdbxTmQM4CBN3EijZnf4SIqxIbjsguZpwv1lKnKK4nBJgrQUiu4B3DeTSMfmkiw4hpbSGt5rEjOGFOOYdf2/R9evkxPzVIRC2EYKHOtR0hf4kaAD99L+n5vvjs6A+yNCMHOHllTjEB1mIr0OXO7akfNW2O/Oobz8j3mR9Rr6BxFqrKPfccd7i7kAuD2bgEh2C7TCAqE+t+aAjWphd5m6w+qUhAlVJVZA+wWSd 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: e30789b6-1676-4f6e-595f-08d75825b535 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 01:58:47.4790 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mbMAr3V5yphimEMkTLyOupnlMfmfLGDYF8AGoz2ax8Wgl8KljqhGJzdB+7FVxq362/9DFWo+iUkEzTy9K3GM2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5988 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan According Architecture definition guide, SYS1_PLL is fixed at 800MHz, SYS2_PLL is fixed at 1000MHz, so let's use imx_clk_fixed to register the clocks and drop code that could change the rate. Reviewed-by: Abel Vesa Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mq.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 43af92525efb..4a5dbc4366a5 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -34,8 +34,6 @@ static const char * const audio_pll1_bypass_sels[] =3D {"= audio_pll1", "audio_pll1_ static const char * const audio_pll2_bypass_sels[] =3D {"audio_pll2", "aud= io_pll2_ref_sel", }; static const char * const video_pll1_bypass_sels[] =3D {"video_pll1", "vid= eo_pll1_ref_sel", }; =20 -static const char * const sys1_pll_out_sels[] =3D {"sys1_pll1_ref_sel", }; -static const char * const sys2_pll_out_sels[] =3D {"sys1_pll1_ref_sel", "s= ys2_pll1_ref_sel", }; static const char * const sys3_pll_out_sels[] =3D {"sys3_pll1_ref_sel", "s= ys2_pll1_ref_sel", }; static const char * const dram_pll_out_sels[] =3D {"dram_pll1_ref_sel", }; static const char * const video2_pll_out_sels[] =3D {"video2_pll1_ref_sel"= , }; @@ -308,8 +306,6 @@ static int imx8mq_clocks_probe(struct platform_device *= pdev) clks[IMX8MQ_AUDIO_PLL1_REF_SEL] =3D imx_clk_mux("audio_pll1_ref_sel", bas= e + 0x0, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks[IMX8MQ_AUDIO_PLL2_REF_SEL] =3D imx_clk_mux("audio_pll2_ref_sel", bas= e + 0x8, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks[IMX8MQ_VIDEO_PLL1_REF_SEL] =3D imx_clk_mux("video_pll1_ref_sel", bas= e + 0x10, 16, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); - clks[IMX8MQ_SYS1_PLL1_REF_SEL] =3D imx_clk_mux("sys1_pll1_ref_sel", base = + 0x30, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); - clks[IMX8MQ_SYS2_PLL1_REF_SEL] =3D imx_clk_mux("sys2_pll1_ref_sel", base = + 0x3c, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks[IMX8MQ_SYS3_PLL1_REF_SEL] =3D imx_clk_mux("sys3_pll1_ref_sel", base = + 0x48, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks[IMX8MQ_DRAM_PLL1_REF_SEL] =3D imx_clk_mux("dram_pll1_ref_sel", base = + 0x60, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); clks[IMX8MQ_VIDEO2_PLL1_REF_SEL] =3D imx_clk_mux("video2_pll1_ref_sel", b= ase + 0x54, 0, 2, pll_ref_sels, ARRAY_SIZE(pll_ref_sels)); @@ -344,8 +340,8 @@ static int imx8mq_clocks_probe(struct platform_device *= pdev) clks[IMX8MQ_AUDIO_PLL2_OUT] =3D imx_clk_gate("audio_pll2_out", "audio_pll= 2_bypass", base + 0x8, 21); clks[IMX8MQ_VIDEO_PLL1_OUT] =3D imx_clk_gate("video_pll1_out", "video_pll= 1_bypass", base + 0x10, 21); =20 - clks[IMX8MQ_SYS1_PLL_OUT] =3D imx_clk_sccg_pll("sys1_pll_out", sys1_pll_o= ut_sels, ARRAY_SIZE(sys1_pll_out_sels), 0, 0, 0, base + 0x30, CLK_IS_CRITIC= AL); - clks[IMX8MQ_SYS2_PLL_OUT] =3D imx_clk_sccg_pll("sys2_pll_out", sys2_pll_o= ut_sels, ARRAY_SIZE(sys2_pll_out_sels), 0, 0, 1, base + 0x3c, CLK_IS_CRITIC= AL); + clks[IMX8MQ_SYS1_PLL_OUT] =3D imx_clk_fixed("sys1_pll_out", 800000000); + clks[IMX8MQ_SYS2_PLL_OUT] =3D imx_clk_fixed("sys2_pll_out", 1000000000); clks[IMX8MQ_SYS3_PLL_OUT] =3D imx_clk_sccg_pll("sys3_pll_out", sys3_pll_o= ut_sels, ARRAY_SIZE(sys3_pll_out_sels), 0, 0, 1, base + 0x48, CLK_IS_CRITIC= AL); clks[IMX8MQ_DRAM_PLL_OUT] =3D imx_clk_sccg_pll("dram_pll_out", dram_pll_o= ut_sels, ARRAY_SIZE(dram_pll_out_sels), 0, 0, 0, base + 0x60, CLK_IS_CRITIC= AL); clks[IMX8MQ_VIDEO2_PLL_OUT] =3D imx_clk_sccg_pll("video2_pll_out", video2= _pll_out_sels, ARRAY_SIZE(video2_pll_out_sels), 0, 0, 0, base + 0x54, 0); --=20 2.16.4