From patchwork Mon Nov 13 02:23:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13453541 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 E37EBC4332F for ; Mon, 13 Nov 2023 02:23:36 +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:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QUZ12X2ZZzFLHQVvLWysL0Ij9vsJWVR8oGqaLGkMHrI=; b=qwhw2podvLwMh2 Cmu/knbUE6b0Ch6kkS1B0omxvsNX8whtapvcnb4T8d2cAQPbvQ7JhZymHNLdtWRZwvumtJKKvsMpw vDjCVE/V4zzcM19sMqVDko4uanwsD4QqfI2C1dUkFxD5KromAa7DxIwH5yUEiaQBAREW3FjgGbYZZ hwv8zCVofvDh3ZNaYmTivK/WmHR54bYEfliwg5S4+lDKVmUdTcihX7hur0oSAMcgCFm/0hCZT/kXv Foe1cyxVD5/SF4NYLJjPCKKb1cFK0BYz4vDEPRuoD8YL+Vw32OE9WuvcSln4pxtwv5lpNUl+gjRi5 KSL8/k529jZOoVzMBuBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2Mbs-00D3oO-0O; Mon, 13 Nov 2023 02:23:32 +0000 Received: from mail-bn8nam12olkn20824.outbound.protection.outlook.com ([2a01:111:f400:fe5b::824] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2Mbq-00D3nL-0q for linux-riscv@lists.infradead.org; Mon, 13 Nov 2023 02:23:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U0iCFeWoVsRtDGJt5DdHjwtvwS885tnWJnCPUC1jeOx/z9Ld32E9MY+Gs008TLibf/9p/msITmTnPyWpP5KkQixijKypY//wocrmgg8E9lPv53sV/ZUzyqsD99hAMSIRjxiIxU9QaEChCXlYP8iPjcy8dSrY7WwgHsF/nOrYVt+zCtiHGzsMrhEDsdYgG9Df0pKkg+N1P9CYVc/TDlNemAFMYZd7EDTY2WWHLL+qyh96SWA97drEIBdOQjXJZEldkbVu/jZTStkfTHcCOY3f/UwiLq1knCpgIpHAObMj6N8s9MEg3oyjfm51hHClibW1RkX7IDIoDwetTJURGjlwwg== 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=LpU5gCj9Do/cH/wu/rkfmj9yggEU+9OjpG/hwnYqUoM=; b=cFtjKMH/5DzxT58XcEjryBhKlZL4whZbO6f37OcbOsrC1AgMsiAO4jl6bWt4Oig+EEJwkpTEbdJGfZceU44WLiaKucPCDC801QrcAGxTLFFGs+4qXF2fevasZAbh3kNV/BEef1Sh4MOtHXRbsb0tiJVbfmpKP7tpaAetfM1M5abMYkOMxSY6r6nFG2NPJK7OLlsfdo34ZvYZwy4g6jaLU0bF/e4GTiuLyP5YL9muUNGr08Sx31koCPvE1n0j5kJ4K5MI42BG2O3gy9DTO48KJEPjgC4iWt4kAPBDG0v8H+F18uQCPEq4FOdhmZfMNA91P11zTBrOCWDmAofm8zXTEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LpU5gCj9Do/cH/wu/rkfmj9yggEU+9OjpG/hwnYqUoM=; b=FLjOPkYbHuLqVTMvUqO7jX9oQFG0ba1fgeGCHXciyLa90biZktK65yMgF/KKuPU2E/D2ugbfZ5/RtqlQ6Ix6wOKxbVeAEqUhUYKCcR/Ttks/g6gx8cOgwGdmiXga9AJkw2IU2leQd8xYpaHjSnXhfbn2BhW/YREw+NZKutLiEeuXvaRleNYEUITeNDUzqviRnmiR5lfmeXVDlaZBg85Rxf4QLwDwf9hjiKUesv7m35ERN7Sq/EKvRWWVed9B0oFTctWy/NUr21Bs7W7LBid4fd6y4BbGW4lg4TrMUiu7WRUOyK7RdBNUK5XDm32zrloisUO9cSH+JUCmhvJlYLQq7g== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by MW5PR20MB4404.namprd20.prod.outlook.com (2603:10b6:303:199::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.26; Mon, 13 Nov 2023 02:23:21 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::55b:c350:980:ad8]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::55b:c350:980:ad8%6]) with mapi id 15.20.6933.029; Mon, 13 Nov 2023 02:23:21 +0000 From: Inochi Amaoto To: Guo Ren , Jisheng Zhang , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto , Chen Wang Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Date: Mon, 13 Nov 2023 10:23:59 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: X-TMN: [NdSFdl8D1J/KNdb1Jw2n+dBp1hKcMzyIK4ShqDiJjW8=] X-ClientProxiedBy: SJ0PR13CA0160.namprd13.prod.outlook.com (2603:10b6:a03:2c7::15) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231113022400.36203-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|MW5PR20MB4404:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bb3733d-91a3-41f5-91e5-08dbe3ef8125 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pGTDLKvdumGcnYWbLifUJ6CT7wHFGfj18s3C7bXy5K1+ZUvNDeKUVdxXzYO4pBxyrd9ERjtUkSJqzAefd4VUCQjhvQgreidfgDk5W9XJUnlFvPdStkXPlxnMpK2qLc6NBRd78WUEy2FBjACVd45zpkPb9jFPUIfBGJYVNhg3pNy75vGmgYyTqySWjxNcf37JgDWvRMbeNRHRx1AkWltt2AaEt6KoaDPt3uzqEg1r1K6EbROlbnkcwHXqV77Zqkkj0MUdgW7Vx+d7FnUWinTvPVAYnpCwNpeR9b+4BomyTtdey4fv6yG0lZ4SX22S68vcbQuPaG0RpWkNQWvBHgk3OtRyyF8h0NVdjGHYXEJI8z75pVmhslhAmWfHP1G7WSNG2IktQT+vseij+XMpxRxrrQ/uNt6DFBi8eL3WDv7jrDCT6YjAav+CvfRzAQkqAXw2bgyp4AsayZPo43mY46R+sWLVe5uEQ583uOQHDvd3Shv+0K4oK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6rHV4FwFxTolXGRiKnlJsD6z6dDP4MZwQkiglS3WMWUUF/iRho83MfWXWC97PlyJhHpVNTjGaB0LNHqZuy595x7/4wGgS22wY9WZKnTUTg+UbDkpxHR/8W+BcI5lUJX0WtVk/vMCz71b5PXT9RC0kfh1I1re9ERrHZhlKAxi9AadXe2oXrWR/px7+H78Dhhx8XniBRbxudK9W60wcn6fB+R4l1K6hEJMlUlktNncJdw1Cl58+yzzvOQHlZA/R1T3AuxeZlcd6yMOK+3kAr0E4qsLoxEP1noIzzUL6MzLUdme9wwB7if4W5Azz6gT3yG9JtKwJHn+NkktjEQ/Hb/mFD3/a5+KZpj5YXSzbWpePVnW6eVjGFmA5cn2+itPr3fmCjg= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bb3733d-91a3-41f5-91e5-08dbe3ef8125 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2023 02:23:20.8836 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR20MB4404 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231112_182330_302886_829ADE8C X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org To make thead aclint timer more closer to the aclint spec, use two regs to represent the mtime and mtimecmp. Signed-off-by: Inochi Amaoto Fixes: 4734449f7311 ("dt-bindings: timer: Add Sophgo sg2042 CLINT timer") Link: https://lists.infradead.org/pipermail/opensbi/2023-October/005693.html Link: https://lists.infradead.org/pipermail/opensbi/2023-October/005738.html Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc --- .../devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.42.1 diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml index fbd235650e52..c3080962d902 100644 --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml @@ -17,7 +17,7 @@ properties: - const: thead,c900-aclint-mtimer reg: - maxItems: 1 + maxItems: 2 interrupts-extended: minItems: 1 @@ -38,6 +38,7 @@ examples: <&cpu2intc 7>, <&cpu3intc 7>, <&cpu4intc 7>; - reg = <0xac000000 0x00010000>; + reg = <0xac000000 0x00000000>, + <0xac000000 0x0000c000>; }; ...