Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp347699rdb; Fri, 6 Oct 2023 05:33:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJkw7CcKzc5kYWwHutD3FbP3gkn2PphG6UMAXrKiDgy67b63ZJ6ajfD5UXq1ASAiCJhU8x X-Received: by 2002:a17:90a:de85:b0:268:1068:4464 with SMTP id n5-20020a17090ade8500b0026810684464mr7728665pjv.30.1696595612647; Fri, 06 Oct 2023 05:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696595612; cv=none; d=google.com; s=arc-20160816; b=qnCqmxyxDyDaGn4LOmDU1V8rS4QExTajl+C3CF/PJi3UPfR/Vk4DGubBMtdUxThxjl Es/s4MlBZzvqFJGsdN+DLlShnotQC6eQBKM5d2ZZ+YgGE0UE06N29QuwWn3F0BIcBkkB uEO1GeALGGj873yNTp60P4/vo6YnEOd4QhlA4nKXQWXEGIayxweCTK10obkm59IABaGn d0KqZrq66jmxxOzzsRcDKvCnOHZHWnvDbs+bRGbqT9OFV45ahE4TNSfeW0pZRrOKvec7 iaX+7mMniM9EeImwv/iLU4HLbP8qoZkzyOiunfk3HK4WLIOGxyBaiCqqdAMrpWX+vNEL OXEQ== 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=YDklcv7XJFD0prfJ+yvdeU2xWMZhM0KF6dM0sCwJz1M=; fh=nk6M8A+nmviFVtjkVLDpc1kN799H4rYC4EIP8DlXU2M=; b=snibQjKoHH4DU1LrYEI60MPYTOWnlep8+tFNJ4oFsz9eOLujagH4OOvQsuoTRELnfd Y1OuSaWBfjAyRAjQ020LnIJfHUuMCNuR58GFswKLMOQtHv+DDRVslsTfs66yZbn+8bh/ PlGuw0hvnPeMyjdd7rL+lTmOh3ROG7O14MMCHdajhf3wQrLD1b3FLEvnGM/XxP2qZ1Z6 /jrwao5Q2C4nFGe+YavqHeQ8yF5dXZy0i4sVxi1WOQNC+6cGfk3FdX+4Iyy298Tk9orf FY2J2P+aEifNvwmzlgANVDDYCxwA3HmbrJeFbj385jCQli5ALkhu8HKVggi9aBeKltKi imdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FgybpyT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y7-20020a17090ad70700b002680e08a877si5779130pju.186.2023.10.06.05.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 05:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FgybpyT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A625380A914B; Fri, 6 Oct 2023 05:33:29 -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 S231766AbjJFMdX (ORCPT + 99 others); Fri, 6 Oct 2023 08:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjJFMdW (ORCPT ); Fri, 6 Oct 2023 08:33:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0956ECE for ; Fri, 6 Oct 2023 05:33:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7923DC433C7; Fri, 6 Oct 2023 12:33:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696595599; bh=kaiiRDqph/9/dNfSPDM1f2ksRyqa+Xp41z4ukvjjt7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FgybpyT9S78ECB5xM7ySYBUNt1IURI8e61hnxc3sraXfwIGf5mAyJiQkxEpV88wBT tRmt3Kc/yxWN8U7TyN7jhn5GImY+Ww6xRl5cV+kf+mzhLuSv6QC9rMnOgL3L4nHV74 Gt6cwPlWo1BjJ/rzWZCqv3a0r2p7tMW4OoEuj8Cx+fVnI+uJYjFvdcbSGmG5jHunxU f/LpdwMIuMdIUKVsC8fZVBgzHL6zC8IkntP4kdgbTOsuFsw5U1Q2RJFCPrkLORondq C2rXbvhRjAriCd/OlD6MLROitNlWV2kOidzGhgazz2byw7eXw6cKwZchftqk0UZ3n6 VzylQjTR1Ylcw== Date: Fri, 6 Oct 2023 20:21:09 +0800 From: Jisheng Zhang To: Conor Dooley Cc: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Daniel Lezcano , Anup Patel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Inochi Amaoto , chao.wei@sophgo.com, xiaoguang.xing@sophgo.com Subject: Re: [PATCH 4/5] riscv: dts: sophgo: add initial CV1800B SoC device tree Message-ID: References: <20230930123937.1551-1-jszhang@kernel.org> <20230930123937.1551-5-jszhang@kernel.org> <20231002-pessimism-sycamore-a854a098cf43@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231002-pessimism-sycamore-a854a098cf43@spud> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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: 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]); Fri, 06 Oct 2023 05:33:29 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 02, 2023 at 01:09:38PM +0100, Conor Dooley wrote: > On Sat, Sep 30, 2023 at 08:39:36PM +0800, Jisheng Zhang wrote: > > Add initial device tree for the CV1800B RISC-V SoC by SOPHGO. > > > > Signed-off-by: Jisheng Zhang > > --- > > arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 117 ++++++++++++++++++++++++ > > 1 file changed, 117 insertions(+) > > create mode 100644 arch/riscv/boot/dts/sophgo/cv1800b.dtsi > > > > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > > new file mode 100644 > > index 000000000000..8829bebaa017 > > --- /dev/null > > +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > > @@ -0,0 +1,117 @@ > > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > > +/* > > + * Copyright (C) 2023 Jisheng Zhang > > + */ > > + > > +#include > > + > > +/ { > > + compatible = "sophgo,cv1800b"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + cpus: cpus { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + timebase-frequency = <25000000>; > > + > > + cpu0: cpu@0 { > > + compatible = "thead,c906", "riscv"; > > + device_type = "cpu"; > > + reg = <0>; > > + d-cache-block-size = <64>; > > + d-cache-sets = <512>; > > + d-cache-size = <65536>; > > + i-cache-block-size = <64>; > > + i-cache-sets = <128>; > > + i-cache-size = <32768>; > > + mmu-type = "riscv,sv39"; > > + riscv,isa = "rv64imafdc"; > > + riscv,isa-base = "rv64i"; > > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr", > > + "zifencei", "zihpm"; > > + > > + cpu0_intc: interrupt-controller { > > + compatible = "riscv,cpu-intc"; > > + interrupt-controller; > > + #address-cells = <0>; > > + #interrupt-cells = <1>; > > + }; > > + }; > > + }; > > + > > + osc: oscillator { > > + compatible = "fixed-clock"; > > + clock-output-names = "osc_25m"; > > + #clock-cells = <0>; > > + }; > > Is this a stub that will later be replaced by a real clock controller > node, or is this actually a fixed oscillator? If it is the former, could Hi Conor, This is a real 25MHZ oscillator. Thanks