From patchwork Thu Jan 19 06:40:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 45613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp179509wrn; Wed, 18 Jan 2023 22:58:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXv77JC4M3NJCPJpO/LOR0zwq6K4TNQ+WCKj4AvNdI+WuS9h8k8blISbmk6HvLaSM43xWjgq X-Received: by 2002:a17:907:d23:b0:877:6873:70b9 with SMTP id gn35-20020a1709070d2300b00877687370b9mr3801425ejc.29.1674111523380; Wed, 18 Jan 2023 22:58:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674111523; cv=none; d=google.com; s=arc-20160816; b=jFxixr48Uc2h9sVWBn9whZX27tTEapMJkD0NDhoCaLjvazHyD+ZsLQGrnNjfwdwotX E4U/kfezn8Tv8QmOAo6/5P+gtoEGWEOOQ8KUOVU0H1BH0+e2Z5lkURIY6BWBKyrWO+T2 Y7rUMrk1PcpI46n4qtBNAxdTAopoVBgwV7HQByqeSntVFRLER92SByHpvwNCwTTdvgz2 PTOKiSYg+9zdrOuICPyzOvxlOg/FfzqdkVMe62voDvcMuxhcoQrIdOBzkCQgkmsH6owd h6F7ZccNOHkJY5Qx3Uws25ivv8B94Prxz+bSjSypK+uXgWjJ65NvHvHlt5a8J0ADlSEi wNxQ== 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=mbx1Y/Njham7qf6CX4EXxCYgFayojg+r9y1kirtbuKtWs9HXH9EuPdhbnQFSVXqCaW fu7RTjN8FLlhEDdN/eZrPf/xoZj0+uFg02WW+CvpJqgU18AyCpJBmEMgN0Wlo8WCmRsC Tb+MXvf4BDAPJodFltue0OxFHQQ98kv5Kf6usdMrGikup703SslN4Ci9tXfU3aGn3K23 GCqb2fIYPtQ9eKRi7ATXouGvTukRwSnkdKtgbGlZQtP/WzjgNgF3oxtv5fRttUCwTY+t bvdEK+pC87tbxD/uTfQWxSNnQkeLY5sscE/DDXAWIg64DlWaqHBr/obkWGrxuOMGYqJZ 6Qqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=TmSXeKOJ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc3-20020a1709078a0300b0087769779d12si2402567ejc.820.2023.01.18.22.58.19; Wed, 18 Jan 2023 22:58:43 -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=TmSXeKOJ; 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 S229851AbjASGm1 (ORCPT + 99 others); Thu, 19 Jan 2023 01:42:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjASGmD (ORCPT ); Thu, 19 Jan 2023 01:42:03 -0500 X-Greylist: delayed 69 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 18 Jan 2023 22:41:58 PST Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C10C65F05 for ; Wed, 18 Jan 2023 22:41:51 -0800 (PST) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202301190640435230c9ab1b311a69cb for ; Thu, 19 Jan 2023 07:40:43 +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=TmSXeKOJMPIs1rcDsjxeB6GArEXKdbQEj9jV2mC7ydx/7MsH7FvUpj482QuuUDh9WX3Skr 5+1H6fQiZNhrKxFJ8We42EOkiUm6XhXuL/SkUOdUZP9TDxoTVmjBUQrJZhfeAFUDX9puXbex wU+RiGkC68QoSxjSgieOyYjGKhAM4=; 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 v2 1/3] arm64: dts: ti: iot2050: Add layout of OSPI flash Date: Thu, 19 Jan 2023 07:40:40 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755433165202342757?= X-GMAIL-MSGID: =?utf-8?q?1755433165202342757?= 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 */ + }; + }; }; };