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: 13453540 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 16DFFC4332F for ; Mon, 13 Nov 2023 02:22:27 +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: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:In-Reply-To:References: List-Owner; bh=WVcrNafMavk+9w9JyqjdLwOHTm8qp/JuumLcF6ylWa0=; b=A45EVweBpaVCZ1 DWP2VOcH7BgHbCEKTsYaclawD1jYjkWyYzM8H7adyfmzrJ0EyJ7lpmlhb7WweqlxW4cRB1rxc4EcV Bu2kcrbBmrGhvxb7HDNX59nQjua2YjRxONkntvITSks1e24AzXTcf3JutpgNIFD8MbrcWLHcgrhh1 fgIn7nmlWk7sNH7E2iubMnvrGIijXNDD3bhbCA848hALzYiAdYN/4gnDYMBe8tuzbQPtgk9NJWEYL 1M4KPFtbuQnwzOGunBWy5xkhs1CvnBEXMRf/W9hXa3lIHwlZRRf7z9YzoFWSv/KMFuhrL//wU9o6O t/B/Dmd5pPM3XXR+Mqlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2Maf-00D3ci-1t; Mon, 13 Nov 2023 02:22:17 +0000 Received: from mail-dm3nam02olkn20803.outbound.protection.outlook.com ([2a01:111:f400:7e83::803] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2Mad-00D3bW-0a for linux-riscv@lists.infradead.org; Mon, 13 Nov 2023 02:22:16 +0000 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/XI1GCUhW1R37Ha5bkangQayqKTmAM3Oh+DvSWyLUx16Vox+F1RGcwX+DNwxb5ks88z3pVE0zJIs1yDUNc4p8Dfz2MVbsXb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1RmOb66aOd/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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231112_182215_222427_117EEFB2 X-CRM114-Status: UNSURE ( 6.65 ) 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 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