Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp717741rwb; Wed, 7 Dec 2022 04:18:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DiYWG7DxFB3/USgXWaOAvm/pHFYdxr8AwKAa+DHjNQAr1CINBJUU8ajfSlMzB8+c3F2kG X-Received: by 2002:a50:9fc3:0:b0:46c:3a7c:9ee7 with SMTP id c61-20020a509fc3000000b0046c3a7c9ee7mr19025837edf.208.1670415527739; Wed, 07 Dec 2022 04:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670415527; cv=none; d=google.com; s=arc-20160816; b=ksM2I2yKeih80prAcQ/M3ZsNQMLiMy0rqhztJNP6UWS436XQJk3zDFLDET6KCdhDLv GhRdvAaQcABEmPDRIMw8/XO7ClIzWhdp6yqSAt97fFiXXykOyjuytV3bv71XSIIqzISe Y0n+BADNCjLcb3NwFJsvqn3E+kHG3eNJM9JdUuxt6BF/sb9LlD5fH3jmAT04s0pab/Jl OmlRqDo77IdubXgcECmCHLc8NgpWojMpbgQvHln7YJ8ftVbw8G5KkeYvkSxujfq/OkP9 aSu94NsIc1uAXhr5RamSwolsIM5sM5sbGTtQREYOyNhj/F4Cit16xsWaTvCGcUkNUa9x Dodw== 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=3iUZUuHkcIvwtOgND+IUFfeLoZ05Y/NDVmrMzsGnk6k=; b=i3DrStKtw53gHXC4jiKaYtkoJh+QaejKcC0+Ts8FelqpaVwT4hdGmNuTrbhpe/4HL7 ob3pklC4UwQwjU86xn8y01jR0SpKI2Z/7hv2+LSmYsx/HPxKLmhLz9WGrkaNBncmY+f4 cNrgfkBd44IVHCaKhutmz5ITQSySGvOKYyA5GhrCZcqCngYBkNH0X5jKmsJk96y8XmMq Uu+n70jnPkn0lvR8FnMU7xKYWcZ64DIUB8VOjZuNA/IMK8LR3osL/IaFsCtkxJYia/NZ MctK1/dtcEo1tPQZzBJmYn+tB8J9Ts6sc1zt053tm12iIAhFMBDwN3n6ogiTUnDWGmnr miSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ceUfHsLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090658c600b007b790c183d4si18150393ejs.556.2022.12.07.04.18.27; Wed, 07 Dec 2022 04:18:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ceUfHsLw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbiLGLd1 (ORCPT + 76 others); Wed, 7 Dec 2022 06:33:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbiLGLdX (ORCPT ); Wed, 7 Dec 2022 06:33:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 533CC1A238; Wed, 7 Dec 2022 03:33:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E8BBCB81D75; Wed, 7 Dec 2022 11:33:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 258F9C433D7; Wed, 7 Dec 2022 11:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670412799; bh=3iUZUuHkcIvwtOgND+IUFfeLoZ05Y/NDVmrMzsGnk6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ceUfHsLwXidT2LV0zG8VgVjdgYF4UGdMFkvTuXrhlY0aeDko6+bV9FLQBG8LWBLy7 cmg2RaLjmQ/rvewb1fYfc4F7hRB5ToX7sXDEWyKnn2eYkOur76Pp0rgzAPQK2Txa1h aXKDsv+IGMQV/A2xrTcSbl/i6tmss4V9t6Zruzww/xfcXpNHlEpZ96jZbgdtFi0IPm oAfZqyTIwGcQ0DovBu3IHwpp0ZQ09nOv+/9iLL+XN6KX8K8o8VMeyCZ54b4ElXDa9Y E/W6HpQ/Bj1jxdDIbPOC5KRwwXqsJMeljL8jmgHI9DhNquqvbdMAeSXG0pPxI5KyLD GbpYPCdOWr4Rw== Date: Wed, 7 Dec 2022 11:33:14 +0000 From: Conor Dooley To: Icenowy Zheng Cc: Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Jisheng Zhang , Samuel Holland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 1/3] dt-bindings: timer: sifive,clint: add comaptibles for T-Head's C9xx Message-ID: References: <20221121041757.418645-1-uwu@icenowy.me> <20221121041757.418645-2-uwu@icenowy.me> <34fe4161718e395f5e9890f9358a25f697af9e24.camel@icenowy.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JWqOn8OBCdKsE8RV" Content-Disposition: inline In-Reply-To: <34fe4161718e395f5e9890f9358a25f697af9e24.camel@icenowy.me> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --JWqOn8OBCdKsE8RV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2022 at 06:47:26PM +0800, Icenowy Zheng wrote: > =E5=9C=A8 2022-11-21=E6=98=9F=E6=9C=9F=E4=B8=80=E7=9A=84 12:17 +0800=EF= =BC=8CIcenowy Zheng=E5=86=99=E9=81=93=EF=BC=9A > > T-Head C906/C910 CLINT is not compliant to SiFive ones (and even not > > compliant to the newcoming ACLINT spec) because of lack of mtime > > register. > >=20 > > Add a compatible string formatted like the C9xx-specific PLIC > > compatible, and do not allow a SiFive one as fallback because they're > > not really compliant. > >=20 > > Signed-off-by: Icenowy Zheng >=20 > Hi, could this patch be picked ASAP? Becuase it will be used then in > further OpenSBI patches to enable proper operation of T-Head timer. >=20 > I know the following 2 patches are in doubt and further rework for them > are needed. Since it's me that's asking the questions about the other patches, but have no comments about this particular one: Acked-by: Conor Dooley HTH Icenowy! > > --- > > =C2=A0Documentation/devicetree/bindings/timer/sifive,clint.yaml | 8 > > ++++++++ > > =C2=A01 file changed, 8 insertions(+) > >=20 > > diff --git > > a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > index bbad24165837..aada6957216c 100644 > > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > @@ -20,6 +20,10 @@ description: > > =C2=A0=C2=A0 property of "/cpus" DT node. The "timebase-frequency" DT p= roperty > > is > > =C2=A0=C2=A0 described in Documentation/devicetree/bindings/riscv/cpus.= yaml > > =C2=A0 > > +=C2=A0 T-Head C906/C910 CPU cores include an implementation of CLINT t= oo, > > however > > +=C2=A0 their implementation lacks a memory-mapped MTIME register, thus > > not > > +=C2=A0 compatible with SiFive ones. > > + > > =C2=A0properties: > > =C2=A0=C2=A0 compatible: > > =C2=A0=C2=A0=C2=A0=C2=A0 oneOf: > > @@ -29,6 +33,10 @@ properties: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 - starfive,jh7100-clint > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 - canaan,k210-clint > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: s= ifive,clint0 > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - items: > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - enum: > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 - allwinner,sun20i-d1-clint > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: thead,= c900-clint > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - items: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: s= ifive,clint0 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: r= iscv,clint0 >=20 >=20 --JWqOn8OBCdKsE8RV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY5B59wAKCRB4tDGHoIJi 0l5EAP0d8+bmSdQwOL1zh+4ekUZkbwUid4O2E8SRuJ//7ZbjjAD/cbWLeF0c/mVr WKzBDTFx9jlc7gXrewlZxdymFvnXZwQ= =5Qqt -----END PGP SIGNATURE----- --JWqOn8OBCdKsE8RV--