From nobody Tue Dec 30 11:25:06 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E055C072A2 for ; Fri, 17 Nov 2023 05:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345666AbjKQFHS (ORCPT ); Fri, 17 Nov 2023 00:07:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbjKQFHQ (ORCPT ); Fri, 17 Nov 2023 00:07:16 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2077.outbound.protection.outlook.com [40.92.18.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C194F1A1; Thu, 16 Nov 2023 21:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U6yPF12qnAAecX1IcPh273//ayW0mHU/DrtWZ53JFUgqpqcVsfpgbKRmSC2ed+6fwIxiPklCL+FzJqKI1GbYMJbTMyrfUHioqtnxM/mroYLrEsawRTf+mvaBu+rd5sF+Kqg1ZLvOHtA8jRk/uvBAylqUKaSxbcItX7jH8CvIlzCWJuJJdqpdT/9tB6ySr6X2pv+iWI/CoxgX/Qtl51p0YuM6AL5amNR7XZKkyr3TosVtRmzeY1dUATV4q04qWTthRGex7RvtarY2KrhvxzCAZE7CLAlD/Bak843sIwjliLoDlokQBC3ToTATM82usQ4kqezETYOdksDxCTXokY/z0A== 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=RVVok41ntW4AZpNWiDwxqA7+HHoXTigliRoPhyWxEJg=; b=Y6hdiVUwVnMOr8Py4JNG4Xi52zu6BMCtmESTs858ExVNLi1Cr98kVeuhnyQAULppLtrRgViTg7Lb7sOLu62FbVQlrILedz2D9V/IbW8iokvM06wOcjE3PoEFIA5WMzx/hmFr74cnetdg4d9WVUzRvPORZJ+lg3rygfuMl1VWv2PnbSsplg1T1sHURVY87J4Mny0uo9v4Y2Vy/PhKwoM7MfOMmen7VRfmN1sjvWWd2+HkJMEcpif40d2s0z7WLEVDoRYOdBC6Zw2xAqFLDoEAK7yeh1t+DIbGWG4utgA7qYgeIMXZA3N2b1UtnO1nK7gtff8g+bYNsmurFKYLq3+T3A== 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=RVVok41ntW4AZpNWiDwxqA7+HHoXTigliRoPhyWxEJg=; b=IG/LxlAZzp0okLaq9TlF6ysz2BcRoWfFyAPaA1cKSPOXQhhz4j0YkCPfwvUiWMpnfRUh5GxfR8n63VJNdZGQYUcDII0SUvskjAMUiJmkW/eZWMPEUJKhFqeAh3S9eF5QX5Rk5f0gd73DqanwMUSoIKq3nFqIPxpnndwWIsc1KrkjeX16R38RrptQ7+0k0RPXUwDfnkcAOwqll+iq1hD0Lgi4QUxiLhYZpY/Y+kWY85IB/xB0lG0TgODvTrvRgpMAvmfFuJ+hbIeHMaKIFFYQfhPWIYmlo341Msszca7sBRVnk7Y8wTR9oidfEDYm1gxBiU1tM3o42qHdo+gYATv+Ew== 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:07:10 +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:07:10 +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 v3 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Date: Fri, 17 Nov 2023 13:07:51 +0800 Message-ID: X-Mailer: git-send-email 2.42.1 In-Reply-To: References: Content-Transfer-Encoding: quoted-printable X-TMN: [CtkaZVH3sgQA6kp0ljxE9g1cmBANVTPY2+exiuNkXRg=] X-ClientProxiedBy: TYWPR01CA0005.jpnprd01.prod.outlook.com (2603:1096:400:a9::10) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231117050753.870596-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: 391c29d7-642f-495e-27e7-08dbe72b0d58 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cauMbzfeIX0Gxr19si52vklWp0FTiSsVwCEBpavYZzXf8crCBWtkVYlDsRHzxkraO2uJq2JIMQfz3DpiY+vcPinSryq3E1Cuf8sQ2llfrjsAh4jQ48u3cdsF3tiQplUXEbVVM/JTbC534A9oFbDbrMLE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g5kz60U?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 391c29d7-642f-495e-27e7-08dbe72b0d58 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:07:09.9184 (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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 introduced a new type of T-HEAD aclint timer which has clint timer layout. Although it has the clint timer 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 regs-names to represent the mtimecmp register, which can avoid hack for unsupport mtime register of T-HEAD aclint timer. 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 --- .../bindings/timer/thead,c900-aclint-mtimer.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtim= er.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.= yaml index fbd235650e52..2e92bcdeb423 100644 --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml @@ -17,7 +17,12 @@ properties: - const: thead,c900-aclint-mtimer reg: - maxItems: 1 + items: + - description: MTIMECMP Registers + + reg-names: + items: + - const: mtimecmp interrupts-extended: minItems: 1 @@ -28,6 +33,7 @@ additionalProperties: false required: - compatible - reg + - reg-names - interrupts-extended examples: @@ -39,5 +45,6 @@ examples: <&cpu3intc 7>, <&cpu4intc 7>; reg =3D <0xac000000 0x00010000>; + reg-names =3D "mtimecmp"; }; ... -- 2.42.1