Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1471141rwl; Fri, 31 Mar 2023 11:36:23 -0700 (PDT) X-Google-Smtp-Source: AKy350a3dpEdJJk0/OKdv/XV3bKbTY8OT1urs+DX0PK2F3FisFo7f9545d2wnnwh8d0kXTAgSvUO X-Received: by 2002:a05:6402:2803:b0:502:e50:3358 with SMTP id h3-20020a056402280300b005020e503358mr7640649ede.3.1680287783361; Fri, 31 Mar 2023 11:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680287783; cv=none; d=google.com; s=arc-20160816; b=z0soFXllRIbMg+BmjxS4S8EgtJRpwRR5eu0jB8j7wMIY8xXJblLF08OANZT+PGqFUW 6hvtiEQibB2pinzdTTAI3C6cRKDccmJ2ql3fftbHhComR8dT4xYiMoAJ8FUjE3OlVBVp Js4H4obC2btdsaAMFqOeSboJG4hC38FcqIzik3pCJoIoWoZesGOpt20u+rdDSrLpJMuw W8FmSkfc9BtJCYiJ83ye1kW+Z5TLBtvPPN1l9sr6tEA6UoTlip6aLqzVYb8XBa1ixXZg eWOqaN/BighR+kVkQ3VcSoaEwBzMzKJ+iJaRtLiiCAkrCsp+Kycxio9m/KPF5u6O1y03 B6bA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=p4FGWSIPST9m6YTXbscC7ErUtHPtpC6n3urFFBCXSuI=; b=uBzOYgtRzdr7I939/TAxaYg99mNdrO0vbskJMRTY96qJwBvC6QDfHg4RdkiHb7qL2k azmsyPa8Xg+Oi8XwpIrNYdrZdQflSYGEj30az6rd+fB8jDGVuXwjNRPHZdl0DNdkpCfJ 6ESScqLMnjyQBgYHQAG0TgYeg8WASFRxdXPvVYc1XLPcHuMoY9KQ94XHO2vEiR9g52N5 EY90moaIA5OPOytur122LOASxJU1+lSd+Iq9gFjUVIQewz/prBcUBbkxtjqmAiR+ql5e 4QfQJE5j+Z5wes+P78TFU24CcjNou7r3GdvormvLwbZJqDvLBIpLnxJpuFDVthcdnFaR WNiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=74oWXDIl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a056402114e00b004acce6da55bsi2563591edw.33.2023.03.31.11.35.56; Fri, 31 Mar 2023 11:36:23 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=74oWXDIl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbjCaS1e (ORCPT + 99 others); Fri, 31 Mar 2023 14:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231721AbjCaS1d (ORCPT ); Fri, 31 Mar 2023 14:27:33 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 732641E728 for ; Fri, 31 Mar 2023 11:27:32 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id o11so22097833ple.1 for ; Fri, 31 Mar 2023 11:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1680287252; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=p4FGWSIPST9m6YTXbscC7ErUtHPtpC6n3urFFBCXSuI=; b=74oWXDIlBPU68uwXVejlOmomkabmhkdTDR+caL1MADEQSdjPjVuZ1dMDPKYm3jiBJz f89c39he3eNwXJGk9iAPuh7PGV5QlqHep+5CsA9D0jjjZt/ijv8kbwl4tOExrz03/UFv TJucNRYuNMDcIDYmsQUJs/CFGXH3IbzJL6nsSD3YASqmB3b8uJDdwCFHneyfAiEfKd// k2DilaXoubfPSHiuqOLWcY+cLX1kMibk9FbQY45f4ttJJBOyxxPLTMSX06VX6i1X1rO9 ZP/zJsdxyDYzQG+uqof4J08lbr0lWdOdvCUFGCrR6LtqcbjSN60FwFniWzA2bSx8zsUx 00jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680287252; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p4FGWSIPST9m6YTXbscC7ErUtHPtpC6n3urFFBCXSuI=; b=eRU7gEuC8GhQuuUu8wSa5o2fn7JnhL3TX7DRpSA40JFNs81qr7PdV56/fvsh0r/Rsw EPndoD/T0hcw6Q2wvOxt/yPruKRmcbElHcSI5yChT3HzE3TlO3ufXvJiKjr2o/7XgXm/ gklcDSm0WYWfGfud7Nbwy/x58LKWIankuWOuuAmtZcV6JqOhJFJ/WoRoKk9SctKy6IB0 OTU9dYAifr8rxRkxPqLJ2UW7ugRW516IvMilZkzJ7vFtbWnhXRoyI8u7FuJueJDUd1Gi algZ90L7rg2csfpPHLJZ/pq/l1A75KSyZbQTOOUj6pltNKzu9cPb/xIMbAgl7hp2UavN qRPA== X-Gm-Message-State: AAQBX9e7+2onFNLgFOrg3Fl9lX6vOoPodU0nWm0bNeOy8StCHCZS8hud jZN+vValm1pb/2wBlJib9b1J/A== X-Received: by 2002:a17:903:3093:b0:19d:1bc1:ce22 with SMTP id u19-20020a170903309300b0019d1bc1ce22mr23992076plc.5.1680287251852; Fri, 31 Mar 2023 11:27:31 -0700 (PDT) Received: from evan.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id c20-20020a170902b69400b0019f1027f88bsm1826795pls.307.2023.03.31.11.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 11:27:31 -0700 (PDT) From: Evan Green To: linux-sunxi@lists.linux.dev Cc: conor.dooley@microchip.com, Evan Green , Albert Ou , Chen-Yu Tsai , Conor Dooley , 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: [RFC PATCH] riscv: dts: nezha-d1: Add memory Date: Fri, 31 Mar 2023 11:27:27 -0700 Message-Id: <20230331182727.4062790-1-evan@rivosinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Signed-off-by: Evan Green --- arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts b/arch/riscv/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 = "Allwinner D1 Nezha"; compatible = "allwinner,d1-nezha", "allwinner,sun20i-d1"; + // FIXME: this is temporary. + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x40000000>; /* 1 GB */ + }; + aliases { ethernet0 = &emac; ethernet1 = &xr829; -- 2.25.1