Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4023487yba; Sun, 12 May 2019 03:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdl+Ebs+T2j8sw44r/d2f1XlrEsiULbAmBL7lH7wiPwGrUiW5uPNAMGi/Dw36dR2q1Ed5w X-Received: by 2002:a63:2118:: with SMTP id h24mr25433252pgh.320.1557656377988; Sun, 12 May 2019 03:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557656377; cv=none; d=google.com; s=arc-20160816; b=UgnuDgfTmxs0llblnuM0Lm1Pzp6iLNsACjGUTVo2p9Y+YuuoJiFaVCzC8uNroPEZsz nFo+/7g/N3qm+GD/ys4RxI0rLKdDCo6AZIsmYgNrz1zRL0atq3MRJJCPpAXKfVjo6sDY SJ62V+E9wl3LPQGUFKuZ9m7hE0HGNWvsz06IDxjxwClyaFIhxCfZ6C5EUXqf0WQ7/PsE a3ZR3i8meOScwJHmDjt77j8CMymZ3HoYCkeBs44mATETaMDMoNzOAJL1DNpiCfM04Y0F UGaBH1s7SwjfmrM6cR5yrPSotk1w7NFdfMrlwneh9zn2NfJkg1F97Adqy25OMzBD2QnY JVvg== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=kA7/AoFHr32DSzbaGn3qxSoB5YfFmyRblWFtJQk452c=; b=X/gK2UihQ0LKTZGUYBAO6SPJ5GN3nFfcMBBpCgitsWyh7WBc32sDwBQcJw6/ltsHMP hZ4j/j6KEhNxtw9IWnZ5azJa6yWGNoGPtlQsu+wyg3qWi4CjJ17RQtZMZ/R0NLFuP1sB S/M2CpTdlZwpqY2KzjxFAQXVNV0LULV5lUkykKwNmMRUjLzo8JW+lsnALheBXVjDlz4Q 5CsVGycBBNYnCNFiXmGAyJ5lMUWLuLVbca3PJm581pttG7FKyAuCAN4vwmghCqdDWsz0 lQs/eBm3EAI6E1Q4Dl4Tk6vAKU4HOVgMg4vMKw5kzP/1BmR/IkKMsDoefmip8OaxnS5+ fPMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GnIhecCo; 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 z23si13299855pfa.277.2019.05.12.03.19.22; Sun, 12 May 2019 03:19:37 -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=GnIhecCo; 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 S1726628AbfELKRT (ORCPT + 99 others); Sun, 12 May 2019 06:17:19 -0400 Received: from mail-eopbgr80083.outbound.protection.outlook.com ([40.107.8.83]:60800 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726430AbfELKRS (ORCPT ); Sun, 12 May 2019 06:17:18 -0400 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=kA7/AoFHr32DSzbaGn3qxSoB5YfFmyRblWFtJQk452c=; b=GnIhecCoWGYhvGumW6QCpPH5rzOavBO6/YDO+721QYrZe1q2E7EMIO6nbTTEwmzx7HGgZrhRToCtIdVY0JN/eyvdcpV4kzKw/CErNcUcB+ijP0gyv8H1LXbIhdi5hEJ3d/+RwlxjznjpZtmKf6n4WmMgyJD1vEPyFXDmgVOXE3I= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3946.eurprd04.prod.outlook.com (52.134.72.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.21; Sun, 12 May 2019 10:17:13 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d035:3bd0:a56a:189d]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::d035:3bd0:a56a:189d%2]) with mapi id 15.20.1878.022; Sun, 12 May 2019 10:17:13 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "mturquette@baylibre.com" , "sboyd@kernel.org" , Jacky Bai , Leonard Crestez , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH RESEND 2/3] clk: imx8mm: add GPIO clocks to clock tree Thread-Topic: [PATCH RESEND 2/3] clk: imx8mm: add GPIO clocks to clock tree Thread-Index: AQHVCKve+oYzJij+6EqmsPriSGGCHw== Date: Sun, 12 May 2019 10:17:13 +0000 Message-ID: <1557655926-12915-2-git-send-email-Anson.Huang@nxp.com> References: <1557655926-12915-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1557655926-12915-1-git-send-email-Anson.Huang@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: HK0P153CA0044.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::32) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2846d098-bbc9-457f-ce20-08d6d6c30043 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3946; x-ms-traffictypediagnostic: DB3PR0402MB3946: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:923; x-forefront-prvs: 0035B15214 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(39860400002)(366004)(136003)(199004)(189003)(52116002)(2906002)(110136005)(386003)(102836004)(14454004)(478600001)(76176011)(4326008)(8936002)(2501003)(68736007)(99286004)(6486002)(25786009)(50226002)(66066001)(3846002)(7416002)(53936002)(6116002)(66946007)(256004)(66476007)(64756008)(66446008)(66556008)(73956011)(7736002)(486006)(305945005)(5660300002)(2616005)(476003)(11346002)(446003)(71190400001)(71200400001)(26005)(186003)(86362001)(2201001)(8676002)(6436002)(81166006)(6506007)(36756003)(316002)(81156014)(6512007)(32563001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3946;H:DB3PR0402MB3916.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: w1/GwloUzOFflgRKHyOvfc91mdJJy803Ev8cyOxCJT4t4FhrhRVD5I5lx2a9joLSKCzWe69nt9rOqPqpwXUtyV1t3spOQqm43jsqE/laxDl1NWTuB5a7e8Qpx2GbIVOnw876L8GwpMVOGkQS2DO+92xRL1HTXntBM6nLmPXKQDxTeSridkb8OKCWVemBFCr2jrKaLR8A6do/LKRwuT9lS5bx+vXaax6TytJyvWzZGK1KR4uLWjhF3aaW6/aMO84at0C5HKKJyZSnHv7IL8pLxhSwLkigSVaW1jrYq0cOr2Fsu2Rg7BnEpe5nOHfgCYVLyOTw6jsG/swq/QZ53aHZJJwGofTHfZSpJZhqYeO+vTDpB0PGgVqVBmBMPcyPhsK7kLzbPt5WEW/xBh3a45LREedQFUMLMXBihAAXutXKGY8= Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2846d098-bbc9-457f-ce20-08d6d6c30043 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2019 10:17:13.4777 (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-Transport-CrossTenantHeadersStamped: DB3PR0402MB3946 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX8MM has clock gate for each GPIO bank, add them into clock tree for GPIO driver to manage. Signed-off-by: Anson Huang Reviewed-by: Dong Aisheng --- No change, just resend patch with correct encoding. --- drivers/clk/imx/clk-imx8mm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 1ef8438..733ca20 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -590,6 +590,11 @@ static int __init imx8mm_clocks_init(struct device_nod= e *ccm_node) clks[IMX8MM_CLK_ECSPI2_ROOT] =3D imx_clk_gate4("ecspi2_root_clk", "ecspi2= ", base + 0x4080, 0); clks[IMX8MM_CLK_ECSPI3_ROOT] =3D imx_clk_gate4("ecspi3_root_clk", "ecspi3= ", base + 0x4090, 0); clks[IMX8MM_CLK_ENET1_ROOT] =3D imx_clk_gate4("enet1_root_clk", "enet_axi= ", base + 0x40a0, 0); + clks[IMX8MM_CLK_GPIO1_ROOT] =3D imx_clk_gate4("gpio1_root_clk", "ipg_root= ", base + 0x40b0, 0); + clks[IMX8MM_CLK_GPIO2_ROOT] =3D imx_clk_gate4("gpio2_root_clk", "ipg_root= ", base + 0x40c0, 0); + clks[IMX8MM_CLK_GPIO3_ROOT] =3D imx_clk_gate4("gpio3_root_clk", "ipg_root= ", base + 0x40d0, 0); + clks[IMX8MM_CLK_GPIO4_ROOT] =3D imx_clk_gate4("gpio4_root_clk", "ipg_root= ", base + 0x40e0, 0); + clks[IMX8MM_CLK_GPIO5_ROOT] =3D imx_clk_gate4("gpio5_root_clk", "ipg_root= ", base + 0x40f0, 0); clks[IMX8MM_CLK_GPT1_ROOT] =3D imx_clk_gate4("gpt1_root_clk", "gpt1", bas= e + 0x4100, 0); clks[IMX8MM_CLK_I2C1_ROOT] =3D imx_clk_gate4("i2c1_root_clk", "i2c1", bas= e + 0x4170, 0); clks[IMX8MM_CLK_I2C2_ROOT] =3D imx_clk_gate4("i2c2_root_clk", "i2c2", bas= e + 0x4180, 0); --=20 2.7.4