From patchwork Mon Apr 3 09:52:57 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: 13197962 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 16F56C76196 for ; Mon, 3 Apr 2023 09:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232176AbjDCJtm (ORCPT ); Mon, 3 Apr 2023 05:49:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232022AbjDCJtH (ORCPT ); Mon, 3 Apr 2023 05:49:07 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2075.outbound.protection.outlook.com [40.107.6.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE04812BC3; Mon, 3 Apr 2023 02:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YJuJhB+qDpcYbETpCV6pTHjCTvlyI/2jQ47ghb0/JnlV6Vw9EPVhqISHcgQn7vJFuBP7aaRrvsccdb3UUVs+ji07ynPZFYKqq1V3r+Dr2d+iuFh+EAapVc+b8lwDOGsjaEMwTiVFECSpfnAmxcgeboMutpMBqMYzRks3L2cXTR1Exe5PsSw/BLODPmjZNEMLG0of78rBnN/IWYcm6t4V9eORwcE79gBKoqVrctrIDK/ummVxlVsraPFD8VimBuRQAcRSuw+mLLiB0k0oFnE901bgPC+mnzQcBRSVaiZMBDWKcA/cJa72t6A6vqELU9HsBeBjQUf4uICaBpJkwkpBsA== 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=PD7fguA+0DuPJzyBK/J3/AbOnO0yns7W2/60PUlIy2U=; b=lbolTuWl+WLENGXc/4r6flbvktKj3aE0GJbLst6DEnW2bWcyAodTrv0ohDls/6W7qDY1NPlvb8o5juamk2KlLl80Udl2TVMpjzFXpFrqp4COyFlabhY0Psrv4/eyRcHMHWViHGQuPtmvV3CgQwAKTHKubIXY/hQ9rL7I7MjWUsble5zAgzzYQsBlVslTSWzZgHPN/9R8v+jq59oQa8gTHITzgh6Gfi3K84hsrDmQFWs/Po3xN/DuuoR0fVrheLSn0iaytqjTR2WWhdMDjBcKlncWkzhQ9eZvnvKt7AyskHx8BsnLeh+dBaY26llI92FqtIb3Hjz5mlrLtmD9xBmgjg== 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=PD7fguA+0DuPJzyBK/J3/AbOnO0yns7W2/60PUlIy2U=; b=YNtaJCaE8s809ToZJcsz2uo53Dvy8hmtq4ipgtGbzNUE4kwSf1RgLNbdHQ57nNM1f72S67lECSGI5/sZy6XocOo5YNYB6lQ2cFx0w0BFnvADE5YU/nJwf/jTHIU10d1TDN/4x6dBf4A4HBRKW4Wal2WYH3203m3Y+OjrcM9Idic= 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 AS8PR04MB8070.eurprd04.prod.outlook.com (2603:10a6:20b:3f2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 09:48:16 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::b999:f2c6:a8cc:7b4]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::b999:f2c6:a8cc:7b4%4]) with mapi id 15.20.6254.033; Mon, 3 Apr 2023 09:48:16 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jacky Bai , Ye Li , Peng Fan Subject: [PATCH V3 4/7] clk: imx: fracn-gppll: Add 300MHz freq support for imx9 Date: Mon, 3 Apr 2023 17:52:57 +0800 Message-Id: <20230403095300.3386988-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230403095300.3386988-1-peng.fan@oss.nxp.com> References: <20230403095300.3386988-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::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_|AS8PR04MB8070:EE_ X-MS-Office365-Filtering-Correlation-Id: 0a84755b-ba4a-4710-c2dc-08db34288c3b 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: 5rM22tJCqXLLKeNcFpgnB+ZIm6mbw7gVAZsVZyp9oxiNnSpARO8u8wf+6dkRcaDyBrUYJ1okXf4Ww5VB47dAUvRuPDiC4FiO8zdMt9e+i2ka5On+1BpQP5Cgw6gSM9q5Z4s1hNNWdPXt53eT1Y3Ki3zEQKJBZLQtaxbNOCkPfjp8ou07Hyr7c06xLRyYY9XBe0twgB57A1lk2DnmzHJR+r2+1yJbjghZUBhyY0tJhUAd2uX+EC7wF0V6pXxMubMRCLdcVrBYwFlJnA0K6Jo4R+zZEqSVGU0/COLj2/INSlZvkoBv9IJSjSWJcDm8akuW+Z2O6v5pEXtCzPWshzIg94ZBED+jsk0eKKRc2rcgfX5oGtiK6F0ehLzgnyDYOkRuvnUhsGK7yO669y+M292Q6XtxGxt19s6gwoSWrGbv4meKhbXLk8mJ8vrFhF+exnpD8gtEp0gXUs1yivQ+o+qS+CF7InZv8azSfddEfLv3t4f8ut4G+IZAzqRdaxHEKBjwGVWbkEfApwuWijZaFHZO1SsxuK8vEXm8DvZ/z9eXLfCRChESM7h553/gjGMsYIoQqCrr0UTWSYp87HNG9blslX41vZaDoLxq7gc+0ESrZVPMK8lmfNfSBOJk+x/57LHG 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)(396003)(346002)(366004)(451199021)(8676002)(4326008)(66556008)(66476007)(66946007)(54906003)(316002)(478600001)(8936002)(4744005)(5660300002)(7416002)(41300700001)(38100700002)(38350700002)(186003)(83380400001)(2616005)(52116002)(6486002)(6666004)(6512007)(6506007)(1076003)(26005)(86362001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PNnAY4H8EWR3j0xJBKMfRbUwsD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QE3YslD7H8HM8DfwZmG3BEUdwweML62ogSJdUop/rSElrEz6npBvOoeNVU3ZBESzHikKwg33piKVW7gSukjO7zdqHcQEUrAesVd2Rx5BxitA9ZDb8YN7/7Km48ShxSe450OK2kYQmdRoL1mzKEVSXshKbq1gh367av9jgT3Hb916t746kSRhsvIROCee1FC1LZVyYDQcLXyhC5bl7x3TdaQ7dH8hw1CnZj4WA/50Y9l2ap7jmB/6ThnkH4ky22seoo+khh+wOj64UJns9K/34ortzoOkOqLYRhNa9daYpkTt5i18/lUm9L3xMKSco7s3YuW0/Y58XKioQl/MNcosdHUHXj27gRnCxNzbjAYrzcG7y3LALmwDYB2XW9bzSzENb3laIKTQooiKGk8qbBwSY2cUXRHmpLdDrHOE0ceVKjWzdV7uM9eQ+F/MM4/MoUnMBMTdfV+oXq+Z3DscCNlYtQAdODeGG8MWDaxoCRuPTwkgOC23fvTl X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a84755b-ba4a-4710-c2dc-08db34288c3b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2023 09:48:16.2890 (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: fVWzGT9pCuuXJ6pHNeDOOBXageYk8xdDmv+16GxYUTrPBxtaFkw7KDLqcWaDER1SlvOgZXg1VwVuVp8l1oZVbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8070 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Jacky Bai Add 300MHz frequency config support on i.MX93 PLL. Reviewed-by: Ye Li Signed-off-by: Jacky Bai Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-fracn-gppll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index e2633ad94640..c54f9999da04 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -85,7 +85,8 @@ static const struct imx_fracn_gppll_rate_table fracn_tbl[] = { PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6), PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9), PLL_FRACN_GP(400000000U, 200, 0, 1, 0, 12), - PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10) + PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10), + PLL_FRACN_GP(300000000U, 150, 0, 1, 0, 12) }; struct imx_fracn_gppll_clk imx_fracn_gppll = {