Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2818379rdb; Mon, 4 Dec 2023 08:18:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbunh1WkIWorwSsk3SPWuUFEXMWR49O/Xj9L31kJ/DyHs9u+flR8hyKfRKuhdPtmFL7nir X-Received: by 2002:a05:6358:419f:b0:16b:c467:695f with SMTP id w31-20020a056358419f00b0016bc467695fmr2024882rwc.9.1701706714218; Mon, 04 Dec 2023 08:18:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701706714; cv=none; d=google.com; s=arc-20160816; b=fpdBnbYjOUdxuC65XGiNeJVdsYajraEsK99n2WJl1Xou6oRyWhZiw9rOHaTuFtoHWL Lz/0+a9vDWWg6vLvFEGfmmTaPvLVz9N0hzejBPchXhyrCNpgnFaI3ur+KLljYw30n6hd G8oaTj7rHeo4hu7iRWEGTXNa6W+df7ONlEtIVzAo1QJDQlVPuZRpRj0Zz0ZZ5L588P7E jhDmITjnrbsAT890v+Onqf+A7BQAIGgmiyoJBs2/ov/CNxWWQmJlngn79ZsbuukANnF6 3H/yww/Lb1mCGx5b/mHrDb6LtBIB8prLVfil+etXOB+I4CjoCaTJvE0qEvzbdxLlv+kI siCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yDzvwMVlTobByjnSGQyneCW0HtTxC52ddIxe9fPN3os=; fh=xUJVR1FUpDq+Nd6xsIOS0UdruG1jkXrhGHKnnvKJapw=; b=Xb5B3yJG2+NgplWlXUoAP2xugPZunTuR9Fu48EUEhEDuqkuhz7DGAM3KDHM1sm9Lce rhiE2yl8Mgm7wFG4hPt2XRu7GbabUf70C6WjZr0MHMsxHxH4+ezMYL9f9Iq/4biXA9CJ INVHDkY0Zqp2nnONxVHzMXfZwuAOkWcDA+tDrGnnAqjQFqJIRt738+wVI4wC7kBBA9oT 3c+ipD8lR2k3dzRUkMCVGebVGdRge/3a4fWJvoeA1aods3MQ+JSQ6UMRPyh9uVVAad79 JJOwSRI4hscSpLW0YrLrQ+e3b+K3deSSy+DHsFvC56duYkX0LOQHGB0N8yCtFvV4y5hi Lx2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VVhD/UgO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a23-20020a63e417000000b005b96c2ab110si8091620pgi.131.2023.12.04.08.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:18:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VVhD/UgO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 79FDD80990D8; Mon, 4 Dec 2023 08:18:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234807AbjLDQSP (ORCPT + 99 others); Mon, 4 Dec 2023 11:18:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234647AbjLDQSN (ORCPT ); Mon, 4 Dec 2023 11:18:13 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E8DFAC for ; Mon, 4 Dec 2023 08:18:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 973F5C433C7; Mon, 4 Dec 2023 16:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701706698; bh=yDzvwMVlTobByjnSGQyneCW0HtTxC52ddIxe9fPN3os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VVhD/UgOk1VH4nMhaGXfD+m1K9OZ5rYZIk/4Fnx8Zai+cX+Z64vYDI4IF5wcKSh/D 5a+Y6PJmU/ZdqYtRoPiBgMb9JGDHucFAw8CE/0gZNt52NJGeYnd95Lh6VnJKhtdAZJ lp3EQhooN/WZKn1+TJwikNDjcNKnmzp/fRF8LaWg+NLHtlUuvyKifnu4c0jlT26m2M UI2tylugntqs7ftIW2ItBr4i+4wBX+gDSGIBn47eDW934px7h8FI2GvF0wPpfJmZmP tvpLOjlMidIQuvbUEo5Kb+TkLZbFwGcoXZpGM4wLutiougqtkIeilJAb1wAI3hO46B yHYQ81+c+mZyg== Date: Mon, 4 Dec 2023 16:18:13 +0000 From: Conor Dooley To: Inochi Amaoto Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang , Anup Patel , Samuel Holland , Guo Ren , Jisheng Zhang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v5 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Message-ID: <20231204-germproof-venue-6874ad902323@spud> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r7TrBvfH2EyTxEDe" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 08:18:31 -0800 (PST) --r7TrBvfH2EyTxEDe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 04, 2023 at 05:51:08PM +0800, Inochi Amaoto wrote: > 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. >=20 > 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. >=20 > 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. >=20 > Also, as T-HEAD aclint only supports mtimecmp, it is unnecessary to > implement the whole aclint spec. To make this binding T-HEAD specific, > only add reg-name for existed register. For details, see the discussion > in the last link. >=20 > 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.h= tml > Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc > Link: https://lore.kernel.org/all/IA1PR20MB4953F9D77FFC76A9D236922DBBB6A@= IA1PR20MB4953.namprd20.prod.outlook.com/ Acked-by: Conor Dooley Although, I figure it is going to be me that ends up taking it. Cheers, Conor. --r7TrBvfH2EyTxEDe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZW37xQAKCRB4tDGHoIJi 0k7+AQCD3i9MlUls5AeaNYbwXSKbbrJ8nrMswlOtYuKpALuxgwD/c5t5zE8FQyWQ gFvWp6AcxMmNv+4b61lJDPWZ+Mrm+Qc= =VXzQ -----END PGP SIGNATURE----- --r7TrBvfH2EyTxEDe--