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>; }; ... From patchwork Mon Nov 13 02:24:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13453542 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 E765BC4332F for ; Mon, 13 Nov 2023 02:23:39 +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=W3eRSBt2Oc3wBlQYnKcu+SJ/6LuCNZNx4MkkXneKi0c=; b=BJAYS+SgXLRST3 IZILG+P9HzAm9YRHHgjg0mVXd2B+ymK89sD/41l29vglC+c5fXGiaH1e/Lkkg8Uxt/ZLWE7Jnyt9/ +1G3biLr/9hC5X59Muw2mLvsZQKSdN+U4aqz1GHNyG4BVHnyM+culDfPII4C50oauUSguDLYzLRt6 +VpLgsXEQDgVGRZ42k/iVb4aEIbqkyubZ9HEgaFeI9KUtc/oz/qa2fl+hNB3FvGwlmhLmBx8tDodC SR0TQ6rscZlJBYIdLLM3ykwAhKUAnlfrjlH66Njn+HZKzmOmuk+tySCE2iq+JD+UpUC2mCdPY7NEi QXUCG4KH85bdEAOWhKFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2Mbu-00D3pH-2k; Mon, 13 Nov 2023 02:23:34 +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 1r2Mbr-00D3nL-33 for linux-riscv@lists.infradead.org; Mon, 13 Nov 2023 02:23:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QwyqAbt7/ort9PDNLC/XfyEB8O+bEQU1nNexukyXXJ5yNfIwIlxSxhY8uoYcyZI+ZtTJVHcCcYEtHSQ+7d4agQJjkSKPVSHrsk5zV4MMfLvYwsbWDwQYGQ4rMvftUYxS4ZLhqj9PBLBVkbxM+95vYkwyS5wQ6rZSiIztf3urqrtPEkKIGgyfI2MUGIw8Q+awVDDLUE/EJS0C1WqO22y4WO60uZAHzd854dGX5mnOv7NfRXkmEC/DA/2QJz7ZDBuAC6XcknuX54/ntFLbMOSVXJD9RvZlbiQJtWz4shCn28LS/ldycd4P1B2PegatSc8oYtzvvxFbc3JVs92fm2zo4w== 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=W3p2gWsaGfy+eN0wYhaYS9pM5sfYQbyopz4lxiaPD+I=; b=TkEPO3e4VtsVgHUtbA2zMYRjWE8n3NrXdti8an8r4YVymvnHx4RxnKGfBJyeDMRlpLzUhStK08RSjtjQWWOSi4+mewGYL6g6cXjYlBnDeSUnnDFaT82z34O4iXqxYzqITRYcaWQ8hyir+GZh3eyrZKaqTSSnwSlA0qvYhDttHR7pdOLw2pTzZ1dRu1LfzFN9mMm8twdBaAqSVdmpaqDHDNL5AuNFGWUEmc2rxiXXMdeuhdXSiBdBJXcYmSJiGnnKu8o1aRaIWnkC/MAm50zMJ/6Uz1a5Cqbr56X9hEub4s2bJ7ymmspmgw6Dm3S2iKZtbLLye+ZKmVwGH/nzVgPucg== 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=W3p2gWsaGfy+eN0wYhaYS9pM5sfYQbyopz4lxiaPD+I=; b=vT97LCILGkBC36UZV6196WRYxxuQ7EJaqoom7UdZ8MKNCWssE/LOh+PV/gaM9YbpM/jZOYz6ZLDFDie+yiJZst6Mlx/+okr/3u58aeFR0EQKln6T/FnMaT+C5aZmjkqXQ+sC4Z3+eBnnHjrBGF/kkCKDJLuy8Rk2iHvG4bK3oLukT+bF6Ht+ENYFtJe8tF5xiUeOAPiwYhMAUqnq1ZPFFZwzXwRPZNO19PhYvpOZfqy/b/ujt8+7kGbDP8p7Qx0MGKpH3Fvtr9DHq2DgqY+/k+pcjfXbhWjSKSzZCisvYw2AiavIuGlzWHduHope7bKcsCKZJcWW99BwVuvJqCUdSg== 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:25 +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:25 +0000 From: Inochi Amaoto To: Guo Ren , Jisheng Zhang , Chao Wei , Chen Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto , Xiaoguang Xing Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format Date: Mon, 13 Nov 2023 10:24:00 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: X-TMN: [H6mLKybWizIlvpgKA6DLJNArxrqbrZyJ+GwCDSA/dmY=] X-ClientProxiedBy: BY5PR20CA0027.namprd20.prod.outlook.com (2603:10b6:a03:1f4::40) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231113022400.36203-2-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: 7ad70593-5636-4299-88a5-08dbe3ef8401 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5TdttWWzNy6qd+nyu40jKhQG28u9yHPI0V87bZuOtP/HYTQJyUpHk7TfRYVviHJlyGT9glfyABekVZ3fnNvmKW8tsQ5Bd8UF/XTIKBrxtAc+lXsQcRuLo3kB/1yjWHduORKBaxRhtC+TeWMcCeTbZ2626N81oh/c7tZjSaGAlyoGTjPwLPMgZ88Mc9tqzBatqEBv4s4Ba8YqE9Gw5Bm4/lu4+Odgft5xhTg6TsQEAb4ec9RlL/LO5ZQIPVVXoueYNIwsnowDUkZx4spEZn0Z/RqlpKIumNmXR4EwmoQ9E/KUKcSYHK1Srpo3+U86mOYBbnzR7DKpY8i/5LMxzm2bD2NDVXhXUDwlpQ9gqsTxeJ3zbgXcpxLH2K0lVDpiw+bB6/LyfPJm9aLuy0JWD33nwfVGAk+DENSKa4+T2AtHFmPLlL4khmdx2bC4Z5Zyxe8fdumXF63Fd5GE17/nyuAjoFIYbC2NWCB5pL9gE0r1zjYlL7yP5DBgE0eTbmebfKUgGVJ1fPW6gwJ5e/9ym2gK1H2smWtGnb4jjwvOFDG4hM45jSrX/JyAOTjPcxwhoPD0Pan2aww8qB51/u/r99GGyoPnVHWt6O5uDuFMOiiRL0NGMQL3w1biDrTWlkAJ/bcN X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VTmX/lTrC9FSIR3RwhcKKPHCBNzUbjVVc6Lr9yfzMJ/OEnEmsaNqhRS7EJP/JnNhfXwA2pHKc2WU8Ny7kBI0vlTami4iLLzvpmIU+ol9Z/CIvdg8YcHuoKk4NCOaId5qPYLz6S55Ktt2YffBdfT4MAU81a3jadX3tg7KGvbFiVB3pIY/gGr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g: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7ad70593-5636-4299-88a5-08dbe3ef8401 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:25.6759 (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_182331_985954_F3B7C14A X-CRM114-Status: UNSURE ( 7.25 ) 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 Change the timer layout in the dtb to fit the format that needed by the SBI. Signed-off-by: Inochi Amaoto Fixes: 967a94a92aaa ("riscv: dts: add initial Sophgo SG2042 SoC device tree") --- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 80 +++++++++++++++----------- 1 file changed, 48 insertions(+), 32 deletions(-) -- 2.42.1 diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi index 93256540d078..0b5d93b5c783 100644 --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi @@ -93,144 +93,160 @@ clint_mswi: interrupt-controller@7094000000 { <&cpu63_intc 3>; }; - clint_mtimer0: timer@70ac000000 { + clint_mtimer0: timer@70ac004000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac000000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac004000 0x00000000 0x00000000>, + <0x00000070 0xac004000 0x00000000 0x0000c000>; interrupts-extended = <&cpu0_intc 7>, <&cpu1_intc 7>, <&cpu2_intc 7>, <&cpu3_intc 7>; }; - clint_mtimer1: timer@70ac010000 { + clint_mtimer1: timer@70ac014000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac010000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac014000 0x00000000 0x00000000>, + <0x00000070 0xac014000 0x00000000 0x0000c000>; interrupts-extended = <&cpu4_intc 7>, <&cpu5_intc 7>, <&cpu6_intc 7>, <&cpu7_intc 7>; }; - clint_mtimer2: timer@70ac020000 { + clint_mtimer2: timer@70ac024000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac020000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac024000 0x00000000 0x00000000>, + <0x00000070 0xac024000 0x00000000 0x0000c000>; interrupts-extended = <&cpu8_intc 7>, <&cpu9_intc 7>, <&cpu10_intc 7>, <&cpu11_intc 7>; }; - clint_mtimer3: timer@70ac030000 { + clint_mtimer3: timer@70ac034000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac030000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac034000 0x00000000 0x00000000>, + <0x00000070 0xac034000 0x00000000 0x0000c000>; interrupts-extended = <&cpu12_intc 7>, <&cpu13_intc 7>, <&cpu14_intc 7>, <&cpu15_intc 7>; }; - clint_mtimer4: timer@70ac040000 { + clint_mtimer4: timer@70ac044000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac040000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac044000 0x00000000 0x00000000>, + <0x00000070 0xac044000 0x00000000 0x0000c000>; interrupts-extended = <&cpu16_intc 7>, <&cpu17_intc 7>, <&cpu18_intc 7>, <&cpu19_intc 7>; }; - clint_mtimer5: timer@70ac050000 { + clint_mtimer5: timer@70ac054000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac050000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac054000 0x00000000 0x00000000>, + <0x00000070 0xac054000 0x00000000 0x0000c000>; interrupts-extended = <&cpu20_intc 7>, <&cpu21_intc 7>, <&cpu22_intc 7>, <&cpu23_intc 7>; }; - clint_mtimer6: timer@70ac060000 { + clint_mtimer6: timer@70ac064000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac060000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac064000 0x00000000 0x00000000>, + <0x00000070 0xac064000 0x00000000 0x0000c000>; interrupts-extended = <&cpu24_intc 7>, <&cpu25_intc 7>, <&cpu26_intc 7>, <&cpu27_intc 7>; }; - clint_mtimer7: timer@70ac070000 { + clint_mtimer7: timer@70ac074000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac070000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac074000 0x00000000 0x00000000>, + <0x00000070 0xac074000 0x00000000 0x0000c000>; interrupts-extended = <&cpu28_intc 7>, <&cpu29_intc 7>, <&cpu30_intc 7>, <&cpu31_intc 7>; }; - clint_mtimer8: timer@70ac080000 { + clint_mtimer8: timer@70ac084000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac080000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac084000 0x00000000 0x00000000>, + <0x00000070 0xac084000 0x00000000 0x0000c000>; interrupts-extended = <&cpu32_intc 7>, <&cpu33_intc 7>, <&cpu34_intc 7>, <&cpu35_intc 7>; }; - clint_mtimer9: timer@70ac090000 { + clint_mtimer9: timer@70ac094000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac090000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac094000 0x00000000 0x00000000>, + <0x00000070 0xac094000 0x00000000 0x0000c000>; interrupts-extended = <&cpu36_intc 7>, <&cpu37_intc 7>, <&cpu38_intc 7>, <&cpu39_intc 7>; }; - clint_mtimer10: timer@70ac0a0000 { + clint_mtimer10: timer@70ac0a4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0a0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0a4000 0x00000000 0x00000000>, + <0x00000070 0xac0a4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu40_intc 7>, <&cpu41_intc 7>, <&cpu42_intc 7>, <&cpu43_intc 7>; }; - clint_mtimer11: timer@70ac0b0000 { + clint_mtimer11: timer@70ac0b4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0b0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0b4000 0x00000000 0x00000000>, + <0x00000070 0xac0b4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu44_intc 7>, <&cpu45_intc 7>, <&cpu46_intc 7>, <&cpu47_intc 7>; }; - clint_mtimer12: timer@70ac0c0000 { + clint_mtimer12: timer@70ac0c4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0c0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0c4000 0x00000000 0x00000000>, + <0x00000070 0xac0c4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu48_intc 7>, <&cpu49_intc 7>, <&cpu50_intc 7>, <&cpu51_intc 7>; }; - clint_mtimer13: timer@70ac0d0000 { + clint_mtimer13: timer@70ac0d4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0d0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0d4000 0x00000000 0x00000000>, + <0x00000070 0xac0d4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu52_intc 7>, <&cpu53_intc 7>, <&cpu54_intc 7>, <&cpu55_intc 7>; }; - clint_mtimer14: timer@70ac0e0000 { + clint_mtimer14: timer@70ac0e4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0e0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0e4000 0x00000000 0x00000000>, + <0x00000070 0xac0e4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu56_intc 7>, <&cpu57_intc 7>, <&cpu58_intc 7>, <&cpu59_intc 7>; }; - clint_mtimer15: timer@70ac0f0000 { + clint_mtimer15: timer@70ac0f4000 { compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer"; - reg = <0x00000070 0xac0f0000 0x00000000 0x00007ff8>; + reg = <0x00000070 0xac0f4000 0x00000000 0x00000000>, + <0x00000070 0xac0f4000 0x00000000 0x0000c000>; interrupts-extended = <&cpu60_intc 7>, <&cpu61_intc 7>, <&cpu62_intc 7>,