Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1266132rdb; Wed, 20 Sep 2023 04:43:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKJBs0qgIlaKwuEDUPVg/zMrNKDrTGWAjPQ+NA0eqypIzrTTqsXZ/HU+ZI6XosPk0IN+Gt X-Received: by 2002:a05:6358:341c:b0:143:36f:95ec with SMTP id h28-20020a056358341c00b00143036f95ecmr2700466rwd.14.1695210194886; Wed, 20 Sep 2023 04:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695210194; cv=none; d=google.com; s=arc-20160816; b=E4208DM3bl6TNR6r4vb/wVEjXnBH+UyjBdoObCJq0qZlsy2CQbmeiiIA/vtaCQg0tn urnLkmsLYFsbcP5/Hzmzm2dMdGNOdx/FIjcQgr/SrJD340sYKfr4mOmeuZmIytkfeK3w G6u/T6vL4L5/QO6tBrmFMAlA0Uuvs7sMz2KIB4sDG7AQO6sLAQgDQo4iaxyLxWBkRj4V 09v8RIgvtv9d3uv9eLngYM1f+zATKiWVzGeM50o9gdGJ7zwelSYDiwchbVT5c86b6GOx sNKvsmWsJOkT1YnvSlJb0EiP62Fjtxvr9w2g8+r2a3Tvb/ExCy78ccOQV+N8PPa7PRXu H9vg== 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=pCHAkoC7iTIfYRGGl2R2kqgqCNDnvHixzzKplDZfWKg=; fh=RUHr/dwZK2tWQGekPaGLmQAIN3t0PraFjIP9cFozEW4=; b=fZRDBu1hKzqTEL1HqklSU3TlazCV5CC9LKPB9iwn0tuDv2Qpy3kj6vCY7VN7tgSrbE +MtZamDWOG4Y1tPPaWQe+p8DUVl/tSf/MCxpB/pzjt8NOteXxZrnMDNjMjxpnZO8vXRz uPnYt2VfgJK156aKp4jZTtiQu2boOXveV9/uZVurv7FE6yg1apsjFbozXTqIkn4x3yXp zW/Kci+iLT31CunWZ3O48V+k7b/NRko3tYKNKbYvYSVriKvDxdT0Is1bDDRe9B6RoEEQ PZvKQmu4au8C0hjFGThgnUV+ZSZGO/RLdFAsHjsVNtHa9pntsyo8D1jcEOVAVBuWlnQl DnOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=OPmjtkpa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id e5-20020a636905000000b00573f8a53378si11640913pgc.58.2023.09.20.04.43.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:43:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=OPmjtkpa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EE2A880212C0; Wed, 20 Sep 2023 01:58:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233743AbjITI6K (ORCPT + 99 others); Wed, 20 Sep 2023 04:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbjITI6J (ORCPT ); Wed, 20 Sep 2023 04:58:09 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABD56AF; Wed, 20 Sep 2023 01:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1695200283; x=1726736283; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ed1d9cM1BcvoxV6ZxRjorOLdWZ1sqA4oBf0iYlijwgQ=; b=OPmjtkpaMz36YFQPmlXDf0miST4x+5AiKMWK6g49OAc6tVGCZFpLJg7R 4gxX/f50nWOri7Fr1SyJhsTSHPV1Ht9BLKAoamkCUriKSY/UdMrXp0rSP wb9qAkuPRImYqrvSptlo3iMpOBKA3uNUi9NhP+53PnOqcRwYrr98eLVt3 HyUAQRqAA8mnLYRgZYKKcPeN53cX08SaVZRr/ylYhSH/lKiXTD3uiRw1b hcJh/PDkmsmGgHSLrvx3aRMPe00/DWzN6rTGgU3KoBBpVewbqGYU8Oy1Y IOl3U6sFoqgr1fiIHFgG+nkmLoWXHGRieXyVgmmX33Diu4H3V/N/JbKCr A==; X-CSE-ConnectionGUID: R1yzmRi2QEWRsOAKowPHkA== X-CSE-MsgGUID: 5+C1f7NjS82xAa2HU/yskA== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="asc'?scan'208";a="5617987" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Sep 2023 01:58:02 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 20 Sep 2023 01:57:29 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 20 Sep 2023 01:57:26 -0700 Date: Wed, 20 Sep 2023 09:57:09 +0100 From: Conor Dooley To: Chen Wang CC: , , , , , , , , , , , , , , Chen Wang , Inochi Amaoto Subject: Re: [PATCH v2 09/11] riscv: dts: add initial SOPHGO SG2042 SoC device tree Message-ID: <20230920-financial-declared-7b4b4baae517@wendy> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZOXOKx9qGwNBd5Ai" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 20 Sep 2023 01:58:11 -0700 (PDT) --ZOXOKx9qGwNBd5Ai Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yo, On Wed, Sep 20, 2023 at 02:40:32PM +0800, Chen Wang wrote: > Milk-V Pioneer motherboard is powered by SOPHON's SG2042. >=20 > SG2042 is server grade chip with high performance, low power > consumption and high data throughput. > Key features: > - 64 RISC-V cpu cores which implements IMAFDC That's not quite true though, is it? > - 4 cores per cluster, 16 clusters on chip > - ...... What's a "....."? ;) >=20 > More info is available at [1]. >=20 > [1]: https://en.sophgo.com/product/introduce/sg2042.html Link: please. > Currently only support booting into console with only uart, > other features will be added soon later. >=20 > Acked-by: Xiaoguang Xing > Signed-off-by: Xiaoguang Xing > Signed-off-by: Inochi Amaoto > Signed-off-by: Emil Renner Berthing > Signed-off-by: Chen Wang There are 4 sign-offs here. Surely some of these should be co-developed-bys? > + cpu0: cpu@0 { > + compatible =3D "thead,c920", "riscv"; > + device_type =3D "cpu"; > + riscv,isa =3D "rv64imafdc"; Please also add riscv,isa-base & riscv,isa-extensions. > + reg =3D <0>; > + i-cache-block-size =3D <64>; > + i-cache-size =3D <65536>; > + i-cache-sets =3D <512>; > + d-cache-block-size =3D <64>; > + d-cache-size =3D <65536>; > + d-cache-sets =3D <512>; > + next-level-cache =3D <&l2_cache0>; > + mmu-type =3D "riscv,sv39"; > + > + cpu0_intc: interrupt-controller { > + compatible =3D "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells =3D <1>; > + }; > + }; > diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts= /sophgo/sg2042.dtsi > new file mode 100644 > index 000000000000..747fd9764c95 > --- /dev/null > +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi > @@ -0,0 +1,439 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT You should add () around the GPL-2.0 OR MIT. > +/* > + * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved. > + */ > + > +/dts-v1/; > +#include > + > +#include "sg2042-cpus.dtsi" > + > +#define SOC_PERIPHERAL_IRQ(nr) (nr) Why? What does this do? Where was it copied from? > + > +/ { > + compatible =3D "sophgo,sg2042"; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + dma-noncoherent; > + > + aliases { > + serial0 =3D &uart0; > + }; > + > + /* the mem node will be updated by ZSBL. */ huh? So these are random numbers below? Either put something useful here or delete it please. > + memory@0 { > + device_type =3D "memory"; > + reg =3D <0x00000000 0x00000000 0x00000000 0x00000000>; > + }; > + > + memory@1 { > + device_type =3D "memory"; > + reg =3D <0x00000000 0x00000001 0x00000000 0x00000000>; > + }; > + > + memory@2 { > + device_type =3D "memory"; > + reg =3D <0x00000000 0x00000002 0x00000000 0x00000000>; > + }; > + > + memory@3 { > + device_type =3D "memory"; > + reg =3D <0x00000000 0x00000003 0x00000000 0x00000000>; > + }; > + soc: soc { > + compatible =3D "simple-bus"; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + ranges; > + > + clint_mswi: interrupt-controller@7094000000 { > + compatible =3D "sophgo,sg2042-clint-mswi", "thead,c900-clint-mswi"; > + reg =3D <0x00000070 0x94000000 0x00000000 0x00004000>; & nak to this without further explanation! Thanks, Conor. --ZOXOKx9qGwNBd5Ai Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQqz5QAKCRB4tDGHoIJi 0ntAAQCP/bCm4Ud/m4b/gAZNgI4UwvzEvGzO+vz8teg8pJvQJgEAuiewViY0aMdM BOvZtgLKHwMi7BpWG3Z0sEWR2p7/WA4= =NGiv -----END PGP SIGNATURE----- --ZOXOKx9qGwNBd5Ai--