From patchwork Mon Nov 13 02:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 16492 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp959599vqg; Sun, 12 Nov 2023 18:22:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqQqa4TbKLau/eTUZes0TzXH94odF9787UU9qzjia0lDBHym+8NzLcL7hOC8CAobu+Vm6E X-Received: by 2002:a17:902:f688:b0:1c6:362:3553 with SMTP id l8-20020a170902f68800b001c603623553mr7670429plg.31.1699842136711; Sun, 12 Nov 2023 18:22:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699842136; cv=pass; d=google.com; s=arc-20160816; b=yKwh0lGzPIz0EtUJi+mD4FBe9NLjusHeXyqhddXGYoIG1K8PctwEHiLMRGzIVVM0O1 XM92RBBPAFZWUzcTdzgz8zbmDgLfcM0nMwpmuEg6AvyYAu3wWV+c2QzwFrAvR/VV6bTh 9j0Af594rinJpxMeQ/hZLnC7n259dPYWCEkAfXG9M4S75RGmCSHWUtIgVm7qB7JoW8XQ eLsoK7lZ3YnX5MVPbDzAy6oUyoB3+OCIXYb59ckGyW/vMOI7zRP2+jqwyurNeeF3iQvt BWpvO20PArEkpASy/hX9dofbj2miJWXkaoeeDjexXiVywKAqDUB1xRRlbWteYmUhCnOY X5mw== 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=qQMWpymeoTpuaMalh1DVoOuuEFVWgQql0iJzlOGxR4E=; fh=Eqd8tWPq0W0aormDSNDuulJ2cxAc19N5zMp+ZeCzA8w=; b=LCmyoz6TfGBLTp1yDaTfhloxMab89ug1KfqCnmLaHH1fqNU35WYke3ioum/37v7af0 r8joYaM9iGtJndL+wnbnZACctFMQ99cuKKg408qCvTsTXtI9mPNz/Z5gbIMQfhCzbwwF HecPZ+5ma/EvxwjLkq7oseS2AUWy9oEow1BD++QuIhXnjSMBgVupqA0vmbwc8rhunex6 Vur5yxt0FfiRaeMamYY2BTpKgSyCEnmS9lp7t5YkeVrq4JEvp/fuHFdMSgh0J/jtIWeF whsEALwYNFPE9XIY5mg/7VXaKOjtHgddgAMhBMhZsY1HdebqKGdlO4GCRJ8xcMxHPlxG u2nw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=g36lSVu1; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k5-20020a170902c40500b001c7345bc007si4946294plk.486.2023.11.12.18.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 18:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=g36lSVu1; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id D588A80A73FF; Sun, 12 Nov 2023 18:22:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232834AbjKMCWM (ORCPT + 30 others); Sun, 12 Nov 2023 21:22:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjKMCWL (ORCPT ); Sun, 12 Nov 2023 21:22:11 -0500 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02olkn2077.outbound.protection.outlook.com [40.92.15.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE15219A3; Sun, 12 Nov 2023 18:22:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SilCnvCQ8et+7ewDOGZJ73dUzNbIhkH8eaNwuXgseZqKqUdkretRccQCR0O0nXT11zEj1DTkjlf/uRuXy6K9ob8KcxUDg2NJEopZqBVcyzgV75gevSlbMuKLJj8VzIrymMH1efeVSRAAB11waNmbVCGkek3MT13MYGo2P7HztbvH7PoWvdsPDvnMOelqEkv8R4lthfOape+h/sAyfAcTTqPP0Qmx2dhcxfyht7PQqkpzvT0ym6FCjZtBdcVX9S9F8LEYM4xTvjPs+ihYubQ58Bc9zVGLAMZA2lgDU2b0AsmO+f1QhO3qAUijh88kyZU5Czw/sq/Z3bouLllQ2Lar0g== 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=qQMWpymeoTpuaMalh1DVoOuuEFVWgQql0iJzlOGxR4E=; b=gjYcst6mdQcQ6fOHV3Oo3nkKCqQpdJW4zvYyxI/Y08DVTwHDchB612+fht0hbm1MDLgcZveLkDzml2y3wWM7O/XEbSyys9xYcs0owB3nApmRCIvLV6LnWMhHr/UEv7PjwEAACl0k9ttDyy+8ARe1rhTElRdYgcFIZF3PmQ0ajb43VWU5+2eHxre7ArZOrvpGHl8uUYlYJQzAzpfrzbF6tQIuMU6gNlVPItdvRhASEdSrRAIuYH9tgJNeVYSCtKdwp7NroS8cPxGjFodPwJmfqoe5SlQN5CpmrjzH9zqXmwWDmDIXJS0uGqVtDFt2d/qlXnJk2347W1hVg/sMdfpe2A== 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=qQMWpymeoTpuaMalh1DVoOuuEFVWgQql0iJzlOGxR4E=; b=g36lSVu1ysTuGf0D4+0ZpAySu0UQAxUnNsI5JXLnKopFNhTkJ8L4IyP6wupY7mleFFGpRwEOW1GvD0VTxk0JvKbV7bDGVYTfFMtn8feTYpalgWfgXXnY6l+uWpVWTh1jYYC0kSsNEImM707gOjJ5C2n05ccmzuk0NHdSiOrt7KxfXlaszqc2XcJeNhoFO4RGrIposvje3R+7L0r5sv8DKsoCHlg6Id7jcTkVinq0xDqbVlQonVSTKhr5mqw8v0tE0BnNq75QndkF7zzfeY0vsdOB8lFFa82jwTk6TYCLH6l1zDwKLk2V5dug77nBAzv/tq3n4rlhUHX1E+TYcnSjcA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SJ0PR20MB4533.namprd20.prod.outlook.com (2603:10b6:a03:3ec::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.28; Mon, 13 Nov 2023 02:22:04 +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:22:04 +0000 From: Inochi Amaoto To: Guo Ren , Jisheng Zhang , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chao Wei , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 0/2] Change the sg2042 timer layout to fit aclint format Date: Mon, 13 Nov 2023 10:22:36 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 X-TMN: [tD0OtFIvJ4wZ/yk8YKvmWx02inennZONpGrb9so1Lpk=] X-ClientProxiedBy: TYCP301CA0055.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:384::6) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231113022236.35992-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SJ0PR20MB4533:EE_ X-MS-Office365-Filtering-Correlation-Id: 01adb556-87f2-4fff-dd09-08dbe3ef5376 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vNqHbGWbq+JgB+ukfxv28Z+dAeKNwon5Zu4Cl362zjSfhfbX2ozYhoG/UqeRG3/c2h8tj1p3507sCKPBSomUL9gFBeI+n6GLkDSlXkTLZ9y8LK1ux9abAl33M/53ktC4+mbEkPriPIH+mmDhXn2IxBiP0Bo/+OzNB6nrUQXfRQX0GjNSLSF1wt3tAWNRgjbDPzrCd7AMhKgWFL89x9X4gltyQGYY5Pj6f9gkeBl7SQssQB2hNeGMarfbwdQUHqzeufKy56yJtYAtR97ZsfeJWAqr/7ppEbIW8UkMxSX/LAp97tEU+AoDJCWDErZeP5lGNC7zirD10hUg2QDxT7f7dClxJVfqGumRV0m1Z81iej0UKOKWIqDupa4oPHU60I4cEkKlUn2c5Hbn8thBZdIDvi1dXciooXDg6YqiQTBf9c/XI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WOI4hEs9jbULgrnfSlNoQI6CBeEa3hjB3bt31ik6BUfEmDZHDUjMbLHQzR26fYuUfLyDopJqCG0mYnfH0rkLuFYSIkuODc1RmOb66aOd/U8jBFiVy6TeDTwoyiOBNpWb1k3f7tX5iEyJ4cNNynz7uLCPoMAGwsQH/59zfhRRYfJtMJVGDQ4nnbIxJOpR76W92neAUHdwcmk2Q/vHcyW3uHo2e+Dv/IVeoCZMWhlgboyQcVqACdSts4uPfa51fQ6zd9HYHFig3wFurIm0x5UZ89A9i1RfAEfmaam7eaFU4hQRqtMR9B3WOfenggyzrksziljT6nn3475Hus4fejXB9n+q8n94b1WtWTw4+LEuCQgG85+x613on+iNKpFGLTKSVc1lFjcyw4iOsmOOyoQjwrmqYidVo0qvm9qjQaDMkdjVMM5Ab2jpoYwYLQA5UdOxcgk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01adb556-87f2-4fff-dd09-08dbe3ef5376 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:22:04.6836 (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: SJ0PR20MB4533 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 12 Nov 2023 18:22:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782413668727041170 X-GMAIL-MSGID: 1782413668727041170 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://lists.infradead.org/pipermail/opensbi/2023-October/005738.html Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc 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 | 5 +- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 80 +++++++++++-------- 2 files changed, 51 insertions(+), 34 deletions(-) --- 2.42.1