Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1359160rdb; Wed, 20 Sep 2023 07:10:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIhdz+b2qAadcfg7jofDK+/8ZR27aZCku2t5KBjqKqsWEG5P5YuCCaVIg/g1ark/zrapJ8 X-Received: by 2002:a17:90b:1c0d:b0:271:80f2:52bd with SMTP id oc13-20020a17090b1c0d00b0027180f252bdmr2399823pjb.35.1695219008156; Wed, 20 Sep 2023 07:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695219008; cv=none; d=google.com; s=arc-20160816; b=HVNIrzJCum0EhISLnys0+bcbZUbNFfwLbB0yF4jWrC/1AcBayEDWcf7JgpCKSFqb5N fKzUhxpTQQGYGJnZx/id7HkApISOUePS4IOmrKiy7abK9ef/nVHEcfV22ekCYYFo9Xx6 p/g/s/k5wAGca2DBYDJaaFuUgIt+EBDulMJFr4DxApovMgG4xG6KEJgGqQt/qB6Nnol+ mBfkYQdXArM2DN5ZvZ60NWr6w6tnlwrCiQ9xdyzYIBWmgn7cJMUkD0hiCF0lOPj1mP10 d0/pTNmR9y4WnoooILLdisni3+dG0+uKvPcRyTwz/eqoGgD2r5PF7JAyIHJZEycikP6B VKvQ== 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=JEcE762TPALh3A2MTMmeFILTtcz7SC6kjuHzb4W9xBE=; fh=BqR9OWaj9j+2+gkTR2uYplctSUy4nP+nBrKeKWRLXK4=; b=medCmKUVSdtopBbB9fD0J30jnkg1nOTOslH2acFsLtJj+Oh+hATB/4O3qsJbVW0uL9 N1+Uy1MDiF6RrOs99aTxXwn09NHWr3CMTiMJ/7tU4Awgu0c3bxzRlnaf2h5ks4HIbQ+l 4L43fPFzeaqjTG28k1isFzDkcAt5/dvYGxcsCaeu5B+SiDSgvAyKga+3aJDbtF4i/mCZ adlU4pEZWvAO98gmidbvbTZkzqh0cfjTBzQ+v/7AlDle7c8HyfuqM63Ia8IhqHjXlCTD cTDpFV0uCVkjrWwjP2xtM9ktwbracNEBeMoh2DqunWHtyhTGHORvMQFlrxxyDsb6BISo Z2SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YWIIorXF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id mz3-20020a17090b378300b002680b23aff7si1594342pjb.161.2023.09.20.07.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YWIIorXF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id D5ECE81BB3FE; Wed, 20 Sep 2023 05:58:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235831AbjITM6j (ORCPT + 99 others); Wed, 20 Sep 2023 08:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235699AbjITM6e (ORCPT ); Wed, 20 Sep 2023 08:58:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1569AE4; Wed, 20 Sep 2023 05:58:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 833C0C43395; Wed, 20 Sep 2023 12:58:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695214707; bh=JEcE762TPALh3A2MTMmeFILTtcz7SC6kjuHzb4W9xBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YWIIorXFUwbp4n1PIUTjm8jETvlYxVQNNtidWIl9OCuFKTnimuDLKXetpPjVxyyL/ 1os2BKYSTsRnAgAxiFH4rfWxZ3gDKKRVjvVw2lhzMV4s4bdfoU05XBIEMaip91LbNr J7iNPzDxU6FXqQAYeun6sjlWZGXCz/WjE+vRqsj1tgBCR4xq/ZrMgsoIgXGkH+zBam 2D/hPRhENvAtkAiyy1VCfh+8Z4BFqG1GB41T13I7UUtcsX6+r6XTYQ6jFqKSiSPTqH SrEJun/lBf+9ylKUR9jcfBfRfeXs1GfNMo6pG4yICwc8NtGX9jqjj1J9rcddaam51h ZXQLqdwP+24Tw== Date: Wed, 20 Sep 2023 13:58:21 +0100 From: Conor Dooley To: Inochi Amaoto Cc: 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: <20230920-8503c6365655d3ef3dadfd53@fedora> References: <66b988f0-39fc-2ed3-8f38-151d6a3c9e52@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uwbkuouaUi9cdxhL" 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 05:58:51 -0700 (PDT) --uwbkuouaUi9cdxhL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > >>>> > >>>> Add two new compatible string formatted like `C9xx-clint-xxx` to ide= ntify > >>>> 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 diffe= rent. > >> 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 > > >=20 > SBI (Supervisor Binary Interface) is defined by riscv, which is an interf= ace > between the Supervisor Execution Environment (SEE) and the supervisor. The > detailed documentation can be found in [1]. >=20 > 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. >=20 > [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). --uwbkuouaUi9cdxhL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQrsaQAKCRB4tDGHoIJi 0gYFAP4j2wdTtFTv0vOJOXuZqtSvyvpNj8FZ4JrRTM69BgGsVQD+J4NLAm5BLqkT GTQ6s+Dy7mcY2pMniUqr/VphB228SwA= =fsWb -----END PGP SIGNATURE----- --uwbkuouaUi9cdxhL--