From patchwork Mon Feb 28 02:09:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 546818 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 0C310C433F5 for ; Mon, 28 Feb 2022 02:07:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbiB1CH6 (ORCPT ); Sun, 27 Feb 2022 21:07:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbiB1CH5 (ORCPT ); Sun, 27 Feb 2022 21:07:57 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150057.outbound.protection.outlook.com [40.107.15.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7886B08D; Sun, 27 Feb 2022 18:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z8YEsg8l6k8owhwytuHAw2YvDOPwt+d3OP2WkHx0ozJ4As7UphaimVfMnAbsWU41QA7W1XZRYis0rjt+zO4vC4JFiOWII9pISG70NPU0gWX7QT9iOOlPxdRZWvBhydsCzvgZ+TVjvVTawHRCwSJp/y+QQeII5YTZqzya5Ssn1gZbXQdI1K9w3Jx294bwGv1ZiGYKDCRTUhAybERP3sujgj9F7upGcNklJveGeV4mbp8G01sxtwQURfTrVxjOAN0iWtA689PzlpRhPzNGOjywjRg2Rb0RUdC1pxGavl4IBJqtZQ81kj2JKrmx8JDL6mrEmP8KiJor/OhjYHUs9ywG8g== 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=68D02XazkrwaDXAN15PZpeHsm572ACCjuLvA8NShyGI=; b=hLayyggAncQTuNkVuBMMfEnZsnx2c6vQ27t8ODS9UFjrbqhX5x8Xc33aghJGQJyAhpCpkKTPXmajeMx0HHkImKTGa8dVoP0FfJ8xwvvmLNYySh20knZ3W7/EQ7fQsrj7s8rJLMO0ZCNawZc/PrCunivWwjACWjWIXinKMpr2iTgDfI56gfkSFHEoCLaBrEOiphKAGNP3AMDfNpO7gyOmbattPC6x2cyfrU0VvR/lwL0DGlcodcYQhSwlcXqJ07hmz1JgEa4EasNR6iJPZQlsnMmArtTT4YFpB6Xw5rpVZYeEoIYbllxb/0/wu//SjjoMbKLper2ciBnvJvuX0odRZA== 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=68D02XazkrwaDXAN15PZpeHsm572ACCjuLvA8NShyGI=; b=gvU2WwBQsOoi2KsGmg33r3wqNlCxaS9K2lZhq2/HJSXMLRcfMPSwZnKRQJkfh1YjnQMMi1OuUB8JFcwjtwzbpBvXgpwg0DuWB48cMjPh3C+aZUmx/IcZLuFAd8Gg5MwXULMOhBYmLI2bSVWPqlJAI/U/0ORz2TPux+iqq6DJn2E= 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 PAXPR04MB8734.eurprd04.prod.outlook.com (2603:10a6:102:21e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Mon, 28 Feb 2022 02:07:16 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::552c:ed46:26dc:77cc]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::552c:ed46:26dc:77cc%4]) with mapi id 15.20.4995.018; Mon, 28 Feb 2022 02:07:16 +0000 From: "Peng Fan (OSS)" To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, abel.vesa@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V6 0/5] imx: add i.MX93 clk bindings and driver Date: Mon, 28 Feb 2022 10:09:03 +0800 Message-Id: <20220228020908.2810346-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR06CA0218.apcprd06.prod.outlook.com (2603:1096:4:68::26) 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-Office365-Filtering-Correlation-Id: fae4a9a2-d0b4-49e1-9afe-08d9fa5f0a8c X-MS-TrafficTypeDiagnostic: PAXPR04MB8734:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Rd5NTFoAAKpDeDmgvxsZeVT/FLGXKks8OUWwR95/lYEjLr/0jclN++bwUnZ9dOtBrXnUx4t4TKPdC1HOZ5Uc1Z7qIkgv34o5CBzU7IBAa/u3xIjiR+gp3BewrupPx7lld7ji7bn+EXW3+OxRP5gLQxOJDP+CUCr0WscgvhA+79WHb4Sz1bmmtg/ng5KCdHLVGdTAGAaMdJ9z5U9MLLXWBBNueIhDQDOJKM8fYYVtay9oyLFAo6weRgNcdcYezDfvfNIP7XEYjtPnDQxcMcgGcueNeMlmryLGo1QOxMO0ikxRaSbLJXdvSZjPQm9ctv0xdU/svL0hthKqouYOtijrWLGsinI8UYL2bCUY1j4NE/hQopFK8Q/E4IWikrS5hQgdb/Pl/a0AWQnR+BXbJkoh4fSiSWuM6NO6A6+iDNTe3ntcMM4y/jpx9hHVHogaoqV9Tx56FFYIKMMmh58/CKlQ7CmY4x4CUp6YcwtwGjBu31ZNMQO321rtQ5R1JSYIq4gM5TIQgYasIpjIyzp+6M0YCl9+QyWJp0MrSlmrIW9afJNgyYJKxXhvl+PrV/4zfXDxcHlJEOXjTsqpFYMvchyR6rZ/9v5da1s2y1WsE7sBulFUyhiG9vOCuf4UmbBrvOUEm9ilUHdqjhKDOWyIL3iBvHWCqyJXlGXPwObuqaa6iceNOQRoIs7e7JFznCUBa3gdAapkIxquHLZ/u6aiw1QyQ== 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:(13230001)(4636009)(366004)(2616005)(5660300002)(66946007)(7416002)(66556008)(1076003)(86362001)(83380400001)(4326008)(8936002)(508600001)(186003)(26005)(6486002)(6506007)(52116002)(8676002)(6666004)(38100700002)(38350700002)(316002)(2906002)(66476007)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hYbDj/gP6Ish+RwaZhxTFyuxs06TyTwzPKFKwzJPnsxMN6+5Pxl3Zk5VGH2+Q2qXLf3mM+l6zZn1OM/6ArFrY0pHpCp04efV9dKdqRp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S6ptipJ8wsdpAqwiQAFj7yv8J7aoxUsH0H0fi8PK8HsLJvn+ojU6qP00bSfQnYARiTkqjpBvU2FUOrqkxqKR7q6HrUA1GmXtqNRMtzxDgtdisrV08/77soU0cHh++ae/Ezh/C8K6G1YpiosdpjVEWOIppCvQnVsRZTS84axtIaeL44mCT62AzGpXFg8rZY42wtnySQhVvoroHxe+ekI4rEdWZ9S91Ru90DodACUHYMVXIwCSsRX0jtDUaj2Uuk8dl+4U9SkuWkCtnb9tJhpbJOfyY/n0UM4rOL7VBHlYgz8OJKlKvR7r/x4ZxVRe4I27KwpsAyvAd53vkXDrWrvSrF56ZuBl3gPjBYUciIaOKM0dToP5v158C5nhdryZa//QaMS9BmeQnbkrSG3B4j6bT+22qb8PVZNqKYqDAFQupPEwDUKX/zXUByqNq4OjeYk0aoy/J8RJHw8of+rSfo= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fae4a9a2-d0b4-49e1-9afe-08d9fa5f0a8c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 02:07:16.0159 (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: XQDGuGpRr4cs/w/7ACJkBO2AQGiW/W/bBJQmzGLnIUzBc4BNZqVTlZihXfliF7WpNdXeFsT445YcaF7m9uLlDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8734 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Peng Fan V6: Add R-b Address comments from Stephen for patch 4,5 to cleanup header including and static const array, drop unneeded WARN_ON. V5: Add Rob's R-b/A-b tag Use FIELD_GET/PREP in patch 4/5 per Sascha's comments V4: Add Abel's R-b and Krzysztof's A-b Address Krzysztof's comments Address Sascha's comments in patch 4/5 Typo fix V3: Drop an error included header file in 5/5 V2: Split yaml binding and clock header apply to Abel's tree Add i.MX93 clk bindings and clk. Peng Fan (5): dt-bindings: clock: Add imx93 clock support dt-bindings: clock: add i.MX93 clock definition clk: imx: add i.MX93 composite clk clk: imx: support fracn gppll clk: imx: add i.MX93 clk .../bindings/clock/imx93-clock.yaml | 62 ++++ drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 4 + drivers/clk/imx/clk-composite-93.c | 93 +++++ drivers/clk/imx/clk-fracn-gppll.c | 323 +++++++++++++++++ drivers/clk/imx/clk-imx93.c | 338 ++++++++++++++++++ drivers/clk/imx/clk.h | 30 ++ include/dt-bindings/clock/imx93-clock.h | 201 +++++++++++ 8 files changed, 1057 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imx93-clock.yaml create mode 100644 drivers/clk/imx/clk-composite-93.c create mode 100644 drivers/clk/imx/clk-fracn-gppll.c create mode 100644 drivers/clk/imx/clk-imx93.c create mode 100644 include/dt-bindings/clock/imx93-clock.h