From patchwork Tue Jul 12 14:36:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SHUKLA Mamta Ramendra X-Patchwork-Id: 1655456 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.a=rsa-sha256 header.s=selector1 header.b=kD/j5MPV; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lj3Jl1Y5wz9s07 for ; Wed, 13 Jul 2022 00:38:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 285A1841E0; Tue, 12 Jul 2022 16:37:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="kD/j5MPV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 565E784193; Tue, 12 Jul 2022 16:37:30 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2119.outbound.protection.outlook.com [40.107.20.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 03B8984147 for ; Tue, 12 Jul 2022 16:37:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mamta.shukla@leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DcQ1QEUEm1afYDNdcIJoL9aqgy4hRhK2aJ+iWCdKOfuI54epwe1jiE2TrgMs273M1nGkZ5wDxFmUfFrHa9TLzuD9LcHSroGtndLkafLtxYBPn8EKT0hhZODEbKlpkgtqvS7F4dE4TyNLfUAlheT/LffL84iBfI6vJY0eqMZ4JrKarDolNCBP+hVUx0k3e9RI13C3YsVl+UH6C67JPH2CXv51/K9bxJeQZcB9I/ynnLHzM2//LoK8Pg64gcBPmmvLk5WQh9kQSEOTgZklvHXPgHuvHdbXiGuXZi0uXxBeNEuQssQ79TJi7L7NCv//xOobsDsaP8BcJ3lW3xMndSTPrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6h4rZVOOVoh5jjvNxAqMT/wZKT+6YdNFDNfQC+sjJyQ=; b=KFtC2QiXHeCEYe/A9uVRjVgcXVJgU9ubl7ac0Eqo9ClB5OR4DWTyH4+WXOVdFLWr9yk++WjQ2dKYY7mqWnfuBo79L0ECjmqvOcV+xCwsnrBzG6HN/Ir9+7CMLFsi4fYkyE4Vys5D0raBNC1E57HZlwUbZb5ZG19oZJfPlXlxRgPJI/reekzJw5vEqXKoi8wh510+1Q6tSEeANDVq+gtnb9BNp57q7WUNCV3cQ1s5pp+dicWVevCNUHw4iYQD8N7VG7QaH+VTMI7yfTaGqFayF3uTHNJEN/60A8trRVlXfW/XpeiX0Gngl4ZA7LsJqulTHYmbE3G2JTvnmTkF1N4vkA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6h4rZVOOVoh5jjvNxAqMT/wZKT+6YdNFDNfQC+sjJyQ=; b=kD/j5MPVkHOQaB1dtSFMh6PL1NNx2H6LlK4U35xdryvAf0b3ApgxWIu/K91ZqwtfmMNyThxJpa+VA7MXf+k546SmSkOivQ9fXx2kCTBJfXtey56OS5g7zKxup0bEz/YX0FmBkfHGKwJp3ckTQl1p9PjLLMtQqWGlNEG3+CJVzas= Received: from AS9PR06CA0076.eurprd06.prod.outlook.com (2603:10a6:20b:464::29) by AM5PR0602MB3265.eurprd06.prod.outlook.com (2603:10a6:206:f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.21; Tue, 12 Jul 2022 14:37:14 +0000 Received: from AM5EUR02FT092.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:464:cafe::61) by AS9PR06CA0076.outlook.office365.com (2603:10a6:20b:464::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Tue, 12 Jul 2022 14:37:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM5EUR02FT092.mail.protection.outlook.com (10.152.9.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16 via Frontend Transport; Tue, 12 Jul 2022 14:37:14 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.56]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Tue, 12 Jul 2022 16:37:14 +0200 From: Mamta Shukla To: u-boot@lists.denx.de Cc: sbabic@denx.de, peng.fan@nxp.com, aford173@gmail.com, bsp-development.geo@leica-geosystems.com, festevam@denx.de, Mamta Shukla , Thomas Haemmerle Subject: [PATCH v6 7/7] doc: board: nxp: Add instructions to boot from QSPI Date: Tue, 12 Jul 2022 14:36:23 +0000 Message-Id: <87be675b2c0db57c5a36628ec6f245ee28a0305c.1657635297.git.mamta.shukla@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 12 Jul 2022 14:37:14.0482 (UTC) FILETIME=[E0E4D520:01D895FC] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4b409e9-38c1-40fe-6393-08da64140384 X-MS-TrafficTypeDiagnostic: AM5PR0602MB3265:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7UT3gOoca/U7ZJN61PfONBjPGQ6621NZ41/8TiMBJGqYsowHiaHZlrfUx/K6vu6t3XPlIYhWj7Mz7iUwe0WDQhKd/cyXKZwT5Q6jlJOKRZ+qrbofkUyf7fnYhyHWomDjJvJy/2R10reGHYKzSEWZibZgnak5JOjP7EFlTSCi6d0anIddBHLtBG9bEauw8guAYEOJrfocrsRAaZ25Sbj2DjX8GNcx6E+U3dnGPEjrNLS09r32+1s3lQ4DFZdewLxpoGr51AeNiLEYrgyfjDOiIvnaaGsCuV3uz/UMPUwnrZPkHH7U+yB9h5AA6N8gSu+vYjfUCwXqizKECFVVyY1MSyxxm+/5UT2He6DWbE+RXreOPPXexQQNu5wSWF6RO6ZTTUloGtW4yJMov/Nm35Les3jgYUJM6DrA97zecFnFQjp3qzJUmsBdyC9MkcSzVPMmvAN0a74B95TqXyJFx46QEPE52KItCUVQxPGEGm6093PiFLeu73bU678BencJKMKGHwnkPMUK7Dl+Paj2/XyLHcfSHIbv/DHnI8VU6Kj75cJg9Nb3MludQGcwFPckdFQh9kG/PPV1L4FraTXasx4ero85VhNjGmK7P65NO/Y/KsmHd+rericV2QYuvGcxwWtwm9BLS0Gp1/Ghv/WNQTaRh37pjmLPUnHEC/SbGM0Cfd9dKFvIQk0JWDQWXGAB8WbMzfBhSAZZN0NAq4zmuvLQr1KVGRZYR5Qivljqn7oC/2VJhQ6Qkv4mcJUNkZTJla9tbQQw2KNi4bPbvzB+1LnyE+Y5rKfs0xEX+uzHcsbp2J+xao04meh71pxb7mlebrNe X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(376002)(39860400002)(346002)(46966006)(36840700001)(40470700004)(81166007)(5660300002)(54906003)(36756003)(2906002)(6916009)(316002)(36860700001)(82310400005)(478600001)(40460700003)(26005)(356005)(44832011)(6666004)(41300700001)(2616005)(40480700001)(70206006)(107886003)(47076005)(336012)(83380400001)(8676002)(4326008)(8936002)(82740400003)(86362001)(70586007)(186003); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 14:37:14.7009 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4b409e9-38c1-40fe-6393-08da64140384 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT092.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0602MB3265 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Add instructions to build and boot from QSPI Flash Signed-off-by: Mamta Shukla Signed-off-by: Thomas Haemmerle Tested-by: Adam Ford Reviewed-by: Fabio Estevam --- v2: -No changes v3: -Fix Checkpatch Error for trailing whitespace v4: -No changes v5: -No changes v6: -No changes doc/board/nxp/imx8mm_evk.rst | 37 ++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/doc/board/nxp/imx8mm_evk.rst b/doc/board/nxp/imx8mm_evk.rst index b9e67b954f..64f7febdfb 100644 --- a/doc/board/nxp/imx8mm_evk.rst +++ b/doc/board/nxp/imx8mm_evk.rst @@ -35,8 +35,8 @@ Get the ddr firmware $ ./firmware-imx-8.9 $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(builddir) -Build U-Boot ------------- +Build U-Boot for sd card +-------------------------- .. code-block:: bash @@ -53,3 +53,36 @@ Burn the flash.bin to MicroSD card offset 33KB: Boot ---- Set Boot switch to SD boot + +Build U-Boot for qspi flash card +------------------------------------ + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-poky-linux- + $ make imx8mm_evk_fspi_defconfig + $ make + +Currently, there is no direct support to write to QSPI Flash. +Copy flash.bin to ${loadaddr} either from sd card or over network and then copy to +qspi flash + +From sd card to memory + +.. code-block:: bash + $mmc dev 1 + $mmc read ${loadaddr} 0x00 + +.. code-block:: bash + + $ sf probe + $ sf erase 0 + $ sf write $loadaddr 0x00 + +Boot from QSPI Flash +----------------------- +Set Boot Switch to QSPI Flash + +Pin configuration for imx8mm_revC evk to boot from qspi flash +SW1101: 0110xxxxxx +SW1102: 00100x0010