Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5218486rwl; Wed, 28 Dec 2022 15:05:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXvaBo7p2ncPk1g/fwP3sU590WsQn0Ixj+e0h1GX0fEDogFUCJZzcgL/L1v4aGVhfkegYmmS X-Received: by 2002:a05:6a20:8346:b0:a7:8ce5:6fc6 with SMTP id z6-20020a056a20834600b000a78ce56fc6mr24485416pzc.13.1672268722508; Wed, 28 Dec 2022 15:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672268722; cv=none; d=google.com; s=arc-20160816; b=AC1AIIloNknr4bvX9WDmBSt8otiF2jtX5EwJk6AVNcbUjFux5qhKrbSWkivqQjYaCv 62Zxqkj89hmFDtxkDj7fL/MGdOKr7VrRrwIuljWwUP8QeMNIO/aPo7uktCgLAq7ij+AB Ovf8Oi7UDwYnaCqPrpVXjs0HG9s1G1iGwP2q0GcbeWWtGHra3EpM/PLhMF/Uf1kMk/Wf uYkTy5U+zrUP3s+UM6IDQy5K9s+mvOlAaVb85dQosGfxNDhHT3U6qOT0ZefQIA1RJ/Td 7Wm8txkQtb4U9cGIQaOmlVZM+PpYUt1CfhV6o3A4W24bqrpTsjHU9c9FxN1uR9VhhcYI jHtQ== 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=uqU4p5MyIJDx399itvXQCxk9mOVysQVhvQ8RGnAarBk=; b=lN+mC5PAoMqD7QwgATi5RAxoIIFxYsgh4mWPmDCfZCE61fDezfVS5MpOgKG2lH8rZx PgXIGbQYKwEpU39YnoHKg93nzXZLnVMD2cHJf/IVS8giexHhP5T6eF++tPabe5p/imQd q+/yZqhjbDSYBPBFSyBSFXo9T2lAbCSF2siyO64Ur1md2p9mdrm4hosGQ/AFE3H+GkmJ PJyapaExyczuWEbSXFWnkzhU0dICONTl6sj95VDfo/BhH+ulDK5SlEgvBClvFujzKkW/ QNJnudy21gNAbvg9Xa9qDVXbY6WDh0yHVH293hVSgtswrmCP6VWj65C6+9S7/gmgkJQc LOgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZXpJJnxO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a635351000000b0045466821a09si19308651pgl.371.2022.12.28.15.05.14; Wed, 28 Dec 2022 15:05:22 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZXpJJnxO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbiL1WuB (ORCPT + 63 others); Wed, 28 Dec 2022 17:50:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbiL1Wt7 (ORCPT ); Wed, 28 Dec 2022 17:49:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08AC4140E9; Wed, 28 Dec 2022 14:49:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A184861635; Wed, 28 Dec 2022 22:49:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 903F4C433EF; Wed, 28 Dec 2022 22:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672267798; bh=eKpTMGHSO/ZTiq4eGqbwHQljT2nRfrSmDBVcf8nJCYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZXpJJnxOYfx1zvBUjyx9GEH+2hTVRek2WMdMyP+RQl8OiGWzkwrq5GdTM82ZFyS6e fzVLwa0jK6yhYivq7y4tsnxPKJ9G3FevsX2ZhoyBgeAXEfmkKA67V0839PmTKAUXHC 0AzKeJnExpNBUHdLjcscNXvKSzoSAERPh8vb//oHp3h335yAshQz5+kq3enT1GTTfq aKYlPOOn8EGC8XQ570ilGBn1FVE0KxLoOLPOZN6S7YFtNrPmb4Tnrw4Gnm56qWIVRb NMdTtg07SzUo+xkOWdDthrDKohLeUS7IHPlXnl+ozdVtRAvzm92EIZ2RZkg0ZNEHzo R1viICb+35LbA== Date: Wed, 28 Dec 2022 22:49:52 +0000 From: Conor Dooley To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Ben Dooks , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Stephen Boyd , Michael Turquette , Philipp Zabel , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 7/7] riscv: dts: starfive: Add StarFive JH7110 VisionFive 2 board device tree Message-ID: References: <20221220011247.35560-1-hal.feng@starfivetech.com> <20221220011247.35560-8-hal.feng@starfivetech.com> <94c90f3f-0ca7-7cfb-4d4f-8f90e3300e16@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0TJGFiimdGLWYNPZ" Content-Disposition: inline In-Reply-To: <94c90f3f-0ca7-7cfb-4d4f-8f90e3300e16@starfivetech.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --0TJGFiimdGLWYNPZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 23, 2022 at 11:12:34AM +0800, Hal Feng wrote: > On Tue, 20 Dec 2022 21:26:07 +0000, Conor Dooley wrote: > > On Tue, Dec 20, 2022 at 09:12:47AM +0800, Hal Feng wrote: > > > From: Emil Renner Berthing > > >=20 > > > Add a minimal device tree for StarFive JH7110 VisionFive 2 board > > > which has version A and version B. Support booting and basic > > > clock/reset/pinctrl/uart drivers. > > >=20 > > > Signed-off-by: Emil Renner Berthing > > > Co-developed-by: Jianlong Huang > > > Signed-off-by: Jianlong Huang > > > Co-developed-by: Hal Feng > > > Signed-off-by: Hal Feng > > > --- > > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-= 2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > > > new file mode 100644 > > > index 000000000000..c60280b89c73 > > > --- /dev/null > > > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > > > @@ -0,0 +1,111 @@ > > > +// SPDX-License-Identifier: GPL-2.0 OR MIT > > > +/* > > > + * Copyright (C) 2022 StarFive Technology Co., Ltd. > > > + * Copyright (C) 2022 Emil Renner Berthing > > > + */ > > > + > > > +/dts-v1/; > > > +#include "jh7110.dtsi" > > > +#include "jh7110-pinfunc.h" > > > +#include > > > + > > > +/ { > > > + aliases { > > > + serial0 =3D &uart0; > > > + }; > > > + > > > + chosen { > > > + stdout-path =3D "serial0:115200n8"; > > > + }; > > > + > > > + cpus { > > > + timebase-frequency =3D <4000000>; > > > + }; > > > + > > > + memory@40000000 { > > > + device_type =3D "memory"; > > > + reg =3D <0x0 0x40000000 0x1 0x0>; > >=20 > > Is this a good idea when you have SKUs with 2, 4 & 8 GiB of DDR? >=20 > The VisionFive 2 board only has 4GB version and 8GB version now. Before > linux startup, we will change this property in dtb through u-boot to > make sure the board can boot up with the correct memory size. Ah I see. Thanks. --0TJGFiimdGLWYNPZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY6zIDwAKCRB4tDGHoIJi 0gMNAQCvOfHtZr3PoXFX2+mCzgr6JsCjRiW7PbUqOVqUw8b9dgD/clvylp+cEFHt ztVMWXpjCLcWCFgDniZe/S3nBDLNmQA= =tziJ -----END PGP SIGNATURE----- --0TJGFiimdGLWYNPZ--