Message ID | 55865e1ce40d2017f047d3a9e1a9ee30043b271f.1695189879.git.wangchen20@iscas.ac.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3997480vqi; Wed, 20 Sep 2023 02:28:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhSpVhK1Q50jzm2P6miNF3Z35/WZUcHXMNgYFAWuBDPPVVP6RztRv4OjALe0AqhdwgwVCh X-Received: by 2002:a05:6870:c085:b0:1d5:b2ba:bc93 with SMTP id c5-20020a056870c08500b001d5b2babc93mr2117531oad.13.1695202086797; Wed, 20 Sep 2023 02:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695202086; cv=none; d=google.com; s=arc-20160816; b=VoXdc/+RLfrf4p49UetDn/2Lt2EjTp3q0glyJklQXVEtx/JF4KnGwtX7e3X4sYu5gP eJWbjzGUEBJb8VpxCRZWTJbnDAQn0WKz9LLGhNV2m3l8tCtAML/Y9A42wpKTuu9Tit6I cSWRMlRkTy8rNUQq65X2p7hKQ8OTuyUzLboDNOiZmQxwTHgtO4ox09xVRZbEIFxdz23i J3O4LpkJRv5ohjA0kdhOcTbLRWocED4bDMYmO4YeZQltFCjaB9tir3IQ6qBz/d0666fu H0fnatDSZR7BY9M0QLZl5YKNZ94GqP23R3ciIXaVRirvy7Q0WPIr5t444OrQ2xZtW33S Lebg== ARC-Message-Signature: i=1; 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=xIS769hMse1vDi7mpkrCqnYIQ3QwZYvHFR8ADh3yuGA=; fh=roPR7iI4QlKJdvdpb2a3+LXdM8KYAKhDRehBXLXVwgM=; b=mv2sxWdFepbfncW3idzkhGblCNW/AaOGYZGRlPyX9OdElFng+5jUmoQZQEEO30l5fr 9YGx9pGTtM+ZM/5sQuIA+lDu/o9FfYIW+8vSHM6YCsNXu9fj4tIlxmj3D/QDvY3FW8mE V8Yy2bXo0BKB2L5NNXP77NqDWSPbiVNBKa8pjUVogIhfmuZbRJF3Rgj+4FlZWV3wkIzj 4im/59XhBVtiWtdYVkZhEMg8YlJ0If2geP7MQU2BHRtedz+VXIN26VtwkNCQhgwdS9oW jThPna131tdgrtELPr1UEIcOY1H8mH6luUCdgIXTUkz0I4OAEXkbtS0h2iXxJMzMi469 ituw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lFAudFNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cb3-20020a056a00430300b00690d935fa5asi1430098pfb.59.2023.09.20.02.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 02:28:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lFAudFNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9F7C48220D61; Tue, 19 Sep 2023 23:40:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233287AbjITGjz (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 02:39:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233243AbjITGjw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 02:39:52 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0740AB0; Tue, 19 Sep 2023 23:39:47 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6befdb1f545so4507136a34.3; Tue, 19 Sep 2023 23:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695191986; x=1695796786; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xIS769hMse1vDi7mpkrCqnYIQ3QwZYvHFR8ADh3yuGA=; b=lFAudFNhrBA4ZnDgB3a+jeL/HC//SVvy6DWZYhJo3J3bZtvWXDwzpEvTEgF9ue2NlC QThz1nLtJNVcumaOQ8ZXkxmuHYdJEAgU3aFySUBoqjvRXQahg9/L8cuPqC/Ys56reYGZ Hlm3n0NQ4Mkyc5Gb6Sj5C7yV33uVpS4C5bra3+f0xhcoFZkAa/0WOhFp0SZe6xeghAb3 60bjZI6peiVj6mduRVHlgtlNDMqVVFdiNph5HTjED2kf72K/XwB/icVm7B9Ri7uXchh7 Q99l0XwrCuzCMuW4ACZv63U0lb58mXZ6WPmQsdraYyXgb9NDNraG73b94X62uZ4VcFE6 z6qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695191986; x=1695796786; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xIS769hMse1vDi7mpkrCqnYIQ3QwZYvHFR8ADh3yuGA=; b=ssB4u/IKNIVlVOGmv6rQM4VWtOzxCuikTwtkUz1wwtHrPtnswHSlsEUfgT0nuFEHvM h1KsMZ6J8M6NulKX8s+4NQrHl8CBBIbnkez6PzVZUf6OX1EF3VF3rCpfclS+VYhYEjfy kz4ENUw0LV5xRJgOL1J3lS3B70xnK/sSbyxVgcg09Pzhzg1aCdYCK4x10tdQ0qHs+7Qr RxHU83mEsD6VUE8dioOxDiKwPx2aYUcvPIf0JrtP8XNfRbu3t0giZlgT8dZI/svsw1NT L99VU7Qs7fbaEBFdX4wZdXa0bjmTjXSf2euoVar0TiaD+BfKtrRX11PnNgr1harLZt9Y yUkg== X-Gm-Message-State: AOJu0YwXdI2KZpu/uxTozWowR8ggeF6N1ImeN2xRYaw/HmB3PUssKrIF 0U6KkUz98ctG8+5l4G2a1Aw= X-Received: by 2002:a05:6870:c6a5:b0:1d5:4fb0:105 with SMTP id cv37-20020a056870c6a500b001d54fb00105mr1753205oab.20.1695191986216; Tue, 19 Sep 2023 23:39:46 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id m10-20020a056870560a00b001c02f12abd0sm6282986oao.38.2023.09.19.23.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:39:46 -0700 (PDT) From: Chen Wang <unicornxw@gmail.com> X-Google-Original-From: Chen Wang <wangchen20@iscas.ac.cn> To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com Cc: Inochi Amaoto <inochiama@outlook.com>, Chen Wang <wangchen20@iscas.ac.cn> Subject: [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Date: Wed, 20 Sep 2023 14:39:39 +0800 Message-Id: <55865e1ce40d2017f047d3a9e1a9ee30043b271f.1695189879.git.wangchen20@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1695189879.git.wangchen20@iscas.ac.cn> References: <cover.1695189879.git.wangchen20@iscas.ac.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 23:40:01 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777546058008614285 X-GMAIL-MSGID: 1777548223268705268 |
Series |
Add Milk-V Pioneer RISC-V board support
|
|
Commit Message
Chen Wang
Sept. 20, 2023, 6:39 a.m. UTC
From: Inochi Amaoto <inochiama@outlook.com> Add two new compatible string formatted like `C9xx-clint-xxx` to identify the timer and ipi device separately, and do not allow c900-clint as the fallback to avoid conflict. Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn> --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)
Comments
On Wed, Sep 20, 2023 at 02:39:39PM +0800, Chen Wang wrote: > From: Inochi Amaoto <inochiama@outlook.com> > > Add two new compatible string formatted like `C9xx-clint-xxx` to identify > the timer and ipi device separately, and do not allow c900-clint as the > fallback to avoid conflict. > > Signed-off-by: Inochi Amaoto <inochiama@outlook.com> > Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn> Have you ignored Krzysztof's comments on this? I don't see a response or a reaction to his comments about the compatibles on the last version. Additionally, where is the user for these? I don't see any drivers that actually make use of these. Why do you need to have 2 compatibles (and therefore 2 devices) for the clint? I thought the clint was a single device, of which the mtimer and mswi bits were just "features"? Having split register ranges isn't a reason to have two compatibles, so I must be missing something here... Thanks, Conor. > --- > Documentation/devicetree/bindings/timer/sifive,clint.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index a0185e15a42f..ae69696c5c75 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -39,6 +39,14 @@ properties: > - allwinner,sun20i-d1-clint > - thead,th1520-clint > - const: thead,c900-clint > + - items: > + - enum: > + - sophgo,sg2042-clint-mtimer > + - const: thead,c900-clint-mtimer > + - items: > + - enum: > + - sophgo,sg2042-clint-mswi > + - const: thead,c900-clint-mswi > - items: > - const: sifive,clint0 > - const: riscv,clint0 > -- > 2.25.1 >
>On Wed, Sep 20, 2023 at 02:39:39PM +0800, Chen Wang wrote: >> From: Inochi Amaoto <inochiama@outlook.com> >> >> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >> the timer and ipi device separately, and do not allow c900-clint as the >> fallback to avoid conflict. >> >> Signed-off-by: Inochi Amaoto <inochiama@outlook.com> >> Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn> > >Have you ignored Krzysztof's comments on this? I don't see a response or >a reaction to his comments about the compatibles on the last version. >Additionally, where is the user for these? I don't see any drivers that >actually make use of these. > Sorry for late reply and wrong message-id. The clint is parsed by sbi. As use the same compatible, the opensbi will parse the device twice. This will cause a fault. >Why do you need to have 2 compatibles (and therefore 2 devices) for the >clint? I thought the clint was a single device, of which the mtimer and >mswi bits were just "features"? Having split register ranges isn't a >reason to have two compatibles, so I must be missing something here... > >Thanks, >Conor. > Sorry for late reply, The clint consists of mtimer and ipi devices, which is defined in [1]. This standard shows clint(or the aclint) has two device, but not one. In another word, there is no need to defined mtimer and ipi device on the same base address. So we need two compatibles to allow sbi to identify them correctly. [1] https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc >> --- >> Documentation/devicetree/bindings/timer/sifive,clint.yaml | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >> index a0185e15a42f..ae69696c5c75 100644 >> --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml >> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >> @@ -39,6 +39,14 @@ properties: >> - allwinner,sun20i-d1-clint >> - thead,th1520-clint >> - const: thead,c900-clint >> + - items: >> + - enum: >> + - sophgo,sg2042-clint-mtimer >> + - const: thead,c900-clint-mtimer >> + - items: >> + - enum: >> + - sophgo,sg2042-clint-mswi >> + - const: thead,c900-clint-mswi >> - items: >> - const: sifive,clint0 >> - const: riscv,clint0 >> -- >> 2.25.1 >> >
On 20/09/2023 08:39, Chen Wang wrote: > From: Inochi Amaoto <inochiama@outlook.com> > > Add two new compatible string formatted like `C9xx-clint-xxx` to identify > the timer and ipi device separately, and do not allow c900-clint as the Why? You received comment about it, so please provide proper explanation in the commit msg. Same device does not get two different compatibles. You also did not respond to my comments, so you basically ignored it and send the same. NAK Best regards, Krzysztof
>On 20/09/2023 08:39, Chen Wang wrote: >> From: Inochi Amaoto <inochiama@outlook.com> >> >> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >> the timer and ipi device separately, and do not allow c900-clint as the > >Why? > If use the same compatible, SBI will process this twice in both ipi and timer, use different compatible will allow SBI to treat these as different. AFAIK, the aclint in SBI use the same concepts, which make hard to use the second register range. I have explained in another response. https://lore.kernel.org/all/IA1PR20MB495313B7E9B2FC529BE0BB2ABBF9A@IA1PR20MB4953.namprd20.prod.outlook.com/ >You received comment about it, so please provide proper explanation in >the commit msg. > >Same device does not get two different compatibles. > >You also did not respond to my comments, so you basically ignored it and >send the same. > >NAK > >Best regards, >Krzysztof > Sorry for this, as I mistake the idea of the last message. All of this will be fixed in the next patch.
On 20/09/2023 14:15, Inochi Amaoto wrote: >> On 20/09/2023 08:39, Chen Wang wrote: >>> From: Inochi Amaoto <inochiama@outlook.com> >>> >>> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >>> the timer and ipi device separately, and do not allow c900-clint as the >> >> Why? >> > > If use the same compatible, SBI will process this twice in both ipi and > timer, use different compatible will allow SBI to treat these as different. > AFAIK, the aclint in SBI use the same concepts, which make hard to use the > second register range. I have explained in another response. What is a SBI? Linux driver? If so, why some intermediate Linux driver choice should affect bindings? Best regards, Krzysztof
>On 20/09/2023 14:15, Inochi Amaoto wrote: >>> On 20/09/2023 08:39, Chen Wang wrote: >>>> From: Inochi Amaoto <inochiama@outlook.com> >>>> >>>> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >>>> the timer and ipi device separately, and do not allow c900-clint as the >>> >>> Why? >>> >> >> If use the same compatible, SBI will process this twice in both ipi and >> timer, use different compatible will allow SBI to treat these as different. >> AFAIK, the aclint in SBI use the same concepts, which make hard to use the >> second register range. I have explained in another response. > >What is a SBI? Linux driver? If so, why some intermediate Linux driver >choice should affect bindings? >Best regards, >Krzysztof > SBI (Supervisor Binary Interface) is defined by riscv, which is an interface between the Supervisor Execution Environment (SEE) and the supervisor. The detailed documentation can be found in [1]. The implement of SBI needs fdt info of the platform, which is provided by kernel. So we need a dt-bindings for these devices, and these will be processed by SBI. [1] https://github.com/riscv-non-isa/riscv-sbi-doc
On 20/09/2023 14:58, Conor Dooley wrote: > On Wed, Sep 20, 2023 at 08:40:07PM +0800, Inochi Amaoto wrote: >>> On 20/09/2023 14:15, Inochi Amaoto wrote: >>>>> On 20/09/2023 08:39, Chen Wang wrote: >>>>>> From: Inochi Amaoto <inochiama@outlook.com> >>>>>> >>>>>> Add two new compatible string formatted like `C9xx-clint-xxx` to identify >>>>>> the timer and ipi device separately, and do not allow c900-clint as the >>>>> >>>>> Why? >>>>> >>>> >>>> If use the same compatible, SBI will process this twice in both ipi and >>>> timer, use different compatible will allow SBI to treat these as different. >>>> AFAIK, the aclint in SBI use the same concepts, which make hard to use the >>>> second register range. I have explained in another response. >>> >>> What is a SBI? Linux driver? If so, why some intermediate Linux driver >>> choice should affect bindings? >>> Best regards, >>> Krzysztof >>> >> >> SBI (Supervisor Binary Interface) is defined by riscv, which is an interface >> between the Supervisor Execution Environment (SEE) and the supervisor. The >> detailed documentation can be found in [1]. >> >> The implement of SBI needs fdt info of the platform, which is provided by >> kernel. So we need a dt-bindings for these devices, and these will be >> processed by SBI. >> >> [1] https://github.com/riscv-non-isa/riscv-sbi-doc > > Yeah, this is the unfortunate problem of half-baked bindings (IMO) > ending up in OpenSBI (which likely means they also ended up in QEMU). > This T-Head stuff is coming across our (metaphorical) desks, so we are > obviously going to try to do things correctly. I may end up speaking to > Anup later today, if I do I will point him at this thread (if he hasn't > seen it already). If the OpenSBI started to work with some half-baked-bindings before proper review, it's their loss. If we do not push back on such stuff, how our review can ever matter? Anyway, firmware/SBI/whatever parsing compatible twice is not really a reason to model same thing with two different compatibles. Assuming of course this is the same thing. Best regards, Krzysztof
On Wed, Sep 20, 2023 at 6:28 PM Conor Dooley <conor@kernel.org> wrote: > > On Wed, Sep 20, 2023 at 08:40:07PM +0800, Inochi Amaoto wrote: > > >On 20/09/2023 14:15, Inochi Amaoto wrote: > > >>> On 20/09/2023 08:39, Chen Wang wrote: > > >>>> From: Inochi Amaoto <inochiama@outlook.com> > > >>>> > > >>>> Add two new compatible string formatted like `C9xx-clint-xxx` to identify > > >>>> the timer and ipi device separately, and do not allow c900-clint as the > > >>> > > >>> Why? > > >>> > > >> > > >> If use the same compatible, SBI will process this twice in both ipi and > > >> timer, use different compatible will allow SBI to treat these as different. > > >> AFAIK, the aclint in SBI use the same concepts, which make hard to use the > > >> second register range. I have explained in another response. > > > > > >What is a SBI? Linux driver? If so, why some intermediate Linux driver > > >choice should affect bindings? > > >Best regards, > > >Krzysztof > > > > > > > SBI (Supervisor Binary Interface) is defined by riscv, which is an interface > > between the Supervisor Execution Environment (SEE) and the supervisor. The > > detailed documentation can be found in [1]. > > > > The implement of SBI needs fdt info of the platform, which is provided by > > kernel. So we need a dt-bindings for these devices, and these will be > > processed by SBI. > > > > [1] https://github.com/riscv-non-isa/riscv-sbi-doc > > Yeah, this is the unfortunate problem of half-baked bindings (IMO) > ending up in OpenSBI (which likely means they also ended up in QEMU). > This T-Head stuff is coming across our (metaphorical) desks, so we are > obviously going to try to do things correctly. I may end up speaking to > Anup later today, if I do I will point him at this thread (if he hasn't > seen it already). RISC-V ACLINT is one of those unfortunate non-ISA specs (like SiFive PLIC) which is implemented by various organizations but not officially ratified by RVI. The SiFive CLINT has flexibility related limitations which makes it not useful for multi-socket and mult-die systems. The SiFive CLINT is also not useful for systems with AIA because with AIA M-mode has a new way of doing M-mode IPIs. Due to this reasons, the RISC-V ACLINT spec breaks down traditional SiFive CLINT into two separate devices namely mtimer and mswi. This allows platforms to implement only the required set of devices. The mtimer as defined by the ACLINT specifications also allows platforms to place mtime and mtimecmp registers at different locations. Refer, https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc We need a separate DT bindings document for ACLINT MTIMER and ACLINT MSWI because these are separate devices. The Sophgo sg2042 SoC should add their implementation specific compatible strings in this document. Regards, Anup
diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index a0185e15a42f..ae69696c5c75 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -39,6 +39,14 @@ properties: - allwinner,sun20i-d1-clint - thead,th1520-clint - const: thead,c900-clint + - items: + - enum: + - sophgo,sg2042-clint-mtimer + - const: thead,c900-clint-mtimer + - items: + - enum: + - sophgo,sg2042-clint-mswi + - const: thead,c900-clint-mswi - items: - const: sifive,clint0 - const: riscv,clint0