Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4635914rwr; Mon, 8 May 2023 10:18:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ44SsUeQK4adQgniUsnl4zhu7oL3jaBXBErkwyRsoC+W6DiQuXzt/ju4WuKIrt2nX8wkZu5 X-Received: by 2002:a17:902:7881:b0:1a9:6183:f965 with SMTP id q1-20020a170902788100b001a96183f965mr9732276pll.60.1683566331387; Mon, 08 May 2023 10:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683566331; cv=none; d=google.com; s=arc-20160816; b=jhUv1DH8xozHot+FblX3XBcDBZBxJ3yF4ft36IN8Wxhk7gLoroP0u2PF2V8MmZAZC9 mWGil4G8f5LF3nUf/v/cZ9VfnDD11F2vZ95B04jm8FyTRBC+4TAKXxt1EWwp1Re21CkI uqBvxQ2rmfmZ9UloFfquzCogtiTb9GnS1lJzXTGrHx566DAZ3eROzdTXqOydrlJBZWU3 SYMlOc16z6Ck+TVLTWrF/nr9G/EMYnCH4jRt8UZMGHUdtgm1zzNP8ZbMIcojSpoSufQS TG6IeitlLzYx5X4mAxWuvZyxx92LgnAB9e4ZMGSIIak50x7DwfQnUyl8DJWXw7TKHay8 9pEA== 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; bh=AdQNlpcZ4OJuWCFtSGwhU2k7EQdR/GJjDKHKRHZ2ml4=; b=HcETLocIFXiZVwjpD0glnojU4j9U3XkB+mPcg90eaQ/7UjATcQz7fsO6QLKflDxU7S tUsjIWOcjxac798y+7onBSLN/5uyhQyc+e9DGtptebZRE/DlQRERJLw5zNeoqDmN4x3U KTHXluY66hTrNaWVIjXL+C39yMvJDDDflpbfj0g7r0h6IXuh0892EVhZGr6zfnrguBbb t3S5zSBio+5rQlE/PL/AIz9T6EdQsknxtwunM98SrwSoTLRue64B2nvUn3gjGJe7syd8 uAd8N/mVSPIsNndf1WjAMxjzFbRvgNyzH+P/YK+CRhS6FPx/7y7rM5LX+2VZXyj6RF42 s/kQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170902e5d100b001a8102f5d7fsi9125395plf.504.2023.05.08.10.18.09; Mon, 08 May 2023 10:18:51 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232717AbjEHRJ3 (ORCPT + 99 others); Mon, 8 May 2023 13:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjEHRJ1 (ORCPT ); Mon, 8 May 2023 13:09:27 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D48D83; Mon, 8 May 2023 10:09:25 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pw4MT-0006Oq-Gq; Mon, 08 May 2023 19:09:21 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Jisheng Zhang , Conor Dooley Cc: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Subject: Re: [PATCH 3/5] riscv: dts: add initial T-HEAD light SoC device tree Date: Mon, 08 May 2023 19:09:20 +0200 Message-ID: <2344188.NG923GbCHz@diego> In-Reply-To: <20230508-unmoved-unvocal-9a6c5fc0c629@spud> References: <20230507182304.2934-1-jszhang@kernel.org> <20230508-unmoved-unvocal-9a6c5fc0c629@spud> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham 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 Am Montag, 8. Mai 2023, 18:44:04 CEST schrieb Conor Dooley: > On Tue, May 09, 2023 at 12:26:10AM +0800, Jisheng Zhang wrote: > > On Sun, May 07, 2023 at 10:35:12PM +0100, Conor Dooley wrote: > > > On Mon, May 08, 2023 at 02:23:02AM +0800, Jisheng Zhang wrote: > > > > > > > + c910_0: cpu@0 { > > > > + compatible = "thead,c910", "riscv"; > > > > + device_type = "cpu"; > > > > + riscv,isa = "rv64imafdc"; > > > > > > Does this support more than "rv64imafdc"? > > > I assume there's some _xtheadfoo extensions that it does support, > > > although I am not sure how we are proceeding with those - Heiko might > > > have a more nuanced take. > > > > > > > + reset: reset-sample { > > > > + compatible = "thead,reset-sample"; > > > > > > What is a "reset-sample"? > > > > This node is only for opensbi. The compatible string is already in > > opensbi. Do we also need to add dt-binding for it in linux? > > If it's to be included in the kernel's dts, then yes, you do need a > dt-binding. If you remove it, then you don't :) > > That said, "thead,reset-sample" is a strangely named compatible, so if > you do keep it it may end up needing a rename! and you'll need to justify that this describes actual hardware (dt-maintainers iterate all the time that dt is a hardware description, not a configuration scheme). The question also would be if this is part of upstream opensbi at all. In general though, openSBI does something similar with their perf-counter description. Describing the mapping and eventids usable in which counter via a structure passed from u-boot to openSBI. The difference here is, that openSBI then removes the relevant nodes from the dt, so that the kernel never sees them [0] . As you reset-sample seems to fall into a similar category, I guess it would be better suited in an a foo-u-boot.dtsi ? [0] https://github.com/riscv-software-src/opensbi/blob/master/lib/utils/fdt/fdt_pmu.c#L42