Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2528248rdb; Fri, 22 Sep 2023 00:51:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzbdPc3yXbx9KJctrItLz9u9toUAjJLKlGjcNbmq618stuc+qW8+EVgSc0kS9rbyd2ldtK X-Received: by 2002:a05:6a20:6a0d:b0:f0:50c4:4c43 with SMTP id p13-20020a056a206a0d00b000f050c44c43mr2875532pzk.5.1695369070602; Fri, 22 Sep 2023 00:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695369070; cv=none; d=google.com; s=arc-20160816; b=qCQOE7mAz8Kuk+UdsRBVUwryK6/NYXVt/NynXG6A61SZar3m0b4O4TtXbcr1JoB42x ciZzrD/Ag+Qm9EKUtMYBipJY1pYtIUBAZLE1eJBsuJDv+HQwe8gEZt3vfySmOVRFukJe 0dsjjq9+PTHjJfP8Av9GPM7BVH9iHwInXM4wt5RMjpLPr3zNE35FbJCgxYb7lVHlo0b1 xfOVX3gD4ynO/U4PdeJMrsN0yIIOokMATHSUH0Jljpa+/q3LMHiwVK9C4ZRuNbAWhsgi JDOpivmuyqrgNvssYNF8VaaRJGW3O15HxnErWXx75XyOnZYjseEx/VCnYPT4B5EcSKji BtDg== 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=6tDdJhC5FZTkZ44FitxejpeH8ROnFdmLxtwON7CZxos=; fh=2tk3lrOyd41c44mgl4Cl8YCzXSCkCQQw4e5V4o3zspQ=; b=ynJ5J2e4tMVqSEXBtgX5ClQF4JjisTRkPzcxINqlNOYL0kwHQfOSvcUaeqfNKSVufa RfPuvDJp9VmSk4McjBYfd3OJ171jSF1URwex26XSQjyuGWmYhAkPFCURUwzEiQl2yIju RB3CdzVrtc3qdY7GrD6wmHXuxBNo4ADom6DlVuGJ+wshEmtF+MTbgqhC9QktVaEXV/SI zS+Mh3El4jUMwgLNnMSspAJ9lrAvQnx+OiVg+GkuEVvuiDSLazojUn6Yg80jmOQgtJr0 F57zjnJTj/EWwG4UAKshX2aqktlzuEYjooZbV5cUUrQjmrkDO2eVRxq22Z9K2bpQ5ymf Xz/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gHCcR7ue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o8-20020a056a001bc800b00690d02ac9acsi3174698pfw.77.2023.09.22.00.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 00:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gHCcR7ue; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id B1A8A83FF761; Fri, 22 Sep 2023 00:45:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231724AbjIVHpS (ORCPT + 99 others); Fri, 22 Sep 2023 03:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbjIVHo7 (ORCPT ); Fri, 22 Sep 2023 03:44:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0E14E75; Fri, 22 Sep 2023 00:43:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE3F9C433C9; Fri, 22 Sep 2023 07:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695368615; bh=6tDdJhC5FZTkZ44FitxejpeH8ROnFdmLxtwON7CZxos=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gHCcR7uevrEt/tblgFyS8s6RWTN+evtBWD9f41ZMQtTiZRu+rMDyhF69JZWibazdb JVJg2Pju6Hn948H42DNwQO14rVloH63//0+P2JkiaRRSgS/hiZ1ncTjS+mtqm5IvQl cdTRq9/bW6t+skQeZZBWqL38+eppuIKtbmaL5DK+nQBBt6NPc60y4NPh5nyyV/3CGw o4jKhBXlLPzhYw+O1geUbIltuM+Z/06YBO9nIS90CBKbpFBOEGSgNRyKHsAf+rzc09 HsuclSjEKPPaIk2mtSaPJTCkOOUahz3IsQMFjD/1jNhSHnAkXd1bFEFYG8UfoRaM9x BryNMs7nbBblw== Date: Fri, 22 Sep 2023 08:43:29 +0100 From: Conor Dooley To: Inochi Amaoto Cc: Anup Patel , Krzysztof Kozlowski , aou@eecs.berkeley.edu, chao.wei@sophgo.com, evicetree@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, Chen Wang Subject: Re: [PATCH v2 06/11] dt-bindings: timer: Add Sophgo sg2042 clint Message-ID: <20230922-thumb-galvanize-bef393a1bda4@spud> References: <20230920-992a56b66366f3c0591a6a94@fedora> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WhczGDiSuZFNERlK" 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 22 Sep 2023 00:45:57 -0700 (PDT) --WhczGDiSuZFNERlK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 22, 2023 at 01:16:35PM +0800, Inochi Amaoto wrote: > >> 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.ad= oc > >> > >> 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. > > > >If the spec isn't frozen, I'm not accepting a binding for the "generic" > >version of it. Bindings for this specific implemtnation are okay. > >For sure though, squeezing this into the sifive,plic binding isn't > >appropriate. > > >=20 > It seems I have missed a point. I wonder whether it is better to add a > "aclint" binding firstly and then add sg2042 to it, or just use sg2042 > specific binding? sg2042 specific, being frozen is a requirement for merging patches related to RVI specifications. > If use "aclint" binding, I wonder it is OK to add > thead quirks as compatible specific properties, or left this to the SBI to > handle? e.g. T-HEAD timer is not 64bit timer, and we should identify this. The compatible string alone should be sufficient to identify the width of the timer etc. Thanks, Conor. --WhczGDiSuZFNERlK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQ1FoQAKCRB4tDGHoIJi 0iryAP9MnKwWi0NmDf7v8Kg2LJZpGsuhw2tAXlM69r9GgbrWZAD/aO3LLbNs7KmQ 32cKVwtSC7/7GIBcbTW9a81enmp4VQ8= =mBQ0 -----END PGP SIGNATURE----- --WhczGDiSuZFNERlK--