From patchwork Thu Jan 25 11:09:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13530855 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 54E8FC48260 for ; Thu, 25 Jan 2024 13:58:20 +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:Cc:To:Message-Id:Date: Subject: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=B+Lz1gV/uxTdRDAFK6LwXBCzoREXNwWS8uK0j8rXEkg=; b=h/0CkafOj23Cdt B1G1xYO/QkHdr09tvOdQw/wY4vviDkkfR3GFuXyx35YW2fIAfY750JKceo7xECzKzvgs/nMipvxn4 7jrJmkkNbbF4V9qoAqnWqu4pFCZfZJ4MsHmGz3esShLHZdWxT+P37mEb5WqIVxeEx2+bQIAN2EROG dTtJpiEhMF6rTDsotctqFU6B7vVjj3ORh42mPrIdedtbsXhKab0O1ZMbYUnDs7hLudKFvn4MGBinE KSNRVO3ZkXT/xcv+qaTVZQDT66mdgBxo1IUaD9JjDxqpVK/uyhkN2x1Q9wmvBTPHWrvIwtFhTPD+U X91Y+UexMseK8YxHOJPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT0F8-00000000B8B-0TfD; Thu, 25 Jan 2024 13:58:10 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT0F6-00000000B6q-2tmF for linux-arm-kernel@bombadil.infradead.org; Thu, 25 Jan 2024 13:58:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Sender: Reply-To:Content-ID:Content-Description:In-Reply-To:References; bh=/CBTVlcAkdfZaToFcna87lP180DfxyrqcFF3ZfdJw40=; b=lz3H/T7p7hDbCGiU3rQGRq5uDP Kr2GSlxF3NQu+4i6x7JxqiJEDkXqnLsm11EHanqi6ohSz4bY9et2RW2qiPu9UgYKqMmjtQQcCxUpi cPAO7ZfukGsSwuSME0YHdVJTiE+BbxW+r3o1D7Tg7MULmkTwGVNSiOJH2ZRp0hlW7rukYP835FKnB aqKq3OewhNwFYZmQmYdoYGF8ncY6bS7jTmRAQoJBl94AbTvJmP0depqYTdG5X9WLP6mzDYGNzGC/i K9wtiyVPe/IZ9PcHpYnN9eO2imzv1xzOf6xxWFDut/2Gwe81EZR7Vqsx94UOIYZ0W6C12G6Ujsm9D eB+kcx9A==; Received: from mail-he1eur04on20601.outbound.protection.outlook.com ([2a01:111:f403:260f::601] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rSxnH-00000005B5w-1eo4 for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 11:21:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KeBTFVuNSz3abC+Wa8e6Ezhf0idO0k8iD2WEwDC4WYqFaM20Igssh9nkDIkgFa4n0CB4Md8fpNiBHNfTr7qkpxmthfBU9/59xMUw7mjsp3299wXPlZC3H7pln+SiCWXH9TZJizyjESAkF9xWnW3qb1aK4V6kBE22LlX3AghTx/06yKuopT9OaGj+0zLlOr+DzJHDl349hr34BodiAPO1HPouz6Lx2vp+vQ5esymIz8bIHUZ3YV+jqfBTXbyrRAoecWZkBNynBshwIxLP5MuaTk1rgN2DoevgdmBgdCptGLnsXGzQYX7KVgj0ocZGc6rm5Hfj4cxMyfUiEP2XcEfbEA== 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=/CBTVlcAkdfZaToFcna87lP180DfxyrqcFF3ZfdJw40=; b=cG4ALy3eKIvNjVPX6/kWwtDgDzfmm6Zo5I2zLFfnbxKcchnJFI2OzKF6SswkPCufo6HJjNUV0qwgPh4mkttzgDV3F7HLCnlWW4gfz6Y2uEl8NtEQFWoclUGJmTBFJ/ggw4GndauBFTmBB5DKbMcxcm4dQ7dZ4M20AmW8uuVOaKU6k3vK8Xkwh4tzCAouA0+GbWs91jc0uLf9p0CVdVoRBvJxXXdzE/YIfODH7D8LrhRZqvxAnNwdr4o/b9v2oGFADtYpmJ1aNgx6AT8T8Zu9SfMnuK4iU5OMWsJJ+26sjz5wGe1EwODLCD/QQW687Yx1WDgtYprevFvRYQYycAXHPQ== 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=/CBTVlcAkdfZaToFcna87lP180DfxyrqcFF3ZfdJw40=; b=F5h1IxHV3es9MzjwT0q/9B1AMQp1LqZdXh+IT6V6xmKfO/fbHFZsQb6JBw14bgsfKZXP0DK5Uwn2he4b2e3kYHLqg4fKQLOuzFYHJCc8AWllGrAl8CIpcW3XBjA6Rtd8a0iwbSd8J17ywFgOGEZhhq9sWoFl6yKsi6symhpdspw= 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 PA4PR04MB8013.eurprd04.prod.outlook.com (2603:10a6:102:c4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Thu, 25 Jan 2024 11:05:32 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::c499:8cef:9bb1:ced6%3]) with mapi id 15.20.7228.022; Thu, 25 Jan 2024 11:05:32 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/3] clocksource: imx-sysctr: support i.MX95 Date: Thu, 25 Jan 2024 19:09:46 +0800 Message-Id: <20240125-imx-sysctr-v2-0-7332470cd7ae@nxp.com> X-B4-Tracking: v=1; b=H4sIAHpBsmUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHQUlJIzE vPSU3UzU4B8JSMDIxMDQyNT3czcCt3iyuLkkiJd40QLy0QDC1MjY3MzJaCGgqLUtMwKsGHRsbW 1ANDwrYtcAAAA To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bai Ping , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Marco Felsch Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706180999; l=982; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=Pm3VOp9lyPcsQTfFUS61v7QXjT8AQbUIGk6tZpwkcPg=; b=SDFpWiU8VvwUEzWiS9tl0HAe2uFkoWnQjdFK5gQWXDNc04vjMy9kg7Kvt5QH46qTVdSJDcluK 2pNQFu0w66GBwJgYfj72zG2GqWCJBPaEswsli+G9140n2WtfKy8r3ZO X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG3P274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::34) 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_|PA4PR04MB8013:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c3d0bfb-1699-47fb-90cd-08dc1d958b8d 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: WfnoXr7xP3XUpthbQETq9WGfgAH8V7BT9RiX/MVYmfqAXUlmjn2MuCJjicA+epCKZTO8LRSDC8EN3fKNn/NdliDkwNlQxH9z12/ScHAN5F9Ys5LVebDyEn33NSo0MGmm43MHOFDES3j5RJXMCNCQ5Z0MiA46HP8V+3v6I7P0rLqTyDjdtehw9bV03LkM/DGvXu1hfqWlEpRWDB3Am65Zj9cPAdOPYc4q+c/zLu+nbRiG3zwY1lU9FswROq3H/p/1seY8v4zCEu8XciAQo+HrQp0L6GDpdKcbSSMX6BkwssT+c04nuAlpqRJgowkHLeJQQ6673yvEaqjREoDkyhvVH+t5PA3yc+J4EnY1jnk7dtKjLPyZmVsrXzsNaJ9rcTBkMtHb59A2zD66pv2lpYcbM+7xuHu2j7kgMO9nDCfTQr4DmqbrjWTEjw1oUAv90YZbfv/s0Hj/TTFQbEs1+7CCTOOqGGFFW+1+hjMJg0h5aubUD/JxbFF/qa7eVQVsx92GPxB7fHaKZqI7pgq4neN334WnJUlyybEg1jz8Oc2U3z5Iy2TArcwp7iDCHQn7/xKV3N6f354KHcNLKXYnE9O81J3EaKc+GBSWXE10HNLhxVnGtyx+m06Oaa/g/bRmQbCFPx1zdh+7Q9ISpWZndxs1Yw== 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:(13230031)(396003)(136003)(39860400002)(366004)(376002)(346002)(230922051799003)(1800799012)(64100799003)(186009)(451199024)(4326008)(2906002)(4744005)(8936002)(110136005)(7416002)(66476007)(8676002)(5660300002)(66946007)(83380400001)(26005)(38350700005)(86362001)(36756003)(66556008)(316002)(921011)(52116002)(6486002)(9686003)(6512007)(6506007)(478600001)(6666004)(41300700001)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?CQaPzXXKMCEXStqGPOkRZgv4mFaF?= =?utf-8?q?L/djpK0SWp+sPjQsv3o2bEZVj+fTMUa5wggZv8iyt6CbkJ1rMj2J68P2Si4WPnY0g?= =?utf-8?q?rLsNj2isA/mNY9bvXWhQEwOf8TH7V+w33aB/Y7YSoQ4L2hvZo1utpobt5xZmLtkVr?= =?utf-8?q?yOMqaFF1VTfVKYL3h6YvoImY5ONQothCRxpzmzOl6rkBImgVsE32xTVJI1c/fEMC0?= =?utf-8?q?r+g/N35hJ8N+NTk0a7WCI1DdQ4PqeD60mEuUp95p3MbHOzTNQT8Bbo8lPCABR3Fbw?= =?utf-8?q?ESUewTtoPzWdiwyFaQv/9w5PYJ3GCMdjy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BQym4vGk+zX6YeyRN7oAqHOqhBKlJFcUKB8Sr/Qa5?= =?utf-8?q?hQJuOwKKvBpK9WTWHvp6fZ1E5ztf7gG0++JXESav1mrCg4iE7HXMSi/Z2CMNOJFfX?= =?utf-8?q?+xXgzMg8SvjZS7eSq0tYqJUOGD5amETtdfPe1dTspQXM9d2D3HLnbfGwtmpWEpsTx?= =?utf-8?q?u0PL8msboKT8Mm2BrSYGzck+w+DHOrWYSg+PXg9BBUfvsNTXhQ113ixNHt+DvoyEJ?= =?utf-8?q?uHUv1Af94zfGGtoGkMYEt6DyMUxSl2QRzdM3za9kSmyIXRk4cZyFWI7dNiaua734s?= =?utf-8?q?R4PAIq445iPc/oq19SKE3dVsYhy4MbGpB5zj8ZitJe2WBFscCQ26MkNP3qqTSxt3W?= =?utf-8?q?+Vi7jM32juHa?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c3d0bfb-1699-47fb-90cd-08dc1d958b8d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2024 11:05:32.0881 (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: As/pjjEVKpUijbVfwsI3z7el1vQfF7Ox7ESVKxvJmiBfqU0wkzMyJkvv2a33/715YsGZITlbrmXWF57rYZWxrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB8013 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_112115_534429_AC57D3CA X-CRM114-Status: UNSURE ( 8.05 ) 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 i.MX95 System Counter module control register space is blocked by SCMI firmware, so we use Read Register space to get the counter. V2: - imx95 is not compatible with the existing hardware, so add a seperate entry for i.MX95 in dt-binding. - Per Marco's comments, the global variables was removed except to_sysctr. And add a new TIMER_OF_DECLARE entry for i.MX95 Signed-off-by: Peng Fan --- Peng Fan (3): dt-bindings: timer: nxp,sysctr-timer: support i.MX95 clocksource/drivers/imx-sysctr: drop use global variables clocksource/drivers/imx-sysctr: support i.MX95 .../bindings/timer/nxp,sysctr-timer.yaml | 5 +- drivers/clocksource/timer-imx-sysctr.c | 116 +++++++++++++++------ 2 files changed, 90 insertions(+), 31 deletions(-) --- base-commit: 01af33cc9894b4489fb68fa35c40e9fe85df63dc change-id: 20240125-imx-sysctr-3a89a0852376 Best regards,