From patchwork Mon Jul 12 10:36:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 473075 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2805507jao; Mon, 12 Jul 2021 03:36:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4vpCwHQpJLwHHoLGNET/EQIxiyPfHuEU0TPv4OP9ttMoz+TbE5YTKcKJilZdZDTomAONi X-Received: by 2002:a17:906:4886:: with SMTP id v6mr14887629ejq.45.1626086181475; Mon, 12 Jul 2021 03:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626086181; cv=none; d=google.com; s=arc-20160816; b=WTvxezp9L9jgLQpfqCDrXsPuOncoZObzOMNGrDoMwyDif6X1X83qYFzSS7xUBc+VSm uc33eu8O8acbTAtUBteMVfuiKtPm4LwLRbtH6gHx6NeHmWjjRNS1X8kGl48BQYGK2F7W CwLD9NfcECMDxK+DWzUohp/ay2vV5LbWqVKGTA90eASzy3D4VDQIzbdNDiFJ4PA5LVRG hjeVrpIaVRF3DlShB8GJ1/NvHQdkn+X3yAFo+tKsdi9MhXFd1j5f0LrjfpPoPlkn+Rpd Uvrj7EEaQl5nEyAgjRijMh3q7tQS7xaocNbbdG3UNmf57Qenc1ISfcikLkW62UtWlGk5 kudQ== 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:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pbGvQkvP/U7vQR6xyia+QF5X0n5rRM/EnBydbs8x488=; b=QlhTLZuX3ofgfUBse1+S7FuTRIupzOoN8VoUZ/QYY18jt+pkorzGs0Q5hGiAE9N8Z2 dRsR0rLHNLBR+6neTO2V0HOOyamWW7vQXVK+D4krlSLyGq6Bb1C8hPFOkOpZPrAME4Pz RJlSEX3CKKqdj0Y71UI9JBwqwkMiGwTxsCpbIRyvN0dxjv4WdZBfkR8t4VnEI7v04XG2 aCJisuARpo7RiLWoYb88c58rf3EIslVhF25oP+hc3AV3mYfISHfuP9d/RA+Q6EAJyCry OfhGt8rjqfei67+RXBwiucpATg3SswFyjtdtPYSl0ZlPozrs67UKH6AwJatiw8lDc34+ SQ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j0FteOZd; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id y11si16555335eje.13.2021.07.12.03.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 03:36:21 -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=j0FteOZd; 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 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 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-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_Beh=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 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>; + }; + }; }; };