Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13136472rwb; Sat, 26 Nov 2022 23:58:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+z/Jo+qqiLuoAqt6nV1OHWW3vyK7dIUzHdO5JLpmOqWobfAL8TCvNTBO16y1GFYcfcECW X-Received: by 2002:a63:1a55:0:b0:477:4ba4:c278 with SMTP id a21-20020a631a55000000b004774ba4c278mr23476027pgm.482.1669535936121; Sat, 26 Nov 2022 23:58:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669535936; cv=pass; d=google.com; s=arc-20160816; b=bHaaKiFQmanF2azD+i4apSouktQQKnIgb3GGHqgBTqsvWbJiyxuSK/kqtOwM5C/lnL 7o16hZs87IAWM0ojqj3mfufTbc9oHYRIK8nBdm8bhrJYpQCHY2tBR6/T665DY/4TPU6u w0jRyQZUIrJ7ZvL9Tf0u6eJOvOMXM1SPKlb0Ra1GsjQVtw8VhdgQ/gWoSbMlUaCgQsTY NRJyeQLgei1n2Eb23WKr09SeFed6cY/bIKmT4soZ58rwG/nJAPiDDauH7uXo0iutLCLx fueulVkQcTXdYTMBBxLJpq49eBX/j6yWQWIQpua6tpGUfJOsHWCxbV/4XVUjxX8K0xN4 x08g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=0tSszAfeU3Hw+SM3zet0uKTU2t0DxmRUwULjrITFJWs=; b=o8ZDpWfk6ahbY5pB6RJUdtO7aiG6sXVMymC+eXg8/tpL+wp8qm2m1hO6xWI5kw5cCj 4afkfFp92VilklXwsILI4l7dJ4yCLP2Z8KnYXWgc8MMroGfQAb5W5qtRKriHySaovVyp lgX0pePx3px0mU6kPdVvMlzHRpVcIPQjSOwQCBmzvVcBJOolHH9mbqR7q1NBTwSV2Np7 wpN5wT9lRZFUFgtHI1ytet5pjskmJ/xNKH3hxbAwDhgh+XJ0Ng/UUyQgW/8/epwBW1GY 9AcylU78ys4fujXrLmZ2yLa5qL/026s+ZUVSJX7E9Xe7yXfuPlMGjEDkNjvZ1fanHVvN cySg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=KXV25JHE; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il10-20020a17090b164a00b0021858e20feesi9838769pjb.5.2022.11.26.23.58.34; Sat, 26 Nov 2022 23:58:56 -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=@icenowy.me header.s=zmail header.b=KXV25JHE; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbiK0HZ1 (ORCPT + 84 others); Sun, 27 Nov 2022 02:25:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiK0HZZ (ORCPT ); Sun, 27 Nov 2022 02:25:25 -0500 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0745813D13; Sat, 26 Nov 2022 23:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669533911; cv=none; d=zohomail.com; s=zohoarc; b=ggkzAtIy/l7f7YyyN6D1bmSEmSuAKIP4IsOJAVoA7ofakj2KB1Rpwuver6SPS7+mlQKlysKAdlfyBruF5KfMDQHpomomIMF84JG903es5X009QcNK0HKg7+aUvNklVxCmkBRnBIQq/xfyGwmpNOmfh9y8JSCCHmIchVMtLtGJck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669533911; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0tSszAfeU3Hw+SM3zet0uKTU2t0DxmRUwULjrITFJWs=; b=ccgAGlirkStYdnvC6zgpmD21QG1w3R568sbHzY4hqYJNVCl/1ZyAvJF1EUSZBEfKFIfCUt4+BYFqQ4V5m7uLhU43B+e/jfTSo/xU5r1MJIRohH5XhdbvJA7kHRvFuzOzemq3BlDxv85iU49T22vIrVk+eORzB4V/vv1r5ivuwT4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1669533911; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=0tSszAfeU3Hw+SM3zet0uKTU2t0DxmRUwULjrITFJWs=; b=KXV25JHEwreVFY60L/OefRyezdQqH7oK2TLu79SepeUo7fiBgsgnWeWJg/raHOFx TdqT0pkzUHGsxHWLdwr8ed752oDRTp12wHQq2wcWydlfndM53EZ+BicCA3ECTYIx7qw Ll37ZhEvPQL2uEroCGgA/sgmZY7tDebTBqk0ckiY= Received: from edelgard.fodlan.icenowy.me (112.94.100.108 [112.94.100.108]) by mx.zohomail.com with SMTPS id 1669533910659843.6717300057095; Sat, 26 Nov 2022 23:25:10 -0800 (PST) Message-ID: <3276634843dcd7288ea5329d7803466bf8992d66.camel@icenowy.me> Subject: Re: [PATCH 1/3] dt-bindings: timer: sifive,clint: add comaptibles for T-Head's C9xx From: Icenowy Zheng To: Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Jisheng Zhang , Samuel Holland Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Date: Sun, 27 Nov 2022 15:25:04 +0800 In-Reply-To: <20221121041757.418645-2-uwu@icenowy.me> References: <20221121041757.418645-1-uwu@icenowy.me> <20221121041757.418645-2-uwu@icenowy.me> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no 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 =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 Could this patch get applied individually? I want to drop the practice of the latter two patches and send new RFCs, and this patch is a dependency of some OpenSBI patch. > --- > =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 pro= perty > is > =C2=A0=C2=A0 described in Documentation/devicetree/bindings/riscv/cpus.ya= ml > =C2=A0 > +=C2=A0 T-Head C906/C910 CPU cores include an implementation of CLINT too= , > 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: sif= ive,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,c9= 00-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: sif= ive,clint0 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - const: ris= cv,clint0