Message ID | 20221121041757.418645-3-uwu@icenowy.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1383906wrr; Sun, 20 Nov 2022 20:26:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf4OluOkBGg6UXQl+S7ERvH4cdF64GPb6QNShFN0i7fAJMwgsdHSHEqV7ZfT2fJDyDA2DB2U X-Received: by 2002:a63:5042:0:b0:46f:e658:a8ff with SMTP id q2-20020a635042000000b0046fe658a8ffmr1141022pgl.493.1669004804976; Sun, 20 Nov 2022 20:26:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669004804; cv=pass; d=google.com; s=arc-20160816; b=YoNr+3poOFXeAjDWAWVQV9hJa8NOt/bWsSppZxuBLaM2wySmCLIcwUbfYnuhn0ZG8b 6Dw/fhC4OeysQqwDjhmhq654j9awo9wrmuetYsbH2kmN+V2wDURvw3U/vLXRBqkTJxZX MIyuu5Jo+YkqWvCxK3o1AmRpIwXF6+y3bGT0g3LWBwkMuUfZ/9xgkPwT2Qkpd2v23zPM A9FUMjkQ+dZex4Xvyp86dPwvFLwZTb7fqjNV11NgRynKzbl2SXqJIYph79DzL2tFuMUd MLKdsEKZ0BJu+npj9eg88EYOSq6xjlwkAHj+1DzV7X/qLb0GC+Do9fjM0l/JgVGlbVcD wQ6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1jvBArX5LMEqGndC/rqeiRHpRcDw256YhccTebGyEL8=; b=TH/cINcCOTc88f/dQuOz4EYPjsvWH9LQMGJQ7i2HhJQn47UHkdOUPaTmCZVM0Ii+kD ffsO67vE4QvqFbLMgRyxOp+ScHm6Ot7cBPqZqRZsohTU1Ie6ZxuB07/tCugKPeHsxPPC b8XqkyNlHaP2nW+v9N1MBE0FCss9yqSBMXXifYlNkQKeibdGDZDqsmtfWkTRH5yzNix4 FvW4X0j9ZdbQtQ9HO9S7Eddk55mUH2KTFnfmBOJFypAf/MSVMrN1YAUdYLwuZRgwqLUm AIuY+0h1v2uaD9kxayLYmUNraaNVy0plncoftyqlIB0CY1Pyg9r3yVNMy+bflJ/wfnXI us6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=WBLe4bVO; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a17090300c500b00186a4763532si8962596plc.28.2022.11.20.20.26.32; Sun, 20 Nov 2022 20:26:44 -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=WBLe4bVO; 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 S229489AbiKUETQ (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Sun, 20 Nov 2022 23:19:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiKUESt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 20 Nov 2022 23:18:49 -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 01E0F2A942; Sun, 20 Nov 2022 20:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669004316; cv=none; d=zohomail.com; s=zohoarc; b=aixIFHpi3bHX4fgmZ3jw6KdRI02uqQHXp/1mFoKt6XzDRrFU3cndHsJbUCsF6ZgSstQWSWKq17+bux6kgZIlqZZdyVreWGrQqBuijAr3uiwAO5/kd2jBfDCy9NKFS+Vj/82TH4M/vAA1SBAuhQzoipTxzOFiQjit/q5i0wB6fUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669004316; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=1jvBArX5LMEqGndC/rqeiRHpRcDw256YhccTebGyEL8=; b=DRkD33XgFDBpBkUfgL772kN8xlu2Q1JO4TuKnGVCn9Ct937mzlLI/gXomTplEfTizo7bJr1K/GtqSW54Q+ML9tLDzhXKL/pgFD2FA4SyBFKZOqfvmhZquB52J/YQ2GdI16dqYwVAPTQaa4QpNeGAyGt6e1E22ci34cchhJ31HJg= 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=<uwu@icenowy.me> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1669004316; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=1jvBArX5LMEqGndC/rqeiRHpRcDw256YhccTebGyEL8=; b=WBLe4bVOKOeFkUgh+EGrCsx73wKCpTEBVPhaGux/W8pcJM+arJuhX32P4TKVapzM 5bjyb3/M3WCPy+l7/Ii4/IYjfliXcHAU6bIrv9R4u40Cqp7fVomldgPNv/SZdElvgBp J1fPNdB+DNxtLGOWmNZInsRkwl+4V3Gg83dWjW8E= Received: from edelgard.fodlan.icenowy.me (112.94.100.29 [112.94.100.29]) by mx.zohomail.com with SMTPS id 166900431506566.96637222919264; Sun, 20 Nov 2022 20:18:35 -0800 (PST) From: Icenowy Zheng <uwu@icenowy.me> To: Marc Zyngier <maz@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Jisheng Zhang <jszhang@kernel.org>, Samuel Holland <samuel@sholland.org> Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Icenowy Zheng <uwu@icenowy.me> Subject: [PATCH 2/3] dt-bindings: timer: sifive,clint: add compatible for OpenC906 Date: Mon, 21 Nov 2022 12:17:56 +0800 Message-Id: <20221121041757.418645-3-uwu@icenowy.me> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221121041757.418645-1-uwu@icenowy.me> References: <20221121041757.418645-1-uwu@icenowy.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750078382079718131?= X-GMAIL-MSGID: =?utf-8?q?1750078382079718131?= |
Series |
Some DT binding quirks for T-Head C9xx
|
|
Commit Message
Icenowy Zheng
Nov. 21, 2022, 4:17 a.m. UTC
T-Head OpenC906 is a open-source-licensed fixed-configuration of C906,
which is now public and able to be integrated.
Add a compatible for the CLINT shipped as part of OpenC906, which should
just be ordinary C9xx CLINT.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
---
Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 +
1 file changed, 1 insertion(+)
Comments
On 21/11/2022 05:17, Icenowy Zheng wrote: > T-Head OpenC906 is a open-source-licensed fixed-configuration of C906, > which is now public and able to be integrated. > > Add a compatible for the CLINT shipped as part of OpenC906, which should > just be ordinary C9xx CLINT. > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > --- > Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index aada6957216c..86703e995e31 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -35,6 +35,7 @@ properties: > - const: sifive,clint0 > - items: > - enum: > + - thead,openc906-clint > - allwinner,sun20i-d1-clint Add entries sorted alphabetically. This should be squashed with previous patch. Best regards, Krzysztof
在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > On 21/11/2022 05:17, Icenowy Zheng wrote: > > T-Head OpenC906 is a open-source-licensed fixed-configuration of > > C906, > > which is now public and able to be integrated. > > > > Add a compatible for the CLINT shipped as part of OpenC906, which > > should > > just be ordinary C9xx CLINT. > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > --- > > Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git > > a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > index aada6957216c..86703e995e31 100644 > > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > @@ -35,6 +35,7 @@ properties: > > - const: sifive,clint0 > > - items: > > - enum: > > + - thead,openc906-clint > > - allwinner,sun20i-d1-clint > > Add entries sorted alphabetically. This should be squashed with > previous > patch. I make it a seperated patch because I think it's a questionable approach. If you think it's okay, I will just squash it and put it as the second patch in the next iteration, with adding openc906-plic as the first one. > > Best regards, > Krzysztof >
On 22/11/2022 08:18, Icenowy Zheng wrote: > 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: >> On 21/11/2022 05:17, Icenowy Zheng wrote: >>> T-Head OpenC906 is a open-source-licensed fixed-configuration of >>> C906, >>> which is now public and able to be integrated. >>> >>> Add a compatible for the CLINT shipped as part of OpenC906, which >>> should >>> just be ordinary C9xx CLINT. >>> >>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> >>> --- >>> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git >>> a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>> b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>> index aada6957216c..86703e995e31 100644 >>> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>> @@ -35,6 +35,7 @@ properties: >>> - const: sifive,clint0 >>> - items: >>> - enum: >>> + - thead,openc906-clint >>> - allwinner,sun20i-d1-clint >> >> Add entries sorted alphabetically. This should be squashed with >> previous >> patch. > > I make it a seperated patch because I think it's a questionable > approach. > > If you think it's okay, I will just squash it and put it as the second > patch in the next iteration, with adding openc906-plic as the first > one. What is a questionable approach? Why commit msg is not saying this? Best regards, Krzysztof
于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 写到: >On 22/11/2022 08:18, Icenowy Zheng wrote: >> 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: >>> On 21/11/2022 05:17, Icenowy Zheng wrote: >>>> T-Head OpenC906 is a open-source-licensed fixed-configuration of >>>> C906, >>>> which is now public and able to be integrated. >>>> >>>> Add a compatible for the CLINT shipped as part of OpenC906, which >>>> should >>>> just be ordinary C9xx CLINT. >>>> >>>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> >>>> --- >>>> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> diff --git >>>> a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>> b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>> index aada6957216c..86703e995e31 100644 >>>> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>> @@ -35,6 +35,7 @@ properties: >>>> - const: sifive,clint0 >>>> - items: >>>> - enum: >>>> + - thead,openc906-clint >>>> - allwinner,sun20i-d1-clint >>> >>> Add entries sorted alphabetically. This should be squashed with >>> previous >>> patch. >> >> I make it a seperated patch because I think it's a questionable >> approach. >> >> If you think it's okay, I will just squash it and put it as the second >> patch in the next iteration, with adding openc906-plic as the first >> one. > >What is a questionable approach? Why commit msg is not saying this? Ah I mentioned it in the cover letter. The problem is just I doubt whether binding strings for single SoCs are necessary. > >Best regards, >Krzysztof >
On 22/11/2022 08:41, Icenowy Zheng wrote: > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 写到: >> On 22/11/2022 08:18, Icenowy Zheng wrote: >>> 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: >>>> On 21/11/2022 05:17, Icenowy Zheng wrote: >>>>> T-Head OpenC906 is a open-source-licensed fixed-configuration of >>>>> C906, >>>>> which is now public and able to be integrated. >>>>> >>>>> Add a compatible for the CLINT shipped as part of OpenC906, which >>>>> should >>>>> just be ordinary C9xx CLINT. >>>>> >>>>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> >>>>> --- >>>>> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + >>>>> 1 file changed, 1 insertion(+) >>>>> >>>>> diff --git >>>>> a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>>> b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>>> index aada6957216c..86703e995e31 100644 >>>>> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>>> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >>>>> @@ -35,6 +35,7 @@ properties: >>>>> - const: sifive,clint0 >>>>> - items: >>>>> - enum: >>>>> + - thead,openc906-clint >>>>> - allwinner,sun20i-d1-clint >>>> >>>> Add entries sorted alphabetically. This should be squashed with >>>> previous >>>> patch. >>> >>> I make it a seperated patch because I think it's a questionable >>> approach. >>> >>> If you think it's okay, I will just squash it and put it as the second >>> patch in the next iteration, with adding openc906-plic as the first >>> one. >> >> What is a questionable approach? Why commit msg is not saying this? > > Ah I mentioned it in the cover letter. The problem is just I doubt whether > binding strings for single SoCs are necessary. > There is no question in cover letter. Just some minor remark *at the end* of it... If you have questions, be explicit, not force people to grep through several paragraphs and figure out your concerns. Best regards, Krzysztof
On Tue, Nov 22, 2022 at 03:41:27PM +0800, Icenowy Zheng wrote: > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 写到: > >On 22/11/2022 08:18, Icenowy Zheng wrote: > >> 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > >>> On 21/11/2022 05:17, Icenowy Zheng wrote: > >>>> T-Head OpenC906 is a open-source-licensed fixed-configuration of > >>>> C906, > >>>> which is now public and able to be integrated. > >>>> > >>>> Add a compatible for the CLINT shipped as part of OpenC906, which > >>>> should > >>>> just be ordinary C9xx CLINT. > >>>> > >>>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > >>>> --- > >>>> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + > >>>> 1 file changed, 1 insertion(+) > >>>> > >>>> diff --git > >>>> a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > >>>> b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > >>>> index aada6957216c..86703e995e31 100644 > >>>> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > >>>> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > >>>> @@ -35,6 +35,7 @@ properties: > >>>> - const: sifive,clint0 > >>>> - items: > >>>> - enum: > >>>> + - thead,openc906-clint > >>>> - allwinner,sun20i-d1-clint > >>> > >>> Add entries sorted alphabetically. This should be squashed with > >>> previous > >>> patch. > >> > >> I make it a seperated patch because I think it's a questionable > >> approach. > >> > >> If you think it's okay, I will just squash it and put it as the second > >> patch in the next iteration, with adding openc906-plic as the first > >> one. > > > >What is a questionable approach? Why commit msg is not saying this? > > Ah I mentioned it in the cover letter. The problem is just I doubt whether > binding strings for single SoCs are necessary. They are. Unless all the quirks/bugs/features are somehow guaranteed to be exactly the same as other SoCs sharing the same compatible string, or there is another mechanism to identify the exact version (e.g. a version register). Rob
On Wed, Nov 30, 2022 at 12:13:30PM -0600, Rob Herring wrote: > On Tue, Nov 22, 2022 at 03:41:27PM +0800, Icenowy Zheng wrote: > > > > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 写到: > > >On 22/11/2022 08:18, Icenowy Zheng wrote: > > >> 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > > >>> On 21/11/2022 05:17, Icenowy Zheng wrote: > > >>>> T-Head OpenC906 is a open-source-licensed fixed-configuration of > > >>>> C906, > > >>>> which is now public and able to be integrated. > > >>>> > > >>>> Add a compatible for the CLINT shipped as part of OpenC906, which > > >>>> should > > >>>> just be ordinary C9xx CLINT. > > >>>> > > >>>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > >>>> --- > > >>>> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + > > >>>> 1 file changed, 1 insertion(+) > > >>>> > > >>>> diff --git > > >>>> a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > >>>> b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > >>>> index aada6957216c..86703e995e31 100644 > > >>>> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > >>>> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > >>>> @@ -35,6 +35,7 @@ properties: > > >>>> - const: sifive,clint0 > > >>>> - items: > > >>>> - enum: > > >>>> + - thead,openc906-clint > > >>>> - allwinner,sun20i-d1-clint > > >>> > > >>> Add entries sorted alphabetically. This should be squashed with > > >>> previous > > >>> patch. > > >> > > >> I make it a seperated patch because I think it's a questionable > > >> approach. > > >> > > >> If you think it's okay, I will just squash it and put it as the second > > >> patch in the next iteration, with adding openc906-plic as the first > > >> one. > > > > > >What is a questionable approach? Why commit msg is not saying this? > > > > Ah I mentioned it in the cover letter. The problem is just I doubt whether > > binding strings for single SoCs are necessary. > > They are. > > Unless all the quirks/bugs/features are somehow guaranteed to be exactly > the same as other SoCs sharing the same compatible string, or there is > another mechanism to identify the exact version (e.g. a version > register). Icenowy, Having thought about this a little - are we not *more* likely to see bug/quirk disparity between implementations of the OpenC906 stuff by the very nature of being an open-source IP? Thanks, Conor.
在 2022-12-01星期四的 19:18 +0000,Conor Dooley写道: > On Wed, Nov 30, 2022 at 12:13:30PM -0600, Rob Herring wrote: > > On Tue, Nov 22, 2022 at 03:41:27PM +0800, Icenowy Zheng wrote: > > > > > > > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski > > > <krzysztof.kozlowski@linaro.org> 写到: > > > > On 22/11/2022 08:18, Icenowy Zheng wrote: > > > > > 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > > > > > > On 21/11/2022 05:17, Icenowy Zheng wrote: > > > > > > > T-Head OpenC906 is a open-source-licensed fixed- > > > > > > > configuration of > > > > > > > C906, > > > > > > > which is now public and able to be integrated. > > > > > > > > > > > > > > Add a compatible for the CLINT shipped as part of > > > > > > > OpenC906, which > > > > > > > should > > > > > > > just be ordinary C9xx CLINT. > > > > > > > > > > > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > > > > > > --- > > > > > > > Documentation/devicetree/bindings/timer/sifive,clint.yam > > > > > > > l | 1 + > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > > > diff --git > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > ml > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > ml > > > > > > > index aada6957216c..86703e995e31 100644 > > > > > > > --- > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > ml > > > > > > > +++ > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > ml > > > > > > > @@ -35,6 +35,7 @@ properties: > > > > > > > - const: sifive,clint0 > > > > > > > - items: > > > > > > > - enum: > > > > > > > + - thead,openc906-clint > > > > > > > - allwinner,sun20i-d1-clint > > > > > > > > > > > > Add entries sorted alphabetically. This should be squashed > > > > > > with > > > > > > previous > > > > > > patch. > > > > > > > > > > I make it a seperated patch because I think it's a > > > > > questionable > > > > > approach. > > > > > > > > > > If you think it's okay, I will just squash it and put it as > > > > > the second > > > > > patch in the next iteration, with adding openc906-plic as the > > > > > first > > > > > one. > > > > > > > > What is a questionable approach? Why commit msg is not saying > > > > this? > > > > > > Ah I mentioned it in the cover letter. The problem is just I > > > doubt whether > > > binding strings for single SoCs are necessary. > > > > They are. > > > > Unless all the quirks/bugs/features are somehow guaranteed to be > > exactly > > the same as other SoCs sharing the same compatible string, or there > > is > > another mechanism to identify the exact version (e.g. a version > > register). > > Icenowy, > > Having thought about this a little - are we not *more* likely to see > bug/quirk disparity between implementations of the OpenC906 stuff by > the very nature of being an open-source IP? It's an open-source edition of a specific version of the commercial IP, a fixed configuration. In addition, maybe we can just retrieve the version infomation via a T- Head custom CPU configuration register, mcpuid. Despite the implementation of this register is weird -- it contains 7 different read-only values, with the most significant nibble behaving as an index. > > Thanks, > Conor. >
On Fri, Dec 02, 2022 at 02:12:54PM +0800, Icenowy Zheng wrote: > 在 2022-12-01星期四的 19:18 +0000,Conor Dooley写道: > > On Wed, Nov 30, 2022 at 12:13:30PM -0600, Rob Herring wrote: > > > On Tue, Nov 22, 2022 at 03:41:27PM +0800, Icenowy Zheng wrote: > > > > > > > > > > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski > > > > <krzysztof.kozlowski@linaro.org> 写到: > > > > > On 22/11/2022 08:18, Icenowy Zheng wrote: > > > > > > 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > > > > > > > On 21/11/2022 05:17, Icenowy Zheng wrote: > > > > > > > > T-Head OpenC906 is a open-source-licensed fixed- > > > > > > > > configuration of > > > > > > > > C906, > > > > > > > > which is now public and able to be integrated. > > > > > > > > > > > > > > > > Add a compatible for the CLINT shipped as part of > > > > > > > > OpenC906, which > > > > > > > > should > > > > > > > > just be ordinary C9xx CLINT. > > > > > > > > > > > > > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > > > > > > > --- > > > > > > > > Documentation/devicetree/bindings/timer/sifive,clint.yam > > > > > > > > l | 1 + > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > > > > > diff --git > > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > > ml > > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > > ml > > > > > > > > index aada6957216c..86703e995e31 100644 > > > > > > > > --- > > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > > ml > > > > > > > > +++ > > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clint.ya > > > > > > > > ml > > > > > > > > @@ -35,6 +35,7 @@ properties: > > > > > > > > - const: sifive,clint0 > > > > > > > > - items: > > > > > > > > - enum: > > > > > > > > + - thead,openc906-clint > > > > > > > > - allwinner,sun20i-d1-clint > > > > > > > > > > > > > > Add entries sorted alphabetically. This should be squashed > > > > > > > with > > > > > > > previous > > > > > > > patch. > > > > > > > > > > > > I make it a seperated patch because I think it's a > > > > > > questionable > > > > > > approach. > > > > > > > > > > > > If you think it's okay, I will just squash it and put it as > > > > > > the second > > > > > > patch in the next iteration, with adding openc906-plic as the > > > > > > first > > > > > > one. > > > > > > > > > > What is a questionable approach? Why commit msg is not saying > > > > > this? > > > > > > > > Ah I mentioned it in the cover letter. The problem is just I > > > > doubt whether > > > > binding strings for single SoCs are necessary. > > > > > > They are. > > > > > > Unless all the quirks/bugs/features are somehow guaranteed to be > > > exactly > > > the same as other SoCs sharing the same compatible string, or there > > > is > > > another mechanism to identify the exact version (e.g. a version > > > register). > > > > Icenowy, > > > > Having thought about this a little - are we not *more* likely to see > > bug/quirk disparity between implementations of the OpenC906 stuff by > > the very nature of being an open-source IP? > > It's an open-source edition of a specific version of the commercial IP, > a fixed configuration. > > In addition, maybe we can just retrieve the version infomation via a T- > Head custom CPU configuration register, mcpuid. Despite the > implementation of this register is weird -- it contains 7 different > read-only values, with the most significant nibble behaving as an > index. You lot all know the situation here a lot more than I do... I don't think "letting" people use the bare "thead,c900-foo" makes much sense as it gives us no chance to deal with quirks down the line. I don't think that using "thead,openc906-clint", "thead,c900-clint" makes all that much sense either, in case someone does something wacky with the open-source version of the core. That leaves us with either: "vendor,soc-clint", "thead,openc906-clint", "thead,c900-clint" or: "vendor,soc-clint", "thead,c900-clint" right? The first one seems like possibly the better option as you'd kinda expect that, in a perfect word, all of the open-source IP implementations would share quirks etc? Thanks, Conor.
在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: > On Fri, Dec 02, 2022 at 02:12:54PM +0800, Icenowy Zheng wrote: > > 在 2022-12-01星期四的 19:18 +0000,Conor Dooley写道: > > > On Wed, Nov 30, 2022 at 12:13:30PM -0600, Rob Herring wrote: > > > > On Tue, Nov 22, 2022 at 03:41:27PM +0800, Icenowy Zheng wrote: > > > > > > > > > > > > > > > 于 2022年11月22日 GMT+08:00 下午3:35:48, Krzysztof Kozlowski > > > > > <krzysztof.kozlowski@linaro.org> 写到: > > > > > > On 22/11/2022 08:18, Icenowy Zheng wrote: > > > > > > > 在 2022-11-21星期一的 11:06 +0100,Krzysztof Kozlowski写道: > > > > > > > > On 21/11/2022 05:17, Icenowy Zheng wrote: > > > > > > > > > T-Head OpenC906 is a open-source-licensed fixed- > > > > > > > > > configuration of > > > > > > > > > C906, > > > > > > > > > which is now public and able to be integrated. > > > > > > > > > > > > > > > > > > Add a compatible for the CLINT shipped as part of > > > > > > > > > OpenC906, which > > > > > > > > > should > > > > > > > > > just be ordinary C9xx CLINT. > > > > > > > > > > > > > > > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > > > > > > > > --- > > > > > > > > > Documentation/devicetree/bindings/timer/sifive,clint > > > > > > > > > .yam > > > > > > > > > l | 1 + > > > > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > > > > > > > diff --git > > > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clin > > > > > > > > > t.ya > > > > > > > > > ml > > > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clin > > > > > > > > > t.ya > > > > > > > > > ml > > > > > > > > > index aada6957216c..86703e995e31 100644 > > > > > > > > > --- > > > > > > > > > a/Documentation/devicetree/bindings/timer/sifive,clin > > > > > > > > > t.ya > > > > > > > > > ml > > > > > > > > > +++ > > > > > > > > > b/Documentation/devicetree/bindings/timer/sifive,clin > > > > > > > > > t.ya > > > > > > > > > ml > > > > > > > > > @@ -35,6 +35,7 @@ properties: > > > > > > > > > - const: sifive,clint0 > > > > > > > > > - items: > > > > > > > > > - enum: > > > > > > > > > + - thead,openc906-clint > > > > > > > > > - allwinner,sun20i-d1-clint > > > > > > > > > > > > > > > > Add entries sorted alphabetically. This should be > > > > > > > > squashed > > > > > > > > with > > > > > > > > previous > > > > > > > > patch. > > > > > > > > > > > > > > I make it a seperated patch because I think it's a > > > > > > > questionable > > > > > > > approach. > > > > > > > > > > > > > > If you think it's okay, I will just squash it and put it > > > > > > > as > > > > > > > the second > > > > > > > patch in the next iteration, with adding openc906-plic as > > > > > > > the > > > > > > > first > > > > > > > one. > > > > > > > > > > > > What is a questionable approach? Why commit msg is not > > > > > > saying > > > > > > this? > > > > > > > > > > Ah I mentioned it in the cover letter. The problem is just I > > > > > doubt whether > > > > > binding strings for single SoCs are necessary. > > > > > > > > They are. > > > > > > > > Unless all the quirks/bugs/features are somehow guaranteed to > > > > be > > > > exactly > > > > the same as other SoCs sharing the same compatible string, or > > > > there > > > > is > > > > another mechanism to identify the exact version (e.g. a version > > > > register). > > > > > > Icenowy, > > > > > > Having thought about this a little - are we not *more* likely to > > > see > > > bug/quirk disparity between implementations of the OpenC906 stuff > > > by > > > the very nature of being an open-source IP? > > > > It's an open-source edition of a specific version of the commercial > > IP, > > a fixed configuration. > > > > In addition, maybe we can just retrieve the version infomation via > > a T- > > Head custom CPU configuration register, mcpuid. Despite the > > implementation of this register is weird -- it contains 7 different > > read-only values, with the most significant nibble behaving as an > > index. > > You lot all know the situation here a lot more than I do... > I don't think "letting" people use the bare "thead,c900-foo" makes > much > sense as it gives us no chance to deal with quirks down the line. Well, after rechecking the manual, I found it possible to handle quirks -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which can be used to retrieve some identification info of the core, including its model ID, version, etc; and the T-Head PLIC/CLINT are part of their C906 SoC design that there's another "mapbaddr" CSR that could be used to retrieve the base address of them. So I think it okay to just use "thead,c900-clint" here, and when necessary, try to retrieve mcpuid for dealing with quirks. > I don't think that using "thead,openc906-clint", "thead,c900-clint" > makes all that much sense either, in case someone does something > wacky > with the open-source version of the core. > > That leaves us with either: > "vendor,soc-clint", "thead,openc906-clint", "thead,c900-clint" > or: > "vendor,soc-clint", "thead,c900-clint" > right? > > The first one seems like possibly the better option as you'd kinda > expect that, in a perfect word, all of the open-source IP > implementations would share quirks etc? > > Thanks, > Conor. >
On Mon, Dec 05, 2022 at 07:03:17PM +0800, Icenowy Zheng wrote: > 在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: > > You lot all know the situation here a lot more than I do... > > I don't think "letting" people use the bare "thead,c900-foo" makes > > much > > sense as it gives us no chance to deal with quirks down the line. > > Well, after rechecking the manual, I found it possible to handle quirks > -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which can be > used to retrieve some identification info of the core, including its > model ID, version, etc; and the T-Head PLIC/CLINT are part of their > C906 SoC design that there's another "mapbaddr" CSR that could be used > to retrieve the base address of them. > > So I think it okay to just use "thead,c900-clint" here, and when > necessary, try to retrieve mcpuid for dealing with quirks. I'm not super sure I follow. What's the relevance of "mapbaddr" here? We've got a reg property, so I don't think we need "mapbaddr"? For "mcpuid", can you be sure that implementers will not omit setting that value to something unique? I'd be happier if we were overly clear now rather than have some headaches later. Have I missed something? > > I don't think that using "thead,openc906-clint", "thead,c900-clint" > > makes all that much sense either, in case someone does something > > wacky > > with the open-source version of the core. > > > > That leaves us with either: > > "vendor,soc-clint", "thead,openc906-clint", "thead,c900-clint" > > or: > > "vendor,soc-clint", "thead,c900-clint" > > right? > > > > The first one seems like possibly the better option as you'd kinda > > expect that, in a perfect word, all of the open-source IP > > implementations would share quirks etc?
在 2022-12-05星期一的 15:05 +0000,Conor Dooley写道: > On Mon, Dec 05, 2022 at 07:03:17PM +0800, Icenowy Zheng wrote: > > 在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: > > > > You lot all know the situation here a lot more than I do... > > > I don't think "letting" people use the bare "thead,c900-foo" > > > makes > > > much > > > sense as it gives us no chance to deal with quirks down the line. > > > > Well, after rechecking the manual, I found it possible to handle > > quirks > > -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which can > > be > > used to retrieve some identification info of the core, including > > its > > model ID, version, etc; and the T-Head PLIC/CLINT are part of their > > C906 SoC design that there's another "mapbaddr" CSR that could be > > used > > to retrieve the base address of them. > > > > So I think it okay to just use "thead,c900-clint" here, and when > > necessary, try to retrieve mcpuid for dealing with quirks. > > I'm not super sure I follow. What's the relevance of "mapbaddr" here? > We've got a reg property, so I don't think we need "mapbaddr"? Yes, it's not relevant to us here, it's only to prove that PLIC/CLINT is part of C906 "Core Complex". > > For "mcpuid", can you be sure that implementers will not omit setting > that value to something unique? I'd be happier if we were overly > clear > now rather than have some headaches later. Have I missed something? These values are set by T-Head instead of individual SoC implementers as a CPU CSR, and it's not for uniqueness, but it's for identification of the CPU core revision (thus the PLIC/CLINT that come with it). > > > > I don't think that using "thead,openc906-clint", "thead,c900- > > > clint" > > > makes all that much sense either, in case someone does something > > > wacky > > > with the open-source version of the core. > > > > > > That leaves us with either: > > > "vendor,soc-clint", "thead,openc906-clint", "thead,c900-clint" > > > or: > > > "vendor,soc-clint", "thead,c900-clint" > > > right? > > > > > > The first one seems like possibly the better option as you'd > > > kinda > > > expect that, in a perfect word, all of the open-source IP > > > implementations would share quirks etc? >
On 5 December 2022 15:59:44 GMT, Icenowy Zheng <uwu@icenowy.me> wrote: >在 2022-12-05星期一的 15:05 +0000,Conor Dooley写道: >> On Mon, Dec 05, 2022 at 07:03:17PM +0800, Icenowy Zheng wrote: >> > 在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: >> >> > > You lot all know the situation here a lot more than I do... >> > > I don't think "letting" people use the bare "thead,c900-foo" >> > > makes >> > > much >> > > sense as it gives us no chance to deal with quirks down the line. >> > >> > Well, after rechecking the manual, I found it possible to handle >> > quirks >> > -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which can >> > be >> > used to retrieve some identification info of the core, including >> > its >> > model ID, version, etc; and the T-Head PLIC/CLINT are part of their >> > C906 SoC design that there's another "mapbaddr" CSR that could be >> > used >> > to retrieve the base address of them. >> > >> > So I think it okay to just use "thead,c900-clint" here, and when >> > necessary, try to retrieve mcpuid for dealing with quirks. >> >> I'm not super sure I follow. What's the relevance of "mapbaddr" here? >> We've got a reg property, so I don't think we need "mapbaddr"? > >Yes, it's not relevant to us here, it's only to prove that PLIC/CLINT >is part of C906 "Core Complex". > >> >> For "mcpuid", can you be sure that implementers will not omit setting >> that value to something unique? I'd be happier if we were overly >> clear >> now rather than have some headaches later. Have I missed something? > >These values are set by T-Head instead of individual SoC implementers >as a CPU CSR, and it's not for uniqueness, but it's for identification >of the CPU core revision (thus the PLIC/CLINT that come with it). I really am missing something here that must be obvious to you. Let me try and explain where my gap in understanding is. If someone takes the open cores & makes a minor tweak in the plic how does knowing mcpuid help us identify that that plic is marginally different? I must have missed something that should be apparent and look like an eejit right now! > >> >> > > I don't think that using "thead,openc906-clint", "thead,c900- >> > > clint" >> > > makes all that much sense either, in case someone does something >> > > wacky >> > > with the open-source version of the core. >> > > >> > > That leaves us with either: >> > > "vendor,soc-clint", "thead,openc906-clint", "thead,c900-clint" >> > > or: >> > > "vendor,soc-clint", "thead,c900-clint" >> > > right? >> > > >> > > The first one seems like possibly the better option as you'd >> > > kinda >> > > expect that, in a perfect word, all of the open-source IP >> > > implementations would share quirks etc? >> >
在 2022-12-05星期一的 16:54 +0000,Conor Dooley写道: > > > On 5 December 2022 15:59:44 GMT, Icenowy Zheng <uwu@icenowy.me> > wrote: > > 在 2022-12-05星期一的 15:05 +0000,Conor Dooley写道: > > > On Mon, Dec 05, 2022 at 07:03:17PM +0800, Icenowy Zheng wrote: > > > > 在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: > > > > > > > > You lot all know the situation here a lot more than I do... > > > > > I don't think "letting" people use the bare "thead,c900-foo" > > > > > makes > > > > > much > > > > > sense as it gives us no chance to deal with quirks down the > > > > > line. > > > > > > > > Well, after rechecking the manual, I found it possible to > > > > handle > > > > quirks > > > > -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which > > > > can > > > > be > > > > used to retrieve some identification info of the core, > > > > including > > > > its > > > > model ID, version, etc; and the T-Head PLIC/CLINT are part of > > > > their > > > > C906 SoC design that there's another "mapbaddr" CSR that could > > > > be > > > > used > > > > to retrieve the base address of them. > > > > > > > > So I think it okay to just use "thead,c900-clint" here, and > > > > when > > > > necessary, try to retrieve mcpuid for dealing with quirks. > > > > > > I'm not super sure I follow. What's the relevance of "mapbaddr" > > > here? > > > We've got a reg property, so I don't think we need "mapbaddr"? > > > > Yes, it's not relevant to us here, it's only to prove that > > PLIC/CLINT > > is part of C906 "Core Complex". > > > > > > > > For "mcpuid", can you be sure that implementers will not omit > > > setting > > > that value to something unique? I'd be happier if we were overly > > > clear > > > now rather than have some headaches later. Have I missed > > > something? > > > > These values are set by T-Head instead of individual SoC > > implementers > > as a CPU CSR, and it's not for uniqueness, but it's for > > identification > > of the CPU core revision (thus the PLIC/CLINT that come with it). > > I really am missing something here that must be obvious to you. > Let me try and explain where my gap in understanding is. > If someone takes the open cores & makes a minor tweak in the plic how > does knowing mcpuid help us identify that that plic is marginally > different? No, but my point is that in this situation we shouldn't use C900 compatible at all because it's no longer the vanilla C900 cores. My assumption is that the same IP cores are the same unless specially customized. > > I must have missed something that should be apparent and look like an > eejit right now! > > > > > > > > > > > I don't think that using "thead,openc906-clint", "thead,c900- > > > > > clint" > > > > > makes all that much sense either, in case someone does > > > > > something > > > > > wacky > > > > > with the open-source version of the core. > > > > > > > > > > That leaves us with either: > > > > > "vendor,soc-clint", "thead,openc906-clint", "thead,c900- > > > > > clint" > > > > > or: > > > > > "vendor,soc-clint", "thead,c900-clint" > > > > > right? > > > > > > > > > > The first one seems like possibly the better option as you'd > > > > > kinda > > > > > expect that, in a perfect word, all of the open-source IP > > > > > implementations would share quirks etc? > > > > >
On 6 December 2022 03:46:11 GMT, Icenowy Zheng <uwu@icenowy.me> wrote: >在 2022-12-05星期一的 16:54 +0000,Conor Dooley写道: >> >> >> On 5 December 2022 15:59:44 GMT, Icenowy Zheng <uwu@icenowy.me> >> wrote: >> > 在 2022-12-05星期一的 15:05 +0000,Conor Dooley写道: >> > > On Mon, Dec 05, 2022 at 07:03:17PM +0800, Icenowy Zheng wrote: >> > > > 在 2022-12-05星期一的 10:36 +0000,Conor Dooley写道: >> > > >> > > > > You lot all know the situation here a lot more than I do... >> > > > > I don't think "letting" people use the bare "thead,c900-foo" >> > > > > makes >> > > > > much >> > > > > sense as it gives us no chance to deal with quirks down the >> > > > > line. >> > > > >> > > > Well, after rechecking the manual, I found it possible to >> > > > handle >> > > > quirks >> > > > -- T-Head has a custom "mcpuid" CSR (@ RISC-V CSR 0xFC0), which >> > > > can >> > > > be >> > > > used to retrieve some identification info of the core, >> > > > including >> > > > its >> > > > model ID, version, etc; and the T-Head PLIC/CLINT are part of >> > > > their >> > > > C906 SoC design that there's another "mapbaddr" CSR that could >> > > > be >> > > > used >> > > > to retrieve the base address of them. >> > > > >> > > > So I think it okay to just use "thead,c900-clint" here, and >> > > > when >> > > > necessary, try to retrieve mcpuid for dealing with quirks. >> > > >> > > I'm not super sure I follow. What's the relevance of "mapbaddr" >> > > here? >> > > We've got a reg property, so I don't think we need "mapbaddr"? >> > >> > Yes, it's not relevant to us here, it's only to prove that >> > PLIC/CLINT >> > is part of C906 "Core Complex". >> > >> > > >> > > For "mcpuid", can you be sure that implementers will not omit >> > > setting >> > > that value to something unique? I'd be happier if we were overly >> > > clear >> > > now rather than have some headaches later. Have I missed >> > > something? >> > >> > These values are set by T-Head instead of individual SoC >> > implementers >> > as a CPU CSR, and it's not for uniqueness, but it's for >> > identification >> > of the CPU core revision (thus the PLIC/CLINT that come with it). >> >> I really am missing something here that must be obvious to you. >> Let me try and explain where my gap in understanding is. >> If someone takes the open cores & makes a minor tweak in the plic how >> does knowing mcpuid help us identify that that plic is marginally >> different? > >No, but my point is that in this situation we shouldn't use C900 >compatible at all because it's no longer the vanilla C900 cores. > >My assumption is that the same IP cores are the same unless specially >customized. Ah see that is assuming people get it right. I've been in the mindset of "what if the difference is only noticed after the DT has been shipped". I guess that's where we've been at odds. > >> >> I must have missed something that should be apparent and look like an >> eejit right now! >> >> > >> > > >> > > > > I don't think that using "thead,openc906-clint", "thead,c900- >> > > > > clint" >> > > > > makes all that much sense either, in case someone does >> > > > > something >> > > > > wacky >> > > > > with the open-source version of the core. >> > > > > >> > > > > That leaves us with either: >> > > > > "vendor,soc-clint", "thead,openc906-clint", "thead,c900- >> > > > > clint" >> > > > > or: >> > > > > "vendor,soc-clint", "thead,c900-clint" >> > > > > right? >> > > > > >> > > > > The first one seems like possibly the better option as you'd >> > > > > kinda >> > > > > expect that, in a perfect word, all of the open-source IP >> > > > > implementations would share quirks etc? >> > > >> > >
diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index aada6957216c..86703e995e31 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -35,6 +35,7 @@ properties: - const: sifive,clint0 - items: - enum: + - thead,openc906-clint - allwinner,sun20i-d1-clint - const: thead,c900-clint - items: