Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1480874rwl; Fri, 31 Mar 2023 11:46:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YAxwTrEUrF8YFHr5LE0yKLh+J3Mlssw7+t7rJA1TTvh+p4jXTVV5H+mmfPIQ4m6w63uPjn X-Received: by 2002:a05:6402:268e:b0:502:465:28d4 with SMTP id w14-20020a056402268e00b00502046528d4mr7286369edd.1.1680288411702; Fri, 31 Mar 2023 11:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680288411; cv=none; d=google.com; s=arc-20160816; b=WfAGhxDm6nQ7fRaTCHjvf+bkH3uBr06Gyk/DTytw+P7SIrNFk1S4DohYTKgOFG2/h3 zb1so16MRLtX+zM7jOAa+Z+uqGdaFA3R2a1CqCtTcLtj/okCP7ITj/todnRneCiumBk7 NAAxWr8HP2nIJGs6iJfBM46cNYU8p4ziIuB6EyBLpCrre+wp4SUNcgwAjpNcK+xgb1sJ jcCE2++iT/S6kiOKN6+JViT50nPpoF9vZdxSNyUh5gsBM5KGyxxa8du0UnlnJ+EnA3ON WQ8Fjn8n0jmwIov5+8yyKlFl4sVaHpywkqBXqLWuEE8bV7ODiSTzTaULOILJr3JOLvEJ pURg== 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=1ztHg54lPJsH282q8o7N32pIonFcsXpxJs31MUypouM=; b=h1VFQW/HQGHHkiAjZ+eALHlM9Nkpb2khJ+9nodG21DT7P2+jyYk7jLJ5jPce2lQv55 zEk1YIGYgmhSS17BBz15+Y6tQYq9lox8EtIRJlIluIYobiZAg6kwn3JfLH1CRYEtBZUT eIA0tyLiP8juVK5mGKFBwLBItsZC+R6bScN/vU/v1FtZiDJeQ+MXwRQ/pW1ecq6P36kS xKzlSWwje81C9Zm+4K2wXhqHa3GjPrZTh8+t9tk2/M4kAEY4QOhM3NfjiNYjwEmFAFYz 44S+1Mk/DVm2bXZSv2DDgcbLAo4GkT/gomyb9ZkBnyr8LW5nK01eyK5oWaj9IS0KqSNW +5QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CBQ+Ry2i; 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 d15-20020a17090648cf00b0093404ccdb7dsi96374ejt.861.2023.03.31.11.46.27; Fri, 31 Mar 2023 11:46: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CBQ+Ry2i; 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 S232838AbjCaSjS (ORCPT + 99 others); Fri, 31 Mar 2023 14:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232721AbjCaSjR (ORCPT ); Fri, 31 Mar 2023 14:39:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2C349E9; Fri, 31 Mar 2023 11:39:16 -0700 (PDT) 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 D785B62B10; Fri, 31 Mar 2023 18:39:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3256CC433EF; Fri, 31 Mar 2023 18:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680287955; bh=eqEkQdcItulIBYfu63tsCeTblX411ylkWCoUY/V/uWs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CBQ+Ry2iM7+5i9TV/gOsUHqOL/h49W1vS9TeUUVJ9gJtWjuI+vRd9yHkwrGpjrmn8 W0N4XstXsBEomURTXLS6AEwngiWkZ/UcMOeyRSJ+xVP50JxxJaZ6s9epZaJ8nfOtpJ ad2Wylb7EtVa6kXpe2J1S8BsEf+IE/h8rUuDjl5BzMPUNMHniUO9Eo9RHwDioYBDVO npuOA+mZBcWz7b69M/NXBfWIrPRgI51acgb/du9+JUEHKIY39+Ti90f0BQWXQwLHr4 cRfSjYpXTDnqehIiCcEolchbHALgutD+6rDaBTcYknnl3ZcL+0v99sBx+7CGb8+ctE MXKlJ7dXbu63Q== Date: Fri, 31 Mar 2023 19:39:09 +0100 From: Conor Dooley To: Evan Green Cc: linux-sunxi@lists.linux.dev, conor.dooley@microchip.com, Albert Ou , Chen-Yu Tsai , Jernej Skrabec , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Rob Herring , Samuel Holland , Trevor Woerner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [RFC PATCH] riscv: dts: nezha-d1: Add memory Message-ID: <25837ca5-b709-4d20-912b-ab13e6353069@spud> References: <20230331182727.4062790-1-evan@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TnwQBgyZeUS8jdJs" Content-Disposition: inline In-Reply-To: <20230331182727.4062790-1-evan@rivosinc.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,T_PDS_OTHER_BAD_TLD autolearn=unavailable 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 --TnwQBgyZeUS8jdJs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2023 at 11:27:27AM -0700, Evan Green wrote: > Add memory info for the D1 Nezha, which seems to be required for it to > boot with the stock firmware. Note that this hardcodes 1GB, which is > not technically correct as they also make models with different amounts > of RAM. > Is the firmware supposed to populate this? Yup. Samuel intentionally did it this way: https://lore.kernel.org/linux-riscv/8a2194bf-93bd-de4d-8d39-0cd72aabb0a9@sh= olland.org/ Since I don't like using the firmware provided stuff to more easily test I do this in my u-boot boot script: tftp 0x54000000 d1-fitImage.fit bootm start 0x54000000 bootm loados 0x54000000 bootm ramdisk; bootm prep; fdt memory 0x40000000 0x20000000 bootm go; Hope either of the above are helpful, Conor. >=20 > Signed-off-by: Evan Green >=20 > --- >=20 > arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts b/arch/ris= cv/boot/dts/allwinner/sun20i-d1-nezha.dts > index 4ed33c1e7c9c..6aba68cf5541 100644 > --- a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts > +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts > @@ -32,6 +32,12 @@ / { > model =3D "Allwinner D1 Nezha"; > compatible =3D "allwinner,d1-nezha", "allwinner,sun20i-d1"; > =20 > + // FIXME: this is temporary. > + memory@40000000 { > + device_type =3D "memory"; > + reg =3D <0x40000000 0x40000000>; /* 1 GB */ > + }; > + > aliases { > ethernet0 =3D &emac; > ethernet1 =3D &xr829; > --=20 > 2.25.1 >=20 --TnwQBgyZeUS8jdJs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZCcozQAKCRB4tDGHoIJi 0htEAP0diQJ9Zbhuux3uzUrGT5BnDcXMtCUEsij5CLqMnsP97wD+MhvYerrIgPU2 VSRJF3YaWTBm0hqklFNbFU7LFRj0sg0= =cDyc -----END PGP SIGNATURE----- --TnwQBgyZeUS8jdJs--