From patchwork Sun Jul 11 00:46:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 472716 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1662045jao; Sat, 10 Jul 2021 17:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4ASOPXVG07Rcv80K1qwfAYVA5G0X3AQxZ55ZSJFLGx12/eXVGZlBBa/kcxPJ7JAm1I/Gk X-Received: by 2002:aa7:cf93:: with SMTP id z19mr53624315edx.214.1625964398399; Sat, 10 Jul 2021 17:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625964398; cv=none; d=google.com; s=arc-20160816; b=I8JwPcsq8rdVR53l3aifMzZBO5gH+y2Mn+VkFyIsSxLPR4jbsk+9GpkA2DEm9Oi7xm RMOFDqT5PG3aWkVhrfg+hgFzw74R00GI5ukB+GRbNz4LoPSiPXfgjY3ylaP9padGxPQp D/5p6WH6oFZ5FWMd5AyaUid85h9hDKe1Vyjh2LLUuwcf+yl13eS0VEL6QPJun+cIyf8y q+eFvNG87oW8ilQ/yqPv5lkylwDzkDmplk5ZdOHYwstG6YJBpRxKDEDF296Zv19+CoVw xGXWnzo9hwaujMwvOz6WAAzueARj5col9EbYkwjoDx07kjywR4zd/ZCG1AY+2XYovF+/ 2Yqg== 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=Y9YUWTFMmHLVrARSRuNvRgeMC4WA2siP7WjvP/zO9wQ=; b=FTpP1ZqZcCB+ul0GWMo+fMImLfd4jP826dZZZqO7zPbjWrkKnq3ibt2QnPc1PRRf4K 7L3rBr0ptgRRr/HoRH3o8jtY8a7OqelQND2pOW5GfFmbgUbk6HyjTG5cZBXOduW+Kcjl BoaYjS9W2qJR2HdF5G/kQzbdCPC42DJcRrsdRxGFOZR4UtzBsOJAw6wp23a6cGJb9uJ+ ik1QxwQvyjf9ODQfT9rrv8c1Dc3fF9386XcI4QeoDbG1OIdY+hRXoozKbJgPAsAaj0US zIX+X7HbAEqFuIahN4B5lmxw4WPT26UVYQk6Mr707kP3N3OgwP4KSmB2OWET5g0BRT20 gWjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ak7ZDP2/"; 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 ml21si12997382ejb.137.2021.07.10.17.46.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jul 2021 17:46:38 -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="ak7ZDP2/"; 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 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) 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-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-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_Beh=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 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(+) Reviewed-by: Marek BehĂșn 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>; + }; + }; }; };