From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41CD3C07E9A for ; Mon, 12 Jul 2021 10:36:21 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B624561006 for ; Mon, 12 Jul 2021 10:36:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B624561006 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2DEF682DD8; Mon, 12 Jul 2021 12:36:14 +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="j0FteOZd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C2DB82DC9; Mon, 12 Jul 2021 12:36:12 +0200 (CEST) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (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 4E91282DA1 for ; Mon, 12 Jul 2021 12:36:08 +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=masami.hiramatsu@linaro.org Received: by mail-pg1-x52c.google.com with SMTP id h4so17767053pgp.5 for ; Mon, 12 Jul 2021 03:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=pbGvQkvP/U7vQR6xyia+QF5X0n5rRM/EnBydbs8x488=; b=j0FteOZdcl9PbAoWhZb4wgcKb6nGriaSv+A4qfW3v4RBd3+iTlzM9x9HMA7RjwshQy FfVG+2ThytG2KDYt+unEpC1N9tvH16+BJVcKG6JxWVQIttrrcIOxSmkpfPyIIInbecmG XkCtQUA/WT4E5ouKPC73NVUVMmUPV6imy9rlX2LR9OmbBGvM2esvc9L7VvxwZVgMsXH4 Y/LyG+s7+04qHT+5/JoKzcCTpN58XSk2ZyFRg/ODawA5B26MG5j89gdpN2efr+M7TWa/ yG0/Iqik3JJqjs8D9pqaP+vYSCnK1Fa6ZSD6qrOtxn9BkcF0LizaxL/U0+kLpfgiMdfe dutg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=pbGvQkvP/U7vQR6xyia+QF5X0n5rRM/EnBydbs8x488=; b=l87bI2pC9hu90moGWqkbRAXewoDyVRG19u0sBYb57WnO/kVjLs5XKZ4IVqHOgA5AhO CYtOHMfQXURcAS5Njpq6NEqWXC1n4svcYzqBH+IkAl+JpBjqxxwpq9sBAjdElUeHmRKr aU2+MTnAvNPHFs7nL5MRGt5wiE9ZSwk9fkT1kKAG0NwqopK6pQtwi3LJJaoP52Otw2kV 5wDyCoVK3GFuw2o26XGUvSISA2s7T8HadwdtmDmGMf2G3Kn7ypRkHePxwoFn/yEXLF/B Q3ADJWEjIr6d5tCJqebRqOc+E7XsvTnk+s6eENFu3AvPuDDO8zHYIZbhz9wN/mXBokvy BoNQ== X-Gm-Message-State: AOAM531RG2S1JmrpxRbEx4tWkgZC7g0BXt1wKT+aUNdnFQRscwpLMp38 YpJrYzqV7rSwAOF9Lo9UDfftFA== X-Google-Smtp-Source: ABdhPJwKCS+Tt7kcAWc/K0f0ymQ3S2L4+RoOIcHROqOtOWw6HaPmc9Qi4m7WILWBk11vKv+GYj46xg== X-Received: by 2002:a63:4750:: with SMTP id w16mr25511255pgk.229.1626086166809; Mon, 12 Jul 2021 03:36:06 -0700 (PDT) Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id s123sm15352786pfb.78.2021.07.12.03.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 03:36:06 -0700 (PDT) From: Masami Hiramatsu To: Simon Glass , Tom Rini , Heinrich Schuchardt , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: Masami Hiramatsu , Jassi Brar , Ilias Apalodimas , Masahisa Kojima , Takahiro Akashi , u-boot@lists.denx.de Subject: [PATCH v3 3/8] dts: synquacer: Add partition information to the spi-nor Date: Mon, 12 Jul 2021 19:36:03 +0900 Message-Id: <162608616313.206671.11863227793411224264.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162608613498.206671.7144957749931134518.stgit@localhost> References: <162608613498.206671.7144957749931134518.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Add partition information to the spi-nor flash. This is required for accessing NOR flash via mtdparts. Signed-off-by: Masami Hiramatsu Reviewed-by: Marek BehĂșn --- Changes in v3: - Add Marek's Reviewed-by. Changes in v2: - Add new lines to separate the partitions. --- .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi index 2f13a42235..7a56116d6f 100644 --- a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi +++ b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi @@ -31,6 +31,55 @@ spi-max-frequency = <31250000>; spi-rx-bus-width = <0x1>; spi-tx-bus-width = <0x1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "BootStrap-BL1"; + reg = <0x0 0x70000>; + read-only; + }; + + partition@70000 { + label = "Flash-Writer"; + reg = <0x70000 0x90000>; + read-only; + }; + + partition@100000 { + label = "SCP-BL2"; + reg = <0x100000 0x80000>; + read-only; + }; + + partition@180000 { + label = "FIP-TFA"; + reg = <0x180000 0x78000>; + }; + + partition@1f8000 { + label = "Stage2Tables"; + reg = <0x1f8000 0x8000>; + }; + + partition@200000 { + label = "U-Boot"; + reg = <0x200000 0x100000>; + }; + + partition@300000 { + label = "UBoot-Env"; + reg = <0x300000 0x100000>; + }; + + partition@500000 { + label = "Ex-OPTEE"; + reg = <0x500000 0x200000>; + }; + }; }; };