Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1999704rwb; Sun, 14 Aug 2022 18:31:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7eHMM8mC0qVtipznPBzQpgoviT6y0RkxNKS0V/oLv6qVC7bedCoHx6NiGrPkorapjjd0V+ X-Received: by 2002:a17:90b:3e88:b0:1f5:6029:1bf7 with SMTP id rj8-20020a17090b3e8800b001f560291bf7mr25972268pjb.155.1660527103194; Sun, 14 Aug 2022 18:31:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660527103; cv=pass; d=google.com; s=arc-20160816; b=kE/KoS0wsS0xGoS+1fG/PiWsShcwTTIq2PgVtF05g8+Cg3gXRbHpP/DtEYc+eMjCVK lIbRhHbO1O0hnPOpagUoogUqBJW1nnWEC/6gZNx0Bwpim2GRfa9XOa+VT8WDrrKUAjDX qJ6nlHDMgDsY9iOmR+3lX0h0Zi7QLyv367mt4jpHMMC7qLGY+T5Teu0W4h+83OiMWvoo A5AzS4X+Te50VBPU+c0U8iAzIW9luCZvlrV7PFJmvnllytnUONdd9M6LHPS2/ZrHLSOQ LN3qPTYJyJjXgzzrbzeGdOg5/xNeYAjSa8MBvt2GtN56nmgE9I0ZPhHq0BtNyntYDMTI qppQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=5fbkCPY48gjX9bfzyXdW1+soePARet+MnjPtI0RElGc=; b=bXBROuhsePYTfn+7kHeoyGKNVek0iKxtVopwtI7GePOexfabjAqIHgIJlbt6TCU3/F Wm5RYMAqC2v5FkoBfV06xkzTulSLF6KeJm8vAGo1ZpZe21U7jZ67KEa0ovnJhE5QxDwM Di+cKUwDNYiUVZjUK3BN17RgCMQA/vZO0wM2CAmkFOT0aY7Aqu2o0u0PvlP9l4z7y3/s 6gxa9qnRTS0ylbPhw5vZLGQlNqH3L6MqC8tvc+dHz3m6S7G1/YhSN3hztiN4O4qhllCa jw5farn7W3ZzkxhdSh3wb0mpliIjjmeHkiXSmk0cw+64/NZZ2pAwqFTObvISVf98QYLb SWgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BZz5vlwv; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a170902cf0700b001714352fc52si8661966plg.315.2022.08.14.18.31.31; Sun, 14 Aug 2022 18:31:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BZz5vlwv; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbiHOB3L (ORCPT + 99 others); Sun, 14 Aug 2022 21:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbiHOB3K (ORCPT ); Sun, 14 Aug 2022 21:29:10 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70044.outbound.protection.outlook.com [40.107.7.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E909F12617; Sun, 14 Aug 2022 18:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YQgVqpxHwmHtlLoAH4mLwPaP2UR6rMr9o6jDa2O4jf+4cGKt4cRaR/2PUmt+sWfCl7mtRo5OPywrkjxLIDxpoeUJnb40WH3AdaHsHQ7C9WswAWAtiziSoSuwfNST3LixgmI2jYPbj6whYrN2XoQEuhkmi8D0S20ROk4AbyRCXLp3qMl12pcr/FoNZabv711cksZL3cMN5O0fCKpUKF9Y65wHzZWIRIWEjvW5s8VMVN/E9xYBlvLJmudVWxrwJGAcFvP+dg1e2ibTlYBLlin+nb01wHFWKiUe4hDmYqbDz9Hj5ScYfWXEsnEe+p6dkMiGhXmgIfQ/uFhegtHj077gPQ== 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=5fbkCPY48gjX9bfzyXdW1+soePARet+MnjPtI0RElGc=; b=ad1wfWr0BAJVnoveFb/noCFb3Q5CdlXaOxDSdIVQYcN6+OO7hzmB+P1pGXCRHmQUp/Ak6w8Tc2llwvr4/+kQLma3PQeTIGN3hM+7we6frnnVkl01Ee4rdf0nhB9SzZn88JaQpwJ3AyCSX7hTjQ4NjLUb5LVG3XFiOal63wb16u+aZe1lS3peqh016gBJoouwa3MItHDTKS0KIN7H/5EvSja51KvqUxG3scRXlNOavOyvuWoKKZJXgDs/gP0ITnr2XniHMEcmUJmQT9qJgrnjku1/pHN0ytZ0hoiQBd9S6H79B+nTbr22sC7ZNUXbxPpVJmlkiWA87NfRtn+j94DrhA== 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=5fbkCPY48gjX9bfzyXdW1+soePARet+MnjPtI0RElGc=; b=BZz5vlwvHi4CL8OtS/elMUE9QVQKeMx9MIzs8qJKhWDsIVbJamNu0t33q2NW/LC0Z8x29CWpMGaaNmxIDf7sQHHDkWMRt/BsLyhFhr6YVPn0/OalF9Uv3a0JPmL1HLI5EHw45Mw+i7sqlWLstt24nsUco0bhwYykPXh/P5kbHiA= 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 AM6PR0402MB3734.eurprd04.prod.outlook.com (2603:10a6:209:1b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Mon, 15 Aug 2022 01:29:05 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::3c6c:b7e6:a93d:d442%4]) with mapi id 15.20.5525.011; Mon, 15 Aug 2022 01:29:05 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Peng Fan Subject: [PATCH V2 0/8] clk: imx93: new gate API and composite update Date: Mon, 15 Aug 2022 09:30:31 +0800 Message-Id: <20220815013039.474970-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0112.apcprd02.prod.outlook.com (2603:1096:4:92::28) 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: 0ccf9711-4c4f-4edb-e28f-08da7e5d8ac1 X-MS-TrafficTypeDiagnostic: AM6PR0402MB3734:EE_ 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: GfK/znyNNE4CfHbjanelu55Td9TcSYXrpN2At/O+uklTziC1MNjT5azO6iFDxk/ThjQefFE/F53sQ1cKLDRY4cwtaFn3mHvTjXrcU2lesQ9sASjZ1tUKn/eOvKMf2Z5TDN4FzGjrHEuEu7/S6r87z0K/tOyTEmDmtTBexhZ1jP+iS4W8x8eVq/2lp6tn9FiF38wtGrm/Enqj1JEL2OaSntfQySch+jYfD/3ybvDJix+oKz37ccv3xgbLDnpm+9bNRC4Yoi4q7UoaSj3b7vAWik3C0elYrahgWvuGVi4CNJKUUV96iima7PPnKKEPbE2oTgKPgTyQf53PbBFFau+UNGNtqfs2imqahPdgEgZN99Q3+JiOzy609c+PxMXo+L7ow7CWu6yUBOgEzq4Pq3pJGlXpiTu3pxT5cGQzFLBEns6X19nO2amQf3QlVE26lzYx7eMDojeW8o9cHCdSJz8kk8L+ZmjBnnbDUwrXquzYWwl4UfgT6dbwQ9Ru5OLn1FyMhyvtYpVfSHkwhVTZKdJNcZLyAkIIqAOtE6dN0G2UcUMp2b3DfPaaB5dgD8tq9WziHEMY8wSWPCBE9o+0hanR8vTWdv6MQOeOQQkdkgt1w3llDZYHKowGk/r4DC/eu2fKK5SVqwqFzfZyRKQTq117csCMEZIYIsVzLKPFgLAClQn5USQMAXmf9yD+JzSgm9CgKuaF/6v/hWEkm026rBWkbuvOOZzhspmy45gjsjDpmjyrqHcAsFZNLotpSDEI8UumFDY4vxm1/38opCyVRGk3BgJdtnixKl3GVYJib6a7alA= 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:(13230016)(4636009)(366004)(376002)(39860400002)(396003)(346002)(136003)(38350700002)(86362001)(52116002)(186003)(2616005)(26005)(83380400001)(6506007)(6512007)(1076003)(6666004)(6486002)(41300700001)(478600001)(316002)(8936002)(5660300002)(7416002)(8676002)(66946007)(38100700002)(15650500001)(66556008)(66476007)(4326008)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?juzFw+jXyJQzrMUVzNCHdn2vfIEYtPzooyNJNM2DemkEjWZWAw3PmbI2q4lj?= =?us-ascii?Q?6a0bq+pKyMVdAO05n6TS/ecF8u7zcOeE9M6OrWIZUumLMjgjDbejMEoV1HB0?= =?us-ascii?Q?4vmDfj7UA1TVNgjONM+aOegoA7OSbMiizeJzQJKPd7u6RWiu+HTTZ0dhxb+U?= =?us-ascii?Q?1pkKaSX5rXAsP1hMzxndP99nhaCbJrKz8T7t11BVTPwRYvZkRVvRlymSvc1T?= =?us-ascii?Q?lDV3/k3zjDkxIgV5xmpQxF58YNwHiTg5Qxc5RlWurIun60unfQFBr/niYllh?= =?us-ascii?Q?seg/F2nyz7QEhytbVj0BLB7njKIXllx1EVkgUDC2q3bQK3iBcm7jdZq8vPa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0hOVFHEuKKX0NR+Na5rmRvhGmMnP?= =?us-ascii?Q?e1qPJz+2SHfrIzzo3hSt7m95m/VBhDlAXZoo1nbpxBcwhSw5A3kH4GYX3G2N?= =?us-ascii?Q?xubR2HM7KruADULjPy7HSlUWqlOM4O/9Td6HN65lB0Jp8naSJTUMxp4obPZH?= =?us-ascii?Q?oxvc8cncO6Cd26/OdvrNh47S47aG7NNAS4NEcvjK17c2MNNxp3F9FeB1My2Q?= =?us-ascii?Q?A6abINDW/WEciy7P9qQz4TJ0fIFlS9g7mMxohfeKuayZESJcxqdOQ6qW8OAE?= =?us-ascii?Q?ofDyCROn++Dwkv9bzvpQFvP8EnxTCrnlJMlCLFipL5oWrKJL8E74nQkSYjOJ?= =?us-ascii?Q?s2219LXH01jKNZIPtf0WTotFX9zm8OoDB4oRrvRD?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ccf9711-4c4f-4edb-e28f-08da7e5d8ac1 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2022 01:29:05.4960 (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: P7aR0ZQu6wdjcLicWh+vIVQ4s4oaZa5V3NrSEsolu2/OCjNZ0xJeggsxuX+N2LWN73IIa+rDALlUgC5htojE0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3734 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan V2: Add A-b from Rob Add a new patch 2 reported by intel test robot Use Abel's new address for sending mail The current clk driver use gate API as i.MX8M*, the gate2 API use 0x3 as val/mask, however i.MX93 LPCG DIRECT use BIT0 as on/off gate. So clk disable unused actually not gate off the LPCG clocks. And i.MX93 has AUTHEN feature, so add a new API to support i.MX93 clk gate. i.MX93 CCM ROOT has slice busy check bit when updating register value, add check. CCM ROOT also has AUTHEN whitelist, so add DID check. Besides the gate/composite update, add MU[X] and SAI IPG clk in this patchset This patchset has got reviewed in NXP internal, so I keep R-b tag here. For those that have some change compared with downstream, R-b tag dropped. Peng Fan (8): dt-bindings: clock: imx93-clock: add more MU/SAI clocks clk: imx93: guard imx93_clk_of_match with CONFIG_OF clk: imx: clk-composite-93: check slice busy clk: imx: clk-composite-93: check white_list clk: imx: add i.MX93 clk gate clk: imx93: switch to use new clk gate API clk: imx93: add MU1/2 clock clk: imx93: add SAI IPG clk drivers/clk/imx/Makefile | 2 +- drivers/clk/imx/clk-composite-93.c | 171 +++++++++++++++++++- drivers/clk/imx/clk-gate-93.c | 199 ++++++++++++++++++++++++ drivers/clk/imx/clk-imx93.c | 32 ++-- drivers/clk/imx/clk.h | 9 +- include/dt-bindings/clock/imx93-clock.h | 9 +- 6 files changed, 403 insertions(+), 19 deletions(-) create mode 100644 drivers/clk/imx/clk-gate-93.c -- 2.37.1