From patchwork Fri Nov 17 05:06:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 16677 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp305697vqn; Thu, 16 Nov 2023 21:06:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGj80v5CvYoDY0IaaaxYkEheKzssx2fW/unnGMmY/A6YjfLRNhSkFFGrYdEABP8VV4cXFBx X-Received: by 2002:a17:90b:17c9:b0:280:2438:11e with SMTP id me9-20020a17090b17c900b002802438011emr17953407pjb.39.1700197596389; Thu, 16 Nov 2023 21:06:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700197596; cv=pass; d=google.com; s=arc-20160816; b=PaNwHfJJaQawIpAf3l4VtaX9XVVhIt1srD4BxT1+ICGxBEXvrLsV/HYximCnvfpZUG p4k4uI7DOQRx3J91KDqGMvcZyDbq2DMGt9ZlSDuS2NRkKdPcBwCzqk+xOkizpaO1iKAK yrmlmwYtuoqespo244vooVze3V+LP+dbl79l4BbpR3khWIperrsSH7epCnH1ucrcxYNS xaYQkDjybin4JGUBDCz8EfSBYmvNwwbdSfIa3OPAAN4/FJ3igIjMGs4s79ALXbpuw1xw 17LgA5lQb4/EJNuiPg2utcwe1PCW76mN+5gII1Cu7VnZXBMLx24QNggZeVsDgji926NQ Kygw== 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=aZDvxod+fhJDS1Wb5bFQaLyIiD2jnNhJyD53lHp+x9c=; fh=ilqeAQzdxiILDApoFUx+JPlMY0bF9KfYzLQOTfGKsLw=; b=l4VhicEO2H++LRpVwPYnDJyOTZa1rdGClQjdO6n9qnEiQeAxqh/Jpo61WBXXAITSlA mTvMcLZQSnTMOtqsp5sUV3CLygqERi99aujKXnNs6kQG1Ss44ZUWDg1xNqV/MqIoJrEb LMPIV/n+BKtsaDxBoZyA3oVm/ooTiLQdKohKVM5+mg90fev0VtRUMpHEqAkCV2pRH9E1 k0BUkB3r/llN7DRZPoRz75tdyefGQgTPkTq9dCedE7SWWPb4aMP1jjw/KUjH+OC9g4nA S9wNDOKJspt4JJJ9F7mhsXwxNdJKGxac7Ol93WdbWglEusFbyC1SIncAnBL6l+2ThTiJ 2TrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="S3/KUG3q"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b15-20020a170902d50f00b001c6189eaadesi1106570plg.132.2023.11.16.21.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 21:06:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="S3/KUG3q"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B6B8781CA64F; Thu, 16 Nov 2023 21:06:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbjKQFGQ (ORCPT + 30 others); Fri, 17 Nov 2023 00:06:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbjKQFGO (ORCPT ); Fri, 17 Nov 2023 00:06:14 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2083.outbound.protection.outlook.com [40.92.18.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A1DBD4A; Thu, 16 Nov 2023 21:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h4U8TyqBpgFcgQk6UuX077eUgvhUJQj8UDRccApgF2cO/vWYqWp5CyVG8ZYiyDhO7PJJ6Pp+UFbPf2kgXJLWoLU409jgu/rkR4XTlRbNlmOxf9Gzb6qPOF1iSr2r2saRlili3DW6FbZ+6fy0b0npZew1RGDSqAnJqU4m6f989JiVttviCLFv0UdXgfDqJPkvs50SzQt/ERhBvueJcRLERm5fOoEZ7kYZiaxBUMHlDxB+WR8QhVAcW77/G9cbwQ8q484cjVK33nPX+VyStlH56PYGrfuonil8URG9nbEj3t+HEuiFAv5J1evq4BA1eoipPQLfb4KBmLT90DvKPeDaDw== 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=aZDvxod+fhJDS1Wb5bFQaLyIiD2jnNhJyD53lHp+x9c=; b=DU8FSqpCNvsCjrLvyCb2gUoCW53qeR84UhNdXOWtcchsVA0bOYJEPENVbeKPyXNryp6rAuCArZQHU7dQPqTyOG5m/KhKm4e4jZc+r8vLsQHB0QbklT7WXHCrkEEsRJPQvJDrY3Uj6Pw6vjFputbxlX/8l/GeETuIH4qSJAPL30RefgwaRxCnK8GsXwDIrtn5o5XzaS8lGMy3q48sgfl686nb6dakIUTzn/k7TCs0WWOb0mAsbXcMX9NfK3iVuflK1TtwkHP4aB44L7cvn4hIrCxzSDH/WuMaH8zWlF7mVbWwUyqYft/LAyN8YKTDppqXyYl40u9aZxLz9h1qDBaJuA== 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=aZDvxod+fhJDS1Wb5bFQaLyIiD2jnNhJyD53lHp+x9c=; b=S3/KUG3q8frNH1U4BH0379ahY9t67kGeAOT3a1usYdf0EJoV9DYz80JRv6k6DQC+zkwuhz7pZOKOKQbi+bmMAQ/UhiiX+hC2VW9MfOman/QJ849QvQzteI7OXqw9QDMRGRxB8NTJ+wbYZcTxiJCm6kXtWfJ6SpePczmTRJWVfIoliDnrkEz6BZxLF2M9tNunBeadBKatFf/8Tcs6s65+d3ZjEH4UKmMEIQBayxahaVDopD5h3BZnPopgOWrQcnTp/B9jR7/jj/Vzku8gGSrFckMj/xh4Vd2Ql5akDUKp1R8oOLcC8SQpFfd4RqcBXqlJ1oO9M0d4YxygQk87alRSzQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH8PR20MB6394.namprd20.prod.outlook.com (2603:10b6:510:25e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.23; Fri, 17 Nov 2023 05:06:07 +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; Fri, 17 Nov 2023 05:06:07 +0000 From: Inochi Amaoto To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chao Wei , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto , Xiaoguang Xing Cc: Guo Ren , Jisheng Zhang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 0/2] Change the sg2042 timer layout to fit aclint format Date: Fri, 17 Nov 2023 13:06:50 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 X-TMN: [ivQZMpmxKAZTPS3xZ8to1qPI14fyfCm3XL3SPVlHbvo=] X-ClientProxiedBy: TYCP286CA0338.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::17) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231117050651.870372-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH8PR20MB6394:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b67e0d8-964e-4275-7287-08dbe72ae7f3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k3gLWTZRq2yw2WVWOxutNmKzJ8ffH69ATmj+p580+4RZFsyER4gUIZLJV9ZURzXcL5OIECp6yb1/oyqBM5zdfZng8Pre/lWi7nfCfQlsF4AKwtfZ6oU5eitR2/apSiocFmVOW5yvAnwkrNxJvScOi/7gWTLBVvgJW4cGCjxpGdLv3TwGu0aoZSk/lsJXNCaFvWExwIuIj9/RjP3Z605zTNLniPgbewTO7Wn02uG27ar/PJXmPpmzfV30BkSsrAIOEeeHQW4agTLuJmNXLphWmVK/gHxvb/GYSZ7c8tnzyGTMjwcNWYK3kI6s7fVI3AHRU+176vT71uU5isEO9pSKspcrT/wGSyr/EbXMqCN/gwXDBUUQZ68vVl33tNiZTON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1GKMhclG7AaFiLey2u6ROPaGc7duqr5XYFlgbT39NWgjwIYfjgeqKokCbxYXk+tCowQQlxLqTdgBHFaOXVyRhS0MdYXfvHAbSTMT74UOeZzz8qiP67s5aDvOSmCI62OvMiMr42vscjtERTE9+PU9FTMVs7hpUasC26RDiXUupHGs2L7EtA/tnJyAk6/9K5XI/0A62GhiRJJLA2wYc3Zif1BDSXMaC4qUu8Sxc9eHmZmfh/3FsdNQRKlYnrJe5cIQjTMf8RnYP3WIh9qQFSrKTXBMXiTnTo0BjatQqZZLoCT71S7+Z0x1cjIWeb5JdAz4HvROpPjoq5Z7UgxmSvD0yWooZiDrj1dg24cvmqw23qK4109OLqYpAWp+zaZS8kJUMG3x4N0jIfhVwTq7Gp1i33kjUUWqqB0W6B8mjZPoowtn3tfJZSeXB50rJnQywLPakL5fBgrN6KzcxrIWg1RWmhXwWO277GwGs55aRyBs8JGQUjJnrYp9RV5cyVpJSjnXcLxWiLpHyUfxm6QkyyH3Z5dAwwk3CcXKzxIxg= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b67e0d8-964e-4275-7287-08dbe72ae7f3 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2023 05:06:07.1465 (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: PH8PR20MB6394 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 21:06:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782786394919763778 X-GMAIL-MSGID: 1782786394919763778 As the sg2042 uses different address for timer and mswi of its clint device, it should follow the aclint format. For the previous patchs, it only use only one address for both mtime and mtimer, this is can not be parsed by OpenSBI. To resolve this, separate these two registers in the dtb. Link: https://lists.infradead.org/pipermail/opensbi/2023-October/005693.html Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc This patch can be tested with upstream SBI with the following patch: 1. https://lists.infradead.org/pipermail/opensbi/2023-November/005914.html Changed from v2: 1. Use reg-names to map the registers. Changed from v1: 1. change the commit to address the reason for ABI change. 2. remove unnecessary link in the commit. Inochi Amaoto (2): dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format .../timer/thead,c900-aclint-mtimer.yaml | 9 ++- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 80 +++++++++++-------- 2 files changed, 56 insertions(+), 33 deletions(-) --- 2.42.1