Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6733848rwb; Wed, 18 Jan 2023 08:44:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXsoYJZJMlEkeyV31BQnKBYldPkSoFwbaJCP1Duderxom0VDhsYHe8+5PdeppO7xm6yr/QMh X-Received: by 2002:a17:90a:f696:b0:229:1ebf:7dd8 with SMTP id cl22-20020a17090af69600b002291ebf7dd8mr7688471pjb.14.1674060269162; Wed, 18 Jan 2023 08:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674060269; cv=none; d=google.com; s=arc-20160816; b=NDaeSwuEqSPb4Wk8Nj5kn6G9GRjQKkcqXnxjJhTRNgAv3GvtCSclebaVmwc8//NtSt XvcMWsWvDijfc5ec79XdvvfSyCBITTR8wq6qOfV7eM/3RNbLOxn1M0lzT2zR/1h1Ol9g U42i81rnGidOkAY/u6jx0TobQyor823btewE/Jcyw3E5Zj+Fv9agtwbF64kcNbApL8UF vm//qy2/LUa/20/Qmi1kuBgv70CJA48vDu6ObnGZ+mQ6jJNfBNnc48fc9etzzzzT1TWU cL9sRY2OCSSb5Oz9QTgXUxpDpTi0LoPPcs+FnlTKeh+RKoPgZ11v68rPU1tyTZbBmYLc G0oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=o0QGfu5aYlJSGJDDc5cQ+AgSfA70JLHN2RUhvaqAiZU=; b=eIToVaVAE8nn2qwXYu/wIiEVcs+AD6cviCDdandgQaK20UZjDlPFhiizaOeYYs8nwM aWpv+o+BTCUR+ArsE2uxsofS1DVuMN5BFjLttIkxDyKSX2bxnCzda/Urru6bVgJZxmYX qAh7X99WoKravrJUCzqzw3PqP1mdVbbRYQeiZllfnXxzQ4hfIstV3UwXEp4BMyw8N352 2PeTtQHQeWdkXH2wZnmBq8bahYZySuIArycDtHEp1+rUZU9wDgIFWTAxX+6Ml9RHTtfQ NVMC4iT7Kj2EiPyC9n56LJXYXqh9dlCNrZLi+wtVCkFG65XnsOoz3iL/VrOs3Z0owhGq B+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ZqKa4I5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t63-20020a638142000000b004cfeacfba88si3865919pgd.320.2023.01.18.08.44.23; Wed, 18 Jan 2023 08:44:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ZqKa4I5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjARQcA (ORCPT + 45 others); Wed, 18 Jan 2023 11:32:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjARQbd (ORCPT ); Wed, 18 Jan 2023 11:31:33 -0500 X-Greylist: delayed 63 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 08:29:29 PST Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FFA59576 for ; Wed, 18 Jan 2023 08:29:26 -0800 (PST) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20230118162822ed4ab1b3dbf4111be0 for ; Wed, 18 Jan 2023 17:28:22 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=o0QGfu5aYlJSGJDDc5cQ+AgSfA70JLHN2RUhvaqAiZU=; b=ZqKa4I5FUI0djHbRQViIsHGuDemx55vTFh0KDuf+UG+M9n+pap646IKTek2dgm/nkGF78D kH6Q2eA+oUmE6JuOxqO0SzFgRdXs+VDl8EqZvdjdmE/I/BAIChZyvPSNKuVLApZIooltvSJU +uexhUzfiUIL7QbaCR9t1h7jzod9Q=; From: Jan Kiszka To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bao Cheng Su , Chao Zeng Subject: [PATCH 1/3] arm64: dts: ti: iot2050: Add layout of OSPI flash Date: Wed, 18 Jan 2023 17:28:18 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka Describe the layout of the OSPI flash as the latest firmware uses it. Specifically the location of the U-Boot envs is important for userspace in order to access it. Signed-off-by: Jan Kiszka --- .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi index 3cced26b520a..96ac2b476b11 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi @@ -609,6 +609,52 @@ flash@0 { cdns,tchsh-ns = <60>; cdns,tslch-ns = <60>; cdns,read-delay = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + seboot@0 { + label = "seboot"; + reg = <0x0 0x180000>; /* 1.5M */ + }; + + tispl@180000 { + label = "tispl"; + reg = <0x180000 0x200000>; /* 2M */ + }; + + u-boot@380000 { + label = "u-boot"; + reg = <0x380000 0x300000>; /* 3M */ + }; + + env@680000 { + label = "env"; + reg = <0x680000 0x20000>; /* 128K */ + }; + + env-backup@6a0000 { + label = "env.backup"; + reg = <0x6a0000 0x20000>; /* 128K */ + }; + + otpcmd@6c0000 { + label = "otpcmd"; + reg = <0x6c0000 0x10000>; /* 64K */ + }; + + unused@6d0000 { + label = "unused"; + reg = <0x6d0000 0x7b0000>; /* 7872K */ + }; + + seboot-backup@e80000 { + label = "seboot.backup"; + reg = <0xe80000 0x180000>; /* 1.5M */ + }; + }; }; }; -- 2.35.3