From patchwork Wed Aug 24 08:04:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 12953042 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE764C00140 for ; Wed, 24 Aug 2022 08:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2RSjIQ1q9i0D8iEQHNdlXioOdFmnXV/6lzLzmYsn8xs=; b=Q4uuMGHbi57Py6 vUAhmRuSXdjvHGG1/GWyalyQyymJfvipWjmfl9MtFvf3dpup/W20faeLUmA6u7X3QdPpYVbbgw5Ba +D4JKJTaXmcR5hveztwQC8cSQBh7L2NQGHRYBCWcUjDKcfT/lTK2c2UBCKQCva57RYXV1+qn0zhmy coUhmKDUt5uAsXdT12SF/axKBqOEq8i5uGH+ZK5Q/rCwPmNyKKOy+OoeaJIttJmOmHYymQ1ChfmZD 5ggl3ebG8nu9idZ4xv2Uhxj+UKY4TI+KRVUUpd565m18LOmOmEA6UuuIvp/Bj3ziOjjHyzOKJ+8dR 33Txjh5KKH/doip8u5IA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQleJ-00BSA2-Sv; Wed, 24 Aug 2022 08:22:08 +0000 Received: from mail-eopbgr50056.outbound.protection.outlook.com ([40.107.5.56] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQleF-00BS44-Q1 for linux-arm-kernel@lists.infradead.org; Wed, 24 Aug 2022 08:22:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cm7ysGxz7gMeolB7hNNi3ChnA8hOae0UhVH1S9x2TJ3wD8d+IJi/XhMl8NUn8x1htivQed0D+4jwmm2dWuwOSqwvmTX5IgNsrx/uNLZrn2FQkYdyknE4/VzGr06r23i+AMczdBexTQdYT8f0vahAgGdAD1+JPUKJKGkcWy+9WsJHxJcLBJG2uJu4jEAqfWkDwwZ6sG9/7TNPUIAy8lxdeMMH5TZP5e/3nwRBdGoUuQwDRah91L9V5f9gcqW4fbA7v/GCA9LHjcLx5wq2DZDtW1KZ+9sxs2f7alSUTIrOE4JHA6ZK6k0jLgZwfyeRqd9+CjykpKzypKjYa629TBgt7Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2uhYes+mp4kGdokqw1Anr17niI/0FZWHme2D2hkiUUo=; b=ab91UOizzD/M053iKRLywMH/NHwUgjfUsgR0lm5TShffNejffUWbacZthChnp8+/Wz+O+WHZzFwEWG/REccf2o4/XIyQBMIqwQ/TIKmfBLiA4yx+yFVj1lx2agvtL1ABwDHgzEV88gC3oTuXgNYWZPo3fjcm6RVvIl/8luY06/HDEl7H2329zvHj4xmqvsDnfUc8LD+oY0ezc5QG3ziYB/tqzSqHML9l0JMMK7NmLG2Cq5BD8d2rVlaUiHu2sgqc0tB8YQFK2bLyUQXobA1yM/XkwOk3goWOSsU7t4Kpq/VG+0e2pEXBIshMSm/hmBfMJ1Sf9SSTTtTg/N1BqoZaZA== 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=2uhYes+mp4kGdokqw1Anr17niI/0FZWHme2D2hkiUUo=; b=nIt6st2nrPzBO9q0y+a2lEFGvUVa8vqxNKkvlDH3aPaKvsZHE6A66IK0ZFuIilOArm32YzncyB+rqj11JrHWafbRATfZc2Q98jC7VcJMgsxMnzUJvCo7yUomrzgd67uLlUy4j3MC8mPEqk8RzcJe0X+TN31y6KU31GQUElLC7M8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by HE1PR0402MB3514.eurprd04.prod.outlook.com (2603:10a6:7:83::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Wed, 24 Aug 2022 08:21:54 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::1c65:f6a7:bc4:eb15]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::1c65:f6a7:bc4:eb15%6]) with mapi id 15.20.5546.022; Wed, 24 Aug 2022 08:21:54 +0000 From: Li Jun To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: clocks: imx8mp: Add ID for usb suspend clock Date: Wed, 24 Aug 2022 16:04:21 +0800 Message-Id: <1661328262-3867-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SG2PR01CA0130.apcprd01.prod.exchangelabs.com (2603:1096:4:40::34) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a7dec13e-34a2-4cfb-0f96-08da85a9b3eb X-MS-TrafficTypeDiagnostic: HE1PR0402MB3514:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FlWXOiN2KgIN5I7mG37nDfwwj4B03Lh05XNBJ0+pXN+JBK8dWVamJQhvL/zQQc5kwP/+YR/VBdMjLJSBFrvWjkeMZV2NBKBicXkICnDRdc1U5yYF+GhRDnaTbCpVLg19XOqXs1bhzLCLnluS0t+UOyE3+KYQDnC4GJFkJMN+k0qC29HebITIcAIMb+JFMg/AML64P3QOn+GAfTL+UcmTb/bkuufr0OYdjdepks/GljgwGatO92/dJ3tRal5UHeb42AV/uDbpaegBkG+JNXmsCGUKCDnZ/2v2mo8CxpwftciqtlqpOPYVT7IFcygoknTI7q/UGy/xBBHt7pnebHYCaHwIykozdeXW0YzNCJQ1UiGJZm5G7Jvund6+PLXDw1RC36ptBwgb+jJeqouLKFqO91b3Z08yscN9FKlN5rZWVBtxtkMS9GxRB5IQk3tqHzzeL0/wpBdDSEutmvCODWN/qMWFUao0d54aLwtnOau7G3C5oMurLcXhx2GiOvugnHTzboaSQRZoFoUgRtRnoBYq9Ys293wxA6q8/H7OmV0HGbghsUSR7DbsX8XidwK6xC9a2bqrkRzHsiHi5FkOoKIxFQg/9/SweKODSZekmXad94bg3MBvIi7maIOsmiGvgHZ2bu7hWIftICRbMKdX9yt/GPRvQwEZvAiQnDGjB8dLvCP9AHfNrRWP6fA6cE69rAO2PLGQX2zkEH2bXhKMwi2/JjwLrNMrU6BYKg5d0ClfuYEOzleQFIzv/DKOEtK2cSEKUtidjW7VcrMa52ObhPeI0/FsmKCvYAV+bVcQCJy/0cE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(346002)(366004)(136003)(39860400002)(396003)(2616005)(186003)(41300700001)(36756003)(38100700002)(86362001)(38350700002)(52116002)(66476007)(66556008)(66946007)(8676002)(6486002)(6666004)(6512007)(6506007)(4326008)(26005)(2906002)(83380400001)(316002)(4744005)(8936002)(7416002)(5660300002)(15650500001)(478600001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ziRBaq2ZDSIRyi+xSVNVUVLGxmoJZm+qbv3q5wRk2p7gk8w0qO5QGMkoxznxdsWhXZTgKgnZmYGMKalwKVQs6z4z1OPc3QWxIxIgXwJKOcRA0R8TPOJN0jA+RqZJH2T12WaU8yu23ZULHHcZNaWo0HcSeasCJnYG8G0yDC2Nrm6mrGcUTQENG/DaS3CJsBX8wdsN51qisJ+jmFHL1gQcl75dd4AMocho00yKzaIqgW1lCA3SXjwn3XPpYZOEZwTMEI3QsYR3BMwC2Edl0vWTBNHnRqC6OvE8LmwySjNp1mNO9/Qks2wWqyiRJWcrAGMt/TVRJnXs4nQhFmcYgm+j6m8BIPbDW7glL9z5Slx9x5p9Edm8Ku8L9/mwYWcSqhVxdVYdnAsZCOI9RGj2b16e0j2M7D+BQYHyeIRyMvgZQgXk4V9474fJRLDFHbhac8AApPa/JNGRz1HhAWPB3BU5/6J425xgUcEusOTMF4ZPfZmRWJCIdwfmEpXaZ41P+eelLkE+hvTUXTsquj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orOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7dec13e-34a2-4cfb-0f96-08da85a9b3eb X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2022 08:21:54.4902 (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: Y87NmrSb9m5P7TzPqMzBaPKXOeFO26x+dMHESPZzwM4hRRDRX9Q5uwru6cs9+t1L X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3514 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220824_012203_901260_C60AFF11 X-CRM114-Status: UNSURE ( 6.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org usb suspend clock has a gate shared with usb_root_clk. Signed-off-by: Li Jun Acked-by: Krzysztof Kozlowski Reviewed-by: Abel Vesa diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h index 9d5cc2ddde89..1417b7b1b7df 100644 --- a/include/dt-bindings/clock/imx8mp-clock.h +++ b/include/dt-bindings/clock/imx8mp-clock.h @@ -324,8 +324,9 @@ #define IMX8MP_CLK_CLKOUT2_SEL 317 #define IMX8MP_CLK_CLKOUT2_DIV 318 #define IMX8MP_CLK_CLKOUT2 319 +#define IMX8MP_CLK_USB_SUSP 320 -#define IMX8MP_CLK_END 320 +#define IMX8MP_CLK_END 321 #define IMX8MP_CLK_AUDIOMIX_SAI1_IPG 0 #define IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1 1 From patchwork Wed Aug 24 08:04:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 12953043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B4A2C00140 for ; Wed, 24 Aug 2022 08:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GK/sXb5mxdw66aeF32DRdHMYgS4q/taPtd1HI7QS900=; b=ANyFvn2cNBVm6L t+PywjpHWvPAm9fxpWZqNs7lwTVVdUzvpfeY7LAEiKKoklTieMwH7VEptbMbI7ZZeo1OrK6DxLFG3 z8xT16K0yUjtvspP09FnJvBkbLqQiI8jK8aZT7A2x62wBRznE7g/bx/gX4ZtRpApKcW/yfLpJg7fA x6HkxboNRM73IuxwX6jndP4XQhJqiqMmok1IycS/dL5xnP5fXY9QGMRmN4F7UffL//UukfZTqmjvY Z/sBEGvk+y7RY3/qpZkjh0/jDi5GM1OPvdb9AS3pwtjTn2zv64C5HuBaIez/mj9zmBM0XN+H2hmNb W7Pua7/LsmN4XnnXhptA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQleW-00BSEV-LB; Wed, 24 Aug 2022 08:22:20 +0000 Received: from mail-eopbgr50056.outbound.protection.outlook.com ([40.107.5.56] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQleI-00BS44-K3 for linux-arm-kernel@lists.infradead.org; Wed, 24 Aug 2022 08:22:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IrCyf0FsNzrMZU0/xV58EXe5lD86FkWbGS7n/eQdEwk0VoTm1xhflwhgb5QlfA9xOZaXdO7W9PIldNeGIZj3y3UxCvTWl0pMVCP2X2c+wCDOQUQBH0nyA5/FvIAmGHHq50dbbbndbAqUgWtOTJ5Y9Bz1HrllP8rekPxH7ZZge40SlZuavmxKjuu9BbHHwE8jUvOily9uQuoVTaxgws77ryOPoXxgVk6PUHG9YIQ0VbDxnnkySjn8pYJUaTFp9AKIjlVdCVJgE6LQmII5g5DbyasPWvCG3D6DsaD4tfYyByEmBecC8xQVHebYN5bgd9lsUke0LgNq16ooTCuLzNyNlg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fcNGz2aPIvWo6eBJutZvmFRgCKgsIvYhPrINqvIZGsI=; b=U4wEBEcik+eMbtO+vba4xGRAOVXSEUJo0YiG2N/xakI5SSHPS/UQ2cUICJOtwpsoLakQnTxUSyk2v1v2x7a6n0+JTFglS7sENztdWQ/UF81AJeDNZfJ7VYVlhMMQbjr+hSBDH0PS6p3OWlUIQXbFJWPnU++5IrNSY9YHS8bhCmfPX8h3M4z6BGdw5vesoVqoB+4OrIDhuDE1cS6bZ2+QbAa7+3QMd2yP6MOF3GHiNmCpvOANroPhae3EKsHoidYWYnLFTycyilbMs5gY08FZWCJZQzL6gK+ntEyq6E/nsjTz9eZj1d/21Nt6y3U7q/SXqDMZ1iiAveI0EyCR19h00w== 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=fcNGz2aPIvWo6eBJutZvmFRgCKgsIvYhPrINqvIZGsI=; b=HPCMraLrqynKgZKSpUscX4wbmT+El3M0iBvllFUfHf8MBi0gUFR4klxU34CtAbn02NAXHwgAZYWTaxmhGnT/T6hm2LL4MPBPk/ken0Bux3+pYSTDEeYZCkja2poaiNC4tu64O/MCoGFr8VDePQXaYhttURfdNq0So55leZYhGa4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by HE1PR0402MB3514.eurprd04.prod.outlook.com (2603:10a6:7:83::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Wed, 24 Aug 2022 08:21:58 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::1c65:f6a7:bc4:eb15]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::1c65:f6a7:bc4:eb15%6]) with mapi id 15.20.5546.022; Wed, 24 Aug 2022 08:21:58 +0000 From: Li Jun To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] clk: imx: imx8mp: add shared clk gate for usb suspend clk Date: Wed, 24 Aug 2022 16:04:22 +0800 Message-Id: <1661328262-3867-2-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1661328262-3867-1-git-send-email-jun.li@nxp.com> References: <1661328262-3867-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR01CA0130.apcprd01.prod.exchangelabs.com (2603:1096:4:40::34) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3ebe3ad-5209-4ed0-2329-08da85a9b661 X-MS-TrafficTypeDiagnostic: HE1PR0402MB3514:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I/usgiVXKs8XDiH0KZB3rpgdksb9e+8B466dS7/Rj/sBILBMAdyPkH4Qvoojbal14lL7jXVl99X+81CXSOTntqpPWIfTR28S3GunK1odM6cnA6WCeKgb89RZDKTjkScWmQjzYSEwBl/XubstTiau6N6LgIM3gxKt27ArkCWBhGybI0U0kmy0Uxx2V2+Igf1AsmaC7WwikphvN7ZRP2pbgRPC4bX2apGKJIE3cdnzKBFviurUSuwwOx6L+q8iiX3TfjrrjD8ORfLRHvFfPok8LTYA/dP9SLQARAMt6FiaeTg0eI8y306t78PtQHSxHxUeogXgTUFuC8iV4C7+9GKM0VGuc4GC2nBtzcwAnLRXPUdh4my27WJuYKzrncas9qV7pGDbzl4pg5kcOdeSGAdTpHMM3XGYMSGPlADcbS4unm4mOoasDvqQOa+Mji8UkhqA95YQIlqdUUqcVBJR8yJKrA3x1tCRHPsaGc0OUa+HJWK58Q19/+XA2C+CaUV4/HRV3TIbEuZfu3OX8LGg2Q51o04Iq6VT/sHkGbY7RQ3QSwW4PBQlsPWL/q6Hge9msQ0ds/IFXWpNQKsvSrsCTMgOlbUHrEXz2ACpFkcWrsJfv+lMFODksn3Ryx1/fZ4vwJLBPrMW9WUP+6dq1xEma9zjGZ0//pfkkD1Zf1T5vSjicSxSlgQxQGreVsK6gHkbNskQGAm1uTYvs8otkVgt4aR8ZYADRBg9od6JnphS3/VFvYMzL24tBS/jRXfxVnIiqKIa3s/Laer55dtnOlABBW0PlAhl42fD5LCMRgYWxmDkCGU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(346002)(366004)(136003)(39860400002)(396003)(2616005)(186003)(41300700001)(36756003)(38100700002)(86362001)(38350700002)(52116002)(66476007)(66556008)(66946007)(8676002)(6486002)(6666004)(6512007)(6506007)(4326008)(26005)(2906002)(83380400001)(316002)(8936002)(7416002)(5660300002)(15650500001)(478600001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WyZjt4+6j7GRun0pMnVsQTpoo3Bu5alwx+SaQpAp38Shx61zKh6UuV7UkY6n3pWwpxIHTkG4nx9xy+xXhmklLKJ8mLYpL+pM6oXWPEFLKJn/Aq2slNw7n3V64a1Y7DsSS38HRTcEU5izjNrBXnxOQ+wbEwV+TP5YDPGcuYo+d8IsQdzEbBBMdVoQw41hp40DRuDF6UeDEF1uUOwNsopHcki6u8XqPQvXHGKGgj+NF1awylkigp2rXWdTZ7DvrC3pEHWNzxEjY11tvhR3lZdmbO28lyXL5ZdKgOC8vR5ucrvcASbLC5cdF5AUy6c+bfnVdqXpG29Pd/xnZo3WNf55GXimGblvM0XDpUas57mJfnuOkvaLOj9yyyD+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mHk3XiefU4yHgvGbEpaXQHhwCljTHJd0yaBGy9Y67MPIKvYPzZL3kMopXcfqxeLPZnlc/9OvQshiEC8OtBu59NJke/G1RY53wn0wsUKXmRVgUEMtJS9iBZvfzmE= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3ebe3ad-5209-4ed0-2329-08da85a9b661 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2022 08:21:58.3851 (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: yd5LYlBrBdMdHgq6H9iAv5tIJwBrtE1fkChcNv53Ads40ohJof2ya2nUUTt43vWf X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3514 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220824_012206_710730_B6F6917D X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 32K usb suspend clock gate is shared with usb_root_clk. Signed-off-by: Li Jun Reviewed-by: Abel Vesa diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index e89db568f5a8..5b66514bdd0c 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -17,6 +17,7 @@ static u32 share_count_nand; static u32 share_count_media; +static u32 share_count_usb; static const char * const pll_ref_sels[] = { "osc_24m", "dummy", "dummy", "dummy", }; static const char * const audio_pll1_bypass_sels[] = {"audio_pll1", "audio_pll1_ref_sel", }; @@ -673,7 +674,8 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_UART2_ROOT] = imx_clk_hw_gate4("uart2_root_clk", "uart2", ccm_base + 0x44a0, 0); hws[IMX8MP_CLK_UART3_ROOT] = imx_clk_hw_gate4("uart3_root_clk", "uart3", ccm_base + 0x44b0, 0); hws[IMX8MP_CLK_UART4_ROOT] = imx_clk_hw_gate4("uart4_root_clk", "uart4", ccm_base + 0x44c0, 0); - hws[IMX8MP_CLK_USB_ROOT] = imx_clk_hw_gate4("usb_root_clk", "hsio_axi", ccm_base + 0x44d0, 0); + hws[IMX8MP_CLK_USB_ROOT] = imx_clk_hw_gate2_shared2("usb_root_clk", "hsio_axi", ccm_base + 0x44d0, 0, &share_count_usb); + hws[IMX8MP_CLK_USB_SUSP] = imx_clk_hw_gate2_shared2("usb_suspend_clk", "osc_32k", ccm_base + 0x44d0, 0, &share_count_usb); hws[IMX8MP_CLK_USB_PHY_ROOT] = imx_clk_hw_gate4("usb_phy_root_clk", "usb_phy_ref", ccm_base + 0x44f0, 0); hws[IMX8MP_CLK_USDHC1_ROOT] = imx_clk_hw_gate4("usdhc1_root_clk", "usdhc1", ccm_base + 0x4510, 0); hws[IMX8MP_CLK_USDHC2_ROOT] = imx_clk_hw_gate4("usdhc2_root_clk", "usdhc2", ccm_base + 0x4520, 0);