From patchwork Fri Aug 9 00:48:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 818091 Delivered-To: patch@linaro.org Received: by 2002:a5d:5711:0:b0:367:895a:4699 with SMTP id a17csp87892wrv; Thu, 8 Aug 2024 17:49:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUbXoeYD8UjqYv6yedJB/Q3N4t8NPKHUlnW97yRXX0gnQxKMgQaGLk1ykK+d8O59192/6X3pY+D15gbetnuROQX X-Google-Smtp-Source: AGHT+IEqRWh3nYmBekOZJZzQ9oEaJNokEMbQq4sBcX/C1vwivHc150qsMI0Pfm10VaH4wJbU/GoY X-Received: by 2002:a17:907:e697:b0:a7a:a212:be4e with SMTP id a640c23a62f3a-a80aa5516cdmr336766b.7.1723164555836; Thu, 08 Aug 2024 17:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723164555; cv=none; d=google.com; s=arc-20160816; b=wmY2qH004R8Vyb++keAsdsSUS24GjX269hT//t+etCzArN8efzDq/laVHbIRLrw28c vs+l8GfbZXuFm6lqkrETkvvrke91LLA1LGXMGHjrSwuw22HI8ymdL1gI3HI6i6A1/PjX ukThq78sSJKtHlqdHAgrVuUkFqp8oGB8g/A7JHTttPMTHgVip0hcn8avja3J8jAuhFuJ athpgm4hSoRiwczm9pW+XlPBnYmxeZn3G4asoWuRp2FXukIQ5A94vfSYgFDkIoYDwflw JwN3tZBlomVB2wbZ9t0+B4FXCIw8QdfAqTjWpL/4nV3WUaHolhnhcg1aZZfDOpMBVCGh gpxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=BtQqdiFk/5BGUCz4O21vl/84vcKElfs3QSU/TjahAhA=; fh=Ro0cnTVooG9MaZDVXOehdeJMAZn3oMxKdBjF/qqrBN0=; b=UMOkA3NUqf9yG1jyvm+T5f/sP9SFrrUr/ktCFOVcRmu6U3ZWfdGK2DUi+8RMVzAqqv 3QxPY7wOrc6C0s3GvOmh7KOHe40kjaXQjD/d92MPGaJw5Cz1vNcCJ8mtax50BEPDq6cM 9GciLmOlzxHE5jewpBbY8n75T6maL7NbXAy/5agYG3xrIgqRT4497oNftBJ+Pix2/TVM YjlWPheruW4/J5HDMu88JY36ug5zcMXKA/HpVDRCoEuVK+xXKi7gYQZmh50ELU4DODtl q44dFiQFoa0XmWDUIxDw1vpr1VJIPEfRIS43hsfuyYZX/GNcJDEzo6TlC0p0V5758Mj7 AnyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DK4iJ8sG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a7dc9eb6b6fsi866117066b.674.2024.08.08.17.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 17:49:15 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DK4iJ8sG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6403C88BB4; Fri, 9 Aug 2024 02:48:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DK4iJ8sG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4990388B9F; Fri, 9 Aug 2024 02:48:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DA62188B86 for ; Fri, 9 Aug 2024 02:48:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-52efc60a6e6so2076153e87.1 for ; Thu, 08 Aug 2024 17:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723164532; x=1723769332; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BtQqdiFk/5BGUCz4O21vl/84vcKElfs3QSU/TjahAhA=; b=DK4iJ8sGuWu86oTFT+XXVXNCfRsgfrSW2XiZ21HCUOvWJfcj0lTq7bUqNP73tAWlcM 3rLruAi6Ld2KhuRGr3FxBfMmXS5PI/vxB/26zbFfuu4wIbBtWG3k3e+p1V3N0L9+G8PF 89hcll3kcWu5DO9oIr6pWBeY4vAQvllhI1YmlWPmGm6S2XoOtEe81pILhrxwk3H63PiX x5u1PJBr8wn0QrsNh1myZU1+L5APKCQQ0murKnkZWLWNLFyc6uYA3YLH+aDprRTOGLCh 5ChjwwrlSHQNKYSdvUXbJQTdUIDpVyLxDZKkE9b74nte1dO//7Wr8Eu5mX5ZhpYIblaB BF1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723164532; x=1723769332; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BtQqdiFk/5BGUCz4O21vl/84vcKElfs3QSU/TjahAhA=; b=mxZAhGosrL8hpIzGwyIHjWhkHSasgsBJCjK8rFRRymaUP1l8RL3RNQ1TLnHTpsvh4R YZdl6KXgwEb5nQGSUSW8Ur0AcrDBzwhnuRzVXt0oAkWyvpEyxthiVLYa5XTh1qUT+huP GEAigZtMnw2LRqzddUV4Jqpd/syXtP6MZhAeDGA0ZWMHvNXnRQvsEzjekue10eMH0MQf Tuq1ux0KjAeetqwPASCoL+a5U8p0jcW24cqUaSnjTvQU+hW/+gzFL3NUwircpi2ojMMt m599UNlZ6khAZ8sSOpybiYfal5EUFIn+X2fMDBhfGRdq2eQQsX61zkwOiBt7R4Zecr4x IE0w== X-Gm-Message-State: AOJu0YyvKsdloqxIeNFVw3ZSffGu6qCzKASdArn3nnzeVCGtBJYp6zt3 zayidjX6uwaTQ3JxjCe32yyc0HzLsFAzHYQg5LbXwlDDiIou/+P1Z+X2ZRHoRKk= X-Received: by 2002:a05:6512:2353:b0:52c:e030:144e with SMTP id 2adb3069b0e04-530e588783cmr2268436e87.47.1723164531951; Thu, 08 Aug 2024 17:48:51 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9c0c9f5sm789811466b.50.2024.08.08.17.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 17:48:51 -0700 (PDT) From: Caleb Connolly Date: Fri, 09 Aug 2024 02:48:45 +0200 Subject: [PATCH 2/7] dts: qcs6490-rb3gen2-u-boot: add override dtsi MIME-Version: 1.0 Message-Id: <20240809-b4-rb3gen2-v1-2-7c73fe05b37a@linaro.org> References: <20240809-b4-rb3gen2-v1-0-7c73fe05b37a@linaro.org> In-Reply-To: <20240809-b4-rb3gen2-v1-0-7c73fe05b37a@linaro.org> To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1273; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=WycUvGIX1Vb2Dt9TSRhlFTIc8lgmewYYBQWg2kxs6NI=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmtWdv5mZF1qW50sMpKm69eeflmucOdePyCEc/C i/v6J/hbOOJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZrVnbwAKCRAFgzErGV9k tj1pEACLUG59UQ55775yXhgTtJr5jYWFd7pYecXFyzGdVmlVAB+uitwbIR0PACI7Ye/f+pzcIFm l3ghvE198uzg1oHWFB94RnTa7xnW9rgEmNsSG2UDq7eE48WQZUlgVn2tf24dOk3Fe7NRFKjzVsH /8Q64aA9UJY8ZzSsdTLTRuwRGNW5SISJQ111HIdUKEvMaiRc5nO1zq8qz642tRlTx6mOl9knavM oeD6sTRfOTlFX6gU6DFmMZMs/wOjflD4D0dw4lZikri6F/1fj2HnbrQI0QdXipLtUXKSgRMtt/s nrgUsyHXpuM4cJGRYHwoyxqJUMYd3p5iQr1AI9i8vzBXilyZPx4Z5nFxxLVFbzmaWWtQkjTa/Wc tcdYgtA1xKlR6LiD3OsRUVWIEZxxMq8g9G7fC6Ibley/V6IK9cjohY7l6rmrLM5yzVXlhU/cfc6 kKH56mRbLcyxWB814+i0MgM+I6BqM1sVyXfwTvLdqy82J7rbFSH8lDvfUTXD4K3qCwqo3xOi/hu BTdAy+DV2zNtnSgIa9ZW90SEuIAtPQc4GwdiccKggvEn85rLhUCYjBOq1p+1SLgF8FHp8lHaPNm nBXdJYmZRdUyN9EMUwl6Itnf1AIPoIlBmKeEuCmt85TTQArD/vX8ZmUzVZ2z1TEo2lyU9dEqg7T CSO9WsntFkebP2w== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean For running U-Boot as primary bootloader we must define the memory layout statically. Signed-off-by: Caleb Connolly --- arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi new file mode 100644 index 000000000000..c3ec4a317f7c --- /dev/null +++ b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Linaro Ltd. + */ +/ { + /* When running as the primary bootloader there is no prior + * stage to populate the memory layout for us. We *should* + * have two nodes here, but ABL does NOT like that. + * sooo we're stuck with this. + */ + memory@80000000 { + device_type = "memory"; + reg = <0 0x80000000 0 0x3A800000>, + <0 0xC0000000 0 0x01800000>, + <0 0xC3400000 0 0x3CC00000>, + <1 0x00000000 1 0x00000000>; + }; +}; + +// RAM Entry 0 : Base 0x0080000000 Size 0x003A800000 +// RAM Entry 1 : Base 0x00C0000000 Size 0x0001800000 +// RAM Entry 2 : Base 0x00C3400000 Size 0x003CC00000 +// RAM Entry 3 : Base 0x0100000000 Size 0x0100000000