| Message ID | 20230904180513.923280-1-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBZFY3CTQMGQE6J5SHVA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8F7C63FA00 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 4 Sep 2023 20:05:24 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-52a0f6f7a3bsf2400386a12.1 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 04 Sep 2023 11:05:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1693850724; cv=pass; d=google.com; s=arc-20160816; b=GpSjfPolnGlf61tT7Awy/IkBRhRCdWuRYmeYhUQicf/7ohaMUkwXAE+pHfeeQZpx+I wtpShNyAUAK+Ku2N6d7MeByQhDWh3pGkkBuXUitYZpI+Cev4fmV8FKpYM2H4RVVMkHrC +gpdKW01jp6n2UXPJ9q+e9fyBcm5bGIe1FcZVEOTaFYDoswy4chfeqKzH1kAzGzEc0My 3LMlksEHBnCdB2JLL/aay3YKRfSm9PmbQ6Ai9RcqQgRVQXwFcB6CUu+6vOWjFNJohx6A uzMTQs5508SclDqeqWJtCLjaKqNjxtMOCCcgQpTDf+5rfb54IcnXKLJVczrmdjwIQGNM ISAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=YnsdltMq15fzNSk6gKqEsSt3L6vtu0RlHxvIeWKyYak=; fh=Kbuxg2ormYBVzoB4BA6lbX91syZqRfIU2ZcW+Um5/gc=; b=CoMy8ZZdiBUTh2sWaPxSBHOyCRuLKyo+F3oQIX4PRNz3lxuUwj++TaN+NmrNOOOjZI BAcrN6yp59aFmyFHWwi+gaDkEZzXvW9L71WZE3GdGmEN0CNrJBqB9UKidxjxBf8nqlxF cGCng6K/6hxy3mi2TRUK3f+kpP7cwayUaL8W1oiOl0bB5JzGU7fiKVWQbxwvAVvDdNcd HeQ66UXg8oexuC666DKOEOHXSehpycxS6NHW7Hon85CYVqt0KMDhtKXmdGeSSlhomL39 4VHrIv7xa2YCLnhjimR4lXbK0SnxxR8FQIcw0bpdXECVrAkLF46s/2Qo37IE3CciaJ4L xlqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3oNYoAb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1693850724; x=1694455524; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=YnsdltMq15fzNSk6gKqEsSt3L6vtu0RlHxvIeWKyYak=; b=Te6LH1tyS5JqdgFFJJ6fnrVLlyFXP75M9WmY4im5uVML2J7gPwLSgyWo/8rlUX/zPI KDgDSAF5KFuKECt2xeEv96XUvZcXxk94ncASwf1wJua9JteRVJwo+QaJtn9F4kNO4nAT gEQLPEto38M7bpO2Rw+624lAxmU0yGXAOZaSk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693850724; x=1694455524; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YnsdltMq15fzNSk6gKqEsSt3L6vtu0RlHxvIeWKyYak=; b=Y+qKCSZ50OATfulcBbruBjn5t4qPHiGvmaZfzO49/9Ye9Fv+9NXtyLHgQ8C/NOIbae 3slghXD5vvCuB0r42XAt/QXob8jIMJyAoTueoiQ9ilnUX7P9m58eCDkEhA1XECLnO31r lLAfYGnqa5YQlLZEUSYzDxAGa83/LcIyoeLOubNDlnMFKa+X3Sf9P/ao5DA5kgwB7Vd6 EvZrZovecvw8DbpODHvaBix9hw0mDS1HITaTVycQV06Inhg9SPeBpZEG2ZO467c3FmWA /YMqMO1OP3MPeseLP77aY8tY7nZ8OKLraSPecBSsdnFMNCl4wYY0OfO7Z7Qq+1qvZVQO QFMA== X-Gm-Message-State: AOJu0YzppFoLEygUReMq5N72rH0/czK7jXOWwxg/8YZSlnsbLmloEM4y uewMeh99CY4nhkDhSPuGvC1qF5bqvpYsApyK X-Google-Smtp-Source: AGHT+IGKBT9C/3Pk/PLE0BJ4KnoRsDgNyaib6nfguHttOd44s6cDB3cmuRpjC0onP/FcuKTJCxCK7A== X-Received: by 2002:a05:6402:278f:b0:51e:5206:d69e with SMTP id b15-20020a056402278f00b0051e5206d69emr15758269ede.10.1693850724295; Mon, 04 Sep 2023 11:05:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:d30d:0:b0:525:b947:ff2 with SMTP id p13-20020aa7d30d000000b00525b9470ff2ls463317edq.1.-pod-prod-00-eu; Mon, 04 Sep 2023 11:05:23 -0700 (PDT) X-Received: by 2002:a17:906:3010:b0:9a5:bceb:1cf8 with SMTP id 16-20020a170906301000b009a5bceb1cf8mr10657281ejz.3.1693850722794; Mon, 04 Sep 2023 11:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693850722; cv=none; d=google.com; s=arc-20160816; b=u5CRU79UaH7DedefpxWYmTM25AwlMdrNUoBAbrWwe67oHKKrBvB8Fit0Iuv1iX7D7e 3zoDe1Cpr3UIuONdvSdoXIFB9FfN1lnRPxtyyxrwtG1MgwregT5r3RgsiSK7kc2JmOPj rgel0PLqL+FV8URzc2zOyiNqKNdvUWwNeePfVnnFeq28Oyqn/tQnSslVN2rvlFNMFCII MppN8GzpE3fa37AqG93OR7coW0ak4vzaI42mhFXP6JDiFEnk1MWzqjGQ2gnJIGztucTL HSJasgvoMhovPw76D1WNae9DA1hNrHUNZnTOmZd+81JNa+Ckgybevo5yy1J0hj3CqLPG biCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=BwZewNI4F+2A2loSj+kf1NfW7/PQMO46viQSdkuX7pk=; fh=Kbuxg2ormYBVzoB4BA6lbX91syZqRfIU2ZcW+Um5/gc=; b=C5BpKv+mxAcQBmJBHAY33T/+QjMZwTXIHWLhRVyNWrDviIECTbopyGLDoagNhzfNJJ FSwbQAEUPe5KcNTzv38tz9sLcJe58GUYhDLBV99yNhmFrnjO+Ld2gGsAaxhMCVOnh3EI rrTqjkXCdzj40D8I+GcTuL4M4sdhnngztmXGm8LILeOBq9anf5okUoORxqXwbNKFzaW2 l2XS7NGWxdjViaLgTrH+ETmZ3CB15T84r+fP6+vzvr7h6ymyKuFUVHU8X4a8GkAft7Y/ neupiE178qcjVqsHmShTczb8dJhQJqvpwgkOxbzs6odKe2CnkJQkdRPFghKgYTVajdP/ O8fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3oNYoAb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id q15-20020a170906388f00b009a1ad4da86csor756270ejd.5.2023.09.04.11.05.22 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 04 Sep 2023 11:05:22 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:97d0:b0:9a1:c69c:9388 with SMTP id js16-20020a17090797d000b009a1c69c9388mr13413090ejc.37.1693850722354; Mon, 04 Sep 2023 11:05:22 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-71-141.retail.telecomitalia.it. [79.54.71.141]) by smtp.gmail.com with ESMTPSA id pw9-20020a17090720a900b0098884f86e41sm6382620ejb.123.2023.09.04.11.05.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 11:05:21 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Conor Dooley <conor+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [RFC PATCH] ARM: dts: stm32: fix SDRAM size on stm32f469-disco Date: Mon, 4 Sep 2023 20:05:13 +0200 Message-Id: <20230904180513.923280-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3oNYoAb; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
[RFC] ARM: dts: stm32: fix SDRAM size on stm32f469-disco
|
|
Commit Message
Dario Binacchi
Sept. 4, 2023, 6:05 p.m. UTC
The board is equipped with a 128Mbit SDRAM.
128Mbit = 16 Mbyte = 16,777,216 bytes = 0x1000000.
Fixes: 626e7ea00215 ("ARM: DT: stm32: move dma translation to board files")
Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Sep 4, 2023, at 20:05, Dario Binacchi wrote: > The board is equipped with a 128Mbit SDRAM. > 128Mbit = 16 Mbyte = 16,777,216 bytes = 0x1000000. > > Fixes: 626e7ea00215 ("ARM: DT: stm32: move dma translation to board files") > Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts > b/arch/arm/boot/dts/st/stm32f469-disco.dts > index cbbd521bf010..f173a5892b7d 100644 > --- a/arch/arm/boot/dts/st/stm32f469-disco.dts > +++ b/arch/arm/boot/dts/st/stm32f469-disco.dts > @@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { > }; > > soc { > - dma-ranges = <0xc0000000 0x0 0x10000000>; > + dma-ranges = <0xc0000000 0x0 0x1000000>; > }; The dma-ranges should be independent of the installed memory, they usually reflect the addressing capabilities of the bus, so this patch should not be needed. Arnd
Hello Arnd, On Sat, Sep 9, 2023 at 4:28 PM Arnd Bergmann <arnd@arndb.de> wrote: > > On Mon, Sep 4, 2023, at 20:05, Dario Binacchi wrote: > > The board is equipped with a 128Mbit SDRAM. > > 128Mbit = 16 Mbyte = 16,777,216 bytes = 0x1000000. > > > > Fixes: 626e7ea00215 ("ARM: DT: stm32: move dma translation to board files") > > Link: https://www.st.com/en/evaluation-tools/32f469idiscovery.html > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > arch/arm/boot/dts/st/stm32f469-disco.dts | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts > > b/arch/arm/boot/dts/st/stm32f469-disco.dts > > index cbbd521bf010..f173a5892b7d 100644 > > --- a/arch/arm/boot/dts/st/stm32f469-disco.dts > > +++ b/arch/arm/boot/dts/st/stm32f469-disco.dts > > @@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { > > }; > > > > soc { > > - dma-ranges = <0xc0000000 0x0 0x10000000>; > > + dma-ranges = <0xc0000000 0x0 0x1000000>; > > }; > > The dma-ranges should be independent of the installed > memory, they usually reflect the addressing capabilities > of the bus, so this patch should not be needed. Thank you for the explanation. Question, could I then use this node to describe the installed memory? memory@c0000000 { device_type = "memory"; reg = <0xC0000000 0x1000000>; }; I recently submitted this series to U-Boot (https://patchwork.ozlabs.org/project/uboot/patch/20230903205703.662080-5-dario.binacchi@amarulasolutions.com/), and I would like to allocate the framebuffer by retrieving the correct information from the device tree, without wiring anything in the code. Thanks and regards, Dario > > Arnd
diff --git a/arch/arm/boot/dts/st/stm32f469-disco.dts b/arch/arm/boot/dts/st/stm32f469-disco.dts index cbbd521bf010..f173a5892b7d 100644 --- a/arch/arm/boot/dts/st/stm32f469-disco.dts +++ b/arch/arm/boot/dts/st/stm32f469-disco.dts @@ -84,7 +84,7 @@ vdd_dsi: vdd-dsi { }; soc { - dma-ranges = <0xc0000000 0x0 0x10000000>; + dma-ranges = <0xc0000000 0x0 0x1000000>; }; leds {