From patchwork Fri Mar 31 06:38:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13195268 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6F03C6FD18 for ; Fri, 31 Mar 2023 06:33:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbjCaGdb (ORCPT ); Fri, 31 Mar 2023 02:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjCaGda (ORCPT ); Fri, 31 Mar 2023 02:33:30 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2042.outbound.protection.outlook.com [40.107.8.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB543EB76; Thu, 30 Mar 2023 23:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h54spxVVyZxIyd9SDYJtg5+coIiFm65Un0EIV1mjnm0LK3quOx4jbSaVsg1rutLYvAi2GjjcYP7Q9IDcgrB9dKeaGumGLpkDndnIz3jxULLBr6kriiDM9Vk8UR3bHdMZjsKKi4DHvsL+AUCPZesPfuLP5UOACaXRYzEksUsiveexk852ChBI4UgHvzasxUpTTShTBd5CqJrVECDmLxdSZzdfRNvUYv/lrMz7ZCu6CoEo33CJSSKmkFJD4n+N2RAKpczp5h2PxNw9LYYez6L9Ky1R8tKYg57AOW30ipVLYBPiJfI3QMQgcRaeRqblU0s9X4BFREcJregUb1xZ9yYmbw== 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=bjnMQACy2BSOf6Igq6IXExV58Xr6JV+uzip0tl+2MMA=; b=hfTxoOUGcWZ2V80Il0OXTkvgsRvy2Di7EafVcppwhcrxhCea4iPwump6k5J8kPLg3skPELU6JyXBcDkEa5laZsybXunyYL81uaUiMKjqvRl9PP2c30sH7nxW+asDRgcmDuOvYdV4I396/06/eujZvrvK7VL/uJVnq+Rhkv1wixFX2bmcNobimI4PjFgpFM++tEBNcqpQOx5lzdu2FbUqrAl2QOc+BHEPy6u4FU0d8R7LUAFC/2PNGkVRZ3sCbF8l/eskwEz71OPxzZrugNLeyeU3ZMsUdpwY5vXCDt8h1kfcmNkmyI1Cxs+HmevI5L/cR/JUBAU1REgXjiJiKcfpqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bjnMQACy2BSOf6Igq6IXExV58Xr6JV+uzip0tl+2MMA=; b=B4+jpbgf6x4I/FFoJUqmwZmyls2c5Fpg8hg46amKAFbOzIH5H8uW2EfSt+ukfMMbYujbN4aEq25H5Aeux08b+ln1410WYswZ4W7Az/r5mNvMtdkktDbaU00W6CQTVKR+xj2Xi9+mJLXRLc9GveRG81VOVTwH/teNA2brFX/UIgw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS5PR04MB9875.eurprd04.prod.outlook.com (2603:10a6:20b:652::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.23; Fri, 31 Mar 2023 06:33:25 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::778e:19d0:cba0:5cc0%4]) with mapi id 15.20.6222.028; Fri, 31 Mar 2023 06:33:25 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.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, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH 0/5] clk: imx: imx8ulp: clk fix and update Date: Fri, 31 Mar 2023 14:38:09 +0800 Message-Id: <20230331063814.2462059-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::17) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS5PR04MB9875:EE_ X-MS-Office365-Filtering-Correlation-Id: 438445ff-04d5-4165-8794-08db31b1d48a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GXlw9trSNjTL2SpwEc2kZ+MWRnKg4oXBUZgOKlbfVgb+RKiveqEDGqT5drjy6GFOvqdHzeSzlqFl4c/asNfVweuyudouOhqwNfD60mL/116itB7wo4ci44HY54AoArdtNlbFZ+6yqtBvd83TXgNQ7ZY0XZ9TulH9/DASWHR2V1EqxGHRDOFN1r76WTcY7EsT/hSNGBPIQCxkssG9U6/3h2iNceFm+tw3Jl/YTGjRufQ8CE8IXxwjfjaBYggK9Bo1WV30zawoBc0XHtrVAFBJFQA9SsHgc7SBFLbTdzRRPZMzIHo42XAH5htdK8GhbCXNgDuS3LIB6Fa2jzqZ67UOu1THeoxyqvvTSBZscWoCq30hFJR1D+PfvSAuucLaRjuBKEr1G4iJT9ltPYb3h6oqVGKwwZXhbqTSPtco2JEYvkztnBD0WzP4ggeQsrxvGruVuZ5AIKFCwgpoaMq4Ng/GIkvIAOSyRxpYCl6xcN6THlGsaGjMSfsprPTY9u44xx1dm25p5tM9x7/LGEOMBzvBiFlgfVQEa5ou/hQ4ZmFhm3ruMmGH9Jz4oJtNFSzV3c3wvNUEMTWXW9BH6/Mx+9uLclSYpIGcIzqiLlqFT8enqz2ayGXzdxFnlY3w8CugKLvH+M25SExyJqeaIKgu8DnZUQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(376002)(366004)(396003)(346002)(451199021)(1076003)(186003)(6666004)(6512007)(6506007)(83380400001)(26005)(41300700001)(2616005)(66476007)(66556008)(478600001)(66946007)(316002)(38100700002)(4326008)(8676002)(52116002)(38350700002)(2906002)(6486002)(86362001)(7416002)(5660300002)(4744005)(8936002)(15650500001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: l2tLdEL89z45dvjPEKtJpBZToCWrj/WI5qwroI5QJsZSOMwgvnzPBBMi1GmWrebtYmeot/MboM6vjtEXaoGqLVULDm74eaTT5phPboysFGYbkcUajad3kIy9DxwuY1I2ga86qbZ8OxGHN79UZ5C3h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Hz0bRTDDSsNXOMALTGTXAhmg+L0/sdj+NVosx+39MBFjr9v0p/LTVWDH/HQjTPK4Dd1HcOQncQNNLD7n+KyVLFHm8i6hNQUXhP3w7sl00AUpNUkmEEqwMsj9dBxzIIu0oElfmJNnTQNUsiD1Aqfw9zuKMVjqrBnRrb6vxLCwp/zex+PT+oLFDHsd6YADJKArEwHaGIu4VxjA0CD0iwsEWv4bgfuq5E5IQBbP/x984bC2l+MhlRO8DBAhCbvBzwd/jlfyKG1MOJLlXPjIT02lR6YZSHVD0AhV/rDLMdg5WzBKue6hgkGwMso27n4WYScyGwXWmGXdjeNvIoONPFo/p0lBrQJoEiFmNEKH1/NAJT0B9/X1 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 438445ff-04d5-4165-8794-08db31b1d48a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2023 06:33:25.3303 (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: yke2rKvDlNNOSlOZ893F4KW3j35RgX3mod2dXvyPNLsCqSYGxiVlLa1Nr3Kgd+/SvdW/Xcv/WYsP0bGfa6f38A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9875 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Peng Fan Patch 1 is a fix to get correct clk rate Patch 2-5 is to support accurate clk rate, enable MU and TPM clk for low power, update flag for system clk freq change Jacky Bai (4): clk: imx: imx8ulp: Add divider closest support to get more accurate clock rate clk: imx: imx8ulp: keep MU0_B clock enabled always clk: imx: imx8ulp: Add tpm5 clock as critical gate clock clk: imx: imx8ulp: update clk flag for system critical clock Peng Fan (1): clk: imx: imx8ulp: Fix XBAR_DIVBUS and AD_SLOW clock parents drivers/clk/imx/clk-imx8ulp.c | 34 +++++++++++++++++----------------- drivers/clk/imx/clk.h | 9 +++++++++ 2 files changed, 26 insertions(+), 17 deletions(-)