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=-19.0 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,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 EA287C07E95 for ; Sun, 11 Jul 2021 00:46:38 +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 4C17261186 for ; Sun, 11 Jul 2021 00:46:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C17261186 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 150DB832FB; Sun, 11 Jul 2021 02:46:31 +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="ak7ZDP2/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF900832FD; Sun, 11 Jul 2021 02:46:28 +0200 (CEST) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 2C2A7832DC for ; Sun, 11 Jul 2021 02:46:26 +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-pj1-x102e.google.com with SMTP id b5-20020a17090a9905b029016fc06f6c5bso8295356pjp.5 for ; Sat, 10 Jul 2021 17:46:26 -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=Y9YUWTFMmHLVrARSRuNvRgeMC4WA2siP7WjvP/zO9wQ=; b=ak7ZDP2/xU5F9XjAzHPtRCM5RK8uVJF+eEMDL4V+gPaUhvyFDYlQavw/kLbKkrap2h YtpRFwZ2yW/kK/f0urtIF+57X5w4N7McWclUVfBTvgb6sbZ8acx9ok0sj05C7Bbd//T5 gjvEfFCnlbS33vHo3tAy89i+jn6Y6fHSB9Xx3nd3dqVMe+Ty9yl4baJ37E0GGYtvPRPL QcffhaUVtYTF4iQ6TZ4uxw6HwFUCRdlW8IeIV3sJivfikB67C4zWOxk7VfVAlB30s772 guLJ0D1Jz/nq4vC7BPJOGS723oHsxXw4D9MA+4IoTBdID5QaENX0VOMExqeRZsH8TF/3 8pTA== 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=Y9YUWTFMmHLVrARSRuNvRgeMC4WA2siP7WjvP/zO9wQ=; b=PTiRchEF9ZJBa5pqY/AHoObj0qRPr9gWDh2eqIVyNok4zFR4v3GScCLzAKz5P+B4pL APIruygPOgLAbMjt9IRrUV6Z85p1RqJDxNWTfVA43xAxfqEczS2lilx6g7uBUNpTNOKW 2sEqkkTUElqsScbDJNQKOGTURiFqvA9joXgAhi9tO7pcsOirq9YealwKkL7ZPWAZdAbt nquojn2YU+zn0BLofPMlj48A/pVbGEOtmzDQ/Nkzho1wskuO4zyFMoE43ABSmZNSyzMh zRp1l0T4D6/VYu4Ao0Nwg++mA6N9X+MjS8ukC4fxID4buCFx5iOyemFq0tSdubVRi6jA lLYg== X-Gm-Message-State: AOAM531oglBQJP42FXzK/EVmmjfMQd4PcFBhoAMbeuzxwblppyg1DOBB 2AhTA892Oewns8IK9arExz8C9w== X-Google-Smtp-Source: ABdhPJz31fO10bk7Y27c3g5Ql3Z3jfXmlbp674KRb3AbAIkLfMhx4nD+ob5X8RaKlinz4uO8+YXdAg== X-Received: by 2002:a17:90a:f198:: with SMTP id bv24mr1087701pjb.171.1625964384553; Sat, 10 Jul 2021 17:46:24 -0700 (PDT) Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id c7sm12020394pgq.22.2021.07.10.17.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 17:46:24 -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 v2 3/6] dts: synquacer: Add partition information to the spi-nor Date: Sun, 11 Jul 2021 09:46:19 +0900 Message-Id: <162596437959.156585.5142528869375419273.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162596435163.156585.9583856356967436590.stgit@localhost> References: <162596435163.156585.9583856356967436590.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 --- 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>; + }; + }; }; };