From patchwork Tue Nov 14 00:45:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 164692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1568499vqg; Mon, 13 Nov 2023 16:45:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEles8dC5zgrtNyHNuPyxfYR3AnaibvaS4Ayge7UiVoz2pPj5m9wesdmGFz2LzqlFsU2N5i X-Received: by 2002:a05:6808:a04:b0:3a4:894a:9f3d with SMTP id n4-20020a0568080a0400b003a4894a9f3dmr10051025oij.41.1699922755948; Mon, 13 Nov 2023 16:45:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699922755; cv=pass; d=google.com; s=arc-20160816; b=s1l1FkgprWBwnrLe2oYCQDousKfkFQSQjzz6ELeragWF/3JDH3ZobK+vyZL3ZYfDR4 38ZTFk1MAJOa14d+q0bXe96HiOz70KbA21Dgx+qQ4eIBGw+fag2TOYj2Rd0aZCMX8wEO 8OY0l/qPm5syh9e4kKLFNVLKYPoMHgE13WLs18pmNHAGkGO8NyjrfAnBVqlGVViNE8hs +HVMtfVIkYVKLl+bPLA5yBPrzgfgQXG5QhlF8Y4/X5pS/KATtZa8ykIYctfy67+YlcX/ RTOtplJ02xMpOiN5kNZwr4/wM6wyYlsPYshiuxa8us8Jm0X2sgyNNVf44/hZZvJf6uPk +IOw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tLCJF43U9rhk3x0h56agQamxmuJvrnREIg0aplc0gC8=; fh=9Yrk4LrBxq0xtkQZyHcHOldQKWX8lfaoH2na0KclzjQ=; b=r0NuhWllk2i/Y0GGu0FFqLO1H5sxgfleXV5jlnP0FE1ltIazKCHriyO7gVSuaFd/tW JmBwgcK0wdi5uxVeri2tT1QXbJFcMSTNNngpzrbEqJ1LLRtO3Pg7sEioH+kQ5Na9N0X8 Y/RX8bG22D+kjq0sDmut91CC/b9zgxDI4iDUKu+uKKz4v3CURl35UOqM4O58by4xniig 5hl+BvfKCCho2x9tURP03go7CV0K97bC7WX8zjoDgTSSgZjM169I7XjablGRH1pPOCN9 ZrRQG+l7CAqOnbCFCTr3yQRRcyeDXkzCqYfbrCYDdMMQp4CdDryB/gL6/TqdJbfqSXHD YemA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=GzTcDCi8; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b13-20020a63340d000000b005c1b2fdfe6dsi948056pga.573.2023.11.13.16.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 16:45:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=GzTcDCi8; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 58B788080001; Mon, 13 Nov 2023 16:45:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231503AbjKNAox (ORCPT + 30 others); Mon, 13 Nov 2023 19:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbjKNAow (ORCPT ); Mon, 13 Nov 2023 19:44:52 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2036.outbound.protection.outlook.com [40.92.41.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4905CD4E; Mon, 13 Nov 2023 16:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NU1H6IbdAz4wbpfkM53NXwtnKqpi+T3rSPCGicxXJMzhM6NjRVV38sECf22q2mV6+ECCAp5e9oo8beiXdq/PJ1Xk66diK8heHFcLNjdfanPSiYT9tuvjdxKLlWxu+qU6DGoZ6xi4l6ez+zDAxdupYNNupIDRn/IAkaXBzXQZvAloeOqSDWwCtFHLULPr8amq1Ru+WqVtmaybkD5vFs8hV/2NSzZLvZAMaWUVaJy2yihXBcZTmYOvHWhg1F6WV8Cel27LSqdek7JvCjtUeBxpXuhqJlpIngsHSSCwadAbFxy8/D0KXo7Iu7BRqTbNB3szW0EA4hY+xKlEBh8cxLfmhg== 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=tLCJF43U9rhk3x0h56agQamxmuJvrnREIg0aplc0gC8=; b=O90JVZXUDOZoVNYxco6zyITkPaixy06Ls53HcM4v7xCpGmMh/kkWMI+54QeXzrvwE8/jSdjZmhcLi9sm0+1jY2rZ6ujYt6wSE9yY1bYj7sVLGlKtj6+7U+Vj71FhUWw/p0ELfgMS2dK15iGIJF8w3/rGaiWORxxPMN8udnIQwe+pNXY9VS/CRil5TGloUF7Q8950I2kb8lwR6JpxMs4aahaIM4vvSrbsoHacAJjycLsB5VP0OnU/orY3lh8BtBjJbqQxneB+ywiDdRyi2pC6YYxWYNrjCeI+5WZ8D6qj/p1/FBU7Wvu1hQR0J/yBNB9DAa7LAMK0lWgcREVWsH7SEg== 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=tLCJF43U9rhk3x0h56agQamxmuJvrnREIg0aplc0gC8=; b=GzTcDCi8lXPjjztxFkYL1sgJmeikZ2Z77FSOCa9motgEzaB2PR/AYyGWFJELwNL8B1Pyy1LfHiDTrlaXZUUubadsNBkbjuFjb5VipgyO0xykPJUdRBUYeDFvykNAXYKlqlMbTNFFg35Ob0N0uRprMZK3UesWUv9x8zOYbjxV+AtgZ76aqD1qpGBwvJcbLV1t1MqSCUTDGTaFPY/Gh1M5qKy+hACAOaZ896T59rAx1yUZFSSTNG2sSbrYf+cC2xIb4biXvcXUFxOC7R46n7vQEmP15vFqo0GXOkplrYT9VuKmpE2+xFlCHHAmutWE3/JT6bMez/OuhfI2e97PD9CgfQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DM6PR20MB3492.namprd20.prod.outlook.com (2603:10b6:5:2a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.29; Tue, 14 Nov 2023 00:44:46 +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.6977.029; Tue, 14 Nov 2023 00:44:46 +0000 From: Inochi Amaoto To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto , Chen Wang Cc: Guo Ren , Jisheng Zhang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Date: Tue, 14 Nov 2023 08:45:31 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: X-TMN: [0mrh/P47aZM+VvyH6RMX0C3C2ZQ6F5hcch1gvP+7At8=] X-ClientProxiedBy: TYBP286CA0013.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::25) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231114004534.43833-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DM6PR20MB3492:EE_ X-MS-Office365-Filtering-Correlation-Id: d37af353-6b31-418e-dc2d-08dbe4aae65e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SsVK7yxfefAXQky8hhDaeRH5qvyMCN4Ubz1aCR/ZgRTgW/A9iLqbRor1PZzX2LEJlpLgJvOXaLh8aIVn5OvCjSa3fJLv4oAdTWdYzEZJXH0ILcA4vIGcJ+tTKs2XmFSb2QCLN9yS0GfRIWWZ1e5qTBYWwH4TQLbZD5cOhPhav/Id1et8NV+aZduGhbYVqqdpPUfPUnKjnMvBYVNvXDrNjRGfS1PNk/p+IhRVDpJTopGatq5iisDbWFHs3eBL6icl7uEXvd64m+btjZm0bMyeXZJ7W1UAVqQngGpnHGkJu6pTqJzZZPSsrvZkCnoZPwK0mKnz+mfve88/GHVIqG0h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DS3Ny1q/U7NYcKkVC4kZpx+hy7fomvVrKENbjgNP18oR8V5PwL7hBZMBdaf1oAHgd3MMh0BN4Wz7SaMv8Ms5iHP+MLTWljx/fjL3G5DULcDIPcZPegRfh1XnWrBnizeR6E+T0G9pV6VN5jockmkAty4WOb6GTdQPmFZkxTIlS/HGoD+ykWYKt5rTrw+OcKGI5lbEVKFu/1wCKpv9axx/2WKmpo8JXZynxvN2xfwyDP05S5IeCmsxceHSmJnSvXnWhOwwjMIYXAekwEiF/oonvOHgtkE3xNl0rW/EQVAG8qiRggwbR0KtwrvKaxCep8hcg0xWlaWPuOTdeLKkVh1CeZZMUFDdMwS08n9gZVKRXFL4ZXYBJ6Hpg7U9Sm9jK9RatUJj6xMEP8AbkpRHniy/TGe+2S/7OKlEm87tDKQqDwG4pKSdXOZwm5DtBR+iUWpLIHv6CtWEe56L8DGFOYyHZZRXrUI9aArEndHsmM6X/1ZbY3K50igMEAHrPPQRqCxfZZJ15zY67Evs6rxGQYyraUb5Yw= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d37af353-6b31-418e-dc2d-08dbe4aae65e X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 00:44:46.7477 (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: DM6PR20MB3492 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 13 Nov 2023 16:45:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782498203686743830 X-GMAIL-MSGID: 1782498203686743830 The timer registers of aclint don't follow the clint layout and can be mapped on any different offset. As sg2042 uses separated timer and mswi for its clint, it should follow the aclint spec and have separated registers. The previous patch introduces a new type of T-HEAD aclint timer which has clint timer layout. Although the timer has the clint layout, it should follow the aclint spec and uses the separated mtime and mtimecmp regs. So a ABI change is needed to make the timer fit the aclint spec. To make T-HEAD 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://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 Tue Nov 14 00:45:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 164691 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1568386vqg; Mon, 13 Nov 2023 16:45:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKPd+vd70iglqI5aRL3BY8IJ7aISmyef486F16vzE0RI+fz/u56by82otr8UddSoZf+Ctw X-Received: by 2002:a17:90b:3a8d:b0:27c:ecec:8854 with SMTP id om13-20020a17090b3a8d00b0027cecec8854mr1701917pjb.7.1699922733943; Mon, 13 Nov 2023 16:45:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699922733; cv=pass; d=google.com; s=arc-20160816; b=DvvsOLOILusQXo2ohdodZoEjxN5Hzf+5aS/33GZf9uVXvTmgqaJYKGKFwkskD3uzT3 HHyRXMAt6LJjZXpz4HK9EvoT63+rbxbFDEC8r92Hj2bTtM8n1pc34mwnF8+vn4pXinMY KgIKikmZI04N1QdP1Q8Vg0Kur+UzvlWdD2g1RkeLCn+pQWJvQ2gG0Vx07UkbkifPF5BQ U3Ho14104XcpHcKVdXIO3XnkxlNMOPyrNLjD/1I+ttBd+s48L8rDDBcaBnZdNjXTUlQn /xYbUclmI8pTwtWHEg9jC6LSSKAIEM71RHTNCVA6fQ1+Oq5QhdvsnNV0kyJ5N9Nk8Uzi tLyQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W3p2gWsaGfy+eN0wYhaYS9pM5sfYQbyopz4lxiaPD+I=; fh=f3gHul6nTUfPujWWz73g3/ni92mF1DDxcMZ8TJ+8KUk=; b=dDAFPLgqsJbpYeLMRw7VBaxJk8pGcayRfFSYI3dfOlOpfO9jYxn2nCVYXINvpc11RX 5XYuGeXB0B1J/MX9CAo1atPyDwX7t6/7Ql2jKWe/bsFOVp0/S/xlWo/KnT+4LenHmPAA ywVOP2J77vbpJZMqiMi7rk02G3xJwJPckk9mh2rb0KDQhR4JYOXL+L0LVSrUGGiZhfNO HaQXEBMY/oWEZpgVh51krdVdym5hzpcjOyt80jrQ/f7th1OjCgA1/xu7YvGS2MP+LKQC DAutYdPog0NiopelvubmvQ8Cexg3Khds3lSCzLATotj6Pd0IVXFmS1pjnBEBuclylKf5 HfLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=l5RkHVAO; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y8-20020a17090a2b4800b0027d2c3f25a7si6720140pjc.80.2023.11.13.16.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 16:45:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=l5RkHVAO; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 08618807BED5; Mon, 13 Nov 2023 16:45:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbjKNAo5 (ORCPT + 30 others); Mon, 13 Nov 2023 19:44:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbjKNAo4 (ORCPT ); Mon, 13 Nov 2023 19:44:56 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2085.outbound.protection.outlook.com [40.92.41.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E444FD57; Mon, 13 Nov 2023 16:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HEuGDaUM4PDxJd1VNdJ3lULZYZdbgspu95Sat3cfjlPspN8CG1udP2v45qOh8pXbjxL9GHxeQA7yc2jr+pIJphD/yXmA6xAYgjNQ8gHV5Q+YbQcUSmf5hwb5wZiQ+60aEjdEFr2djJtni3aAMvV4/4aat7/L8hFjcZGqBYIf/tqKvOJWTZNepzYMQyYCzjaMcJVTi8j6yE3jG5dDr5HEMR0WNxzb2gZgvgBvXW+SDq8FUoZVz1UUFbaZi3ueTX3pIKY4INSU466JiUJ+mYMT6uEUPgGfK/ScuU0akBGUjdJ8Und58vIF6UpAeNn/15HYT1vVmDp+u6i08Az2oyxlHw== 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=Eh69fzCRB8GyNei/JtW2hZSUt9/e1xIygXRXhm44bqUnl1H8eP0Fmzm71lChJ+0KcdJD4BaegOdU9/jSCRvvm3XaARsOV5PV3sfiEddEY++NgOhwE51jalp6Rq/rRv0fjPDMHRV36VyLMNPXdYnOxPMMkyIaXU8p0fVRJxsu7hVYPd9xOQPYuyI6YKIuS+hfHpiqXxrinE2n1W4++/isSN/v9zeSk+H2zDwxfgi0wqIwoEObZSNzMbBhY8JyxBKIFMu/qOGdLKFImSRDEa5c5ZFbya6QadopZHxl5mBDcRdo5Oqk7rdW2waWMUvGUHLlqnNuGphHwz5Wg8gGKP9dNA== 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=l5RkHVAO38g8Lu9M7h/LBsYK5AOFCifBHvUW6oNLvNiUSUSdV4N59LdDiL0QAlFkRRQLxJeRP+SamIR/5M4WVJv+MkiZ1rb7CmKYWrrX0Ks1rSFo7lYkoosUFBOee41ZTOVoR/o+EykdUNC1VPbzILH/C5GmS1swZv9pNO4xM3IdyOTiEgtRQUxVXZqj2hw2UIo1a8zIrhQ6t0ZNQnvotry6BEQKkhs0Pgo7cTkX0kJGsaBKzTloilukT+U56gbDblmgfI6paUlJB90M0jtU8I88yPtGRmKdaV115KAjExACFVcP2zi6pZ2+usg8TV34tH4JldebWiZeCIBK44P08g== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DM6PR20MB3492.namprd20.prod.outlook.com (2603:10b6:5:2a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.29; Tue, 14 Nov 2023 00:44:51 +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.6977.029; Tue, 14 Nov 2023 00:44:51 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto , Xiaoguang Xing Cc: Guo Ren , Jisheng Zhang , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format Date: Tue, 14 Nov 2023 08:45:32 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: X-TMN: [s1u8kyEb7LUZGOEBX/k+s+0hJ1OmD+0zX/swTeX/NvY=] X-ClientProxiedBy: TYBP286CA0019.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::31) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231114004534.43833-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DM6PR20MB3492:EE_ X-MS-Office365-Filtering-Correlation-Id: 38a5bd1d-79ee-4285-c022-08dbe4aae927 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ibnJdM95xVjXXLUTasErrmQrkX03kne5f95f0j+oRSxa8XPe4KCsxN+/6keJYmhE6LMm7cZx6FHXwBbD19FBJ5KouAQBZC9i+RvyjKp1STypcproyaND1w3PTIsQrtuzzlMPRwXrw7iJQrJLV6mg1viUcSanwDg/2RqHLPcsgrW/hvmEFovWBqwGXoMlP0uS3DKSu3DZdryGaWRRer7epecQhakgC2YzhXM7KNg7ADPQr3aGSfkox9L9rx+dFBzDLVFcCX8hbAlQ8QRRK70ibEt+dg2yP+VZJV2+W7pH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frhp8osR6o19rShy6yZ4G/xPhu7FXjtcbXXUtX0qLuYqjho0cuSV3pCs1hewfiv/aBiQbigwi+x5G8LT17kXH2LvWYGhN0c5FZpKaD3cHa4EWaiO/GRbEpwAJiPUcpQey2UCiYmHy9mri+C+k5rXLMDbyMp6yxkr9XX7AkvDJltCLGR2rt5uiY3BGrkCY5bHw52RRBfXrQrEG+p9NJdu2OX0P9XmZ5KWpueS9NY2tCsk42C3akPCrjYeaufCP8OLLf8xloNgTtNImTegKHd/yAf7K4v7zM1/4Pq+aiVc3Le/VYaX1dgNecycBXIHDM+XCKmdlWgF6tW6KmvgoUlGILuL+RKRjmidl6NANQFYc4XTnRhLJOiUQjp1qGlBuhJYfPTZ34/rNCuzlMF/3HkX7EB14FQtpGWcyRcauemxrGyKGEyg43vOSMwRavk/vb4x4qKMfodky7PHzAoSS68W1oqfDqoy7jqe1N/JFjxVY286qNlULMmWHZfyk7ACvjmwiN05H+CsmrFVSUcV7AoIK9QM3/gYA2teZEbh03q/vPW6soWJDPcBh8x083cmQaLJ7N1s= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38a5bd1d-79ee-4285-c022-08dbe4aae927 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 00:44:51.3715 (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: DM6PR20MB3492 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 13 Nov 2023 16:45:14 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782498180311397783 X-GMAIL-MSGID: 1782498180311397783 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>,