From patchwork Tue Sep 27 05:29:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dhruva Gole X-Patchwork-Id: 1682956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=p7Uk0t4L; dkim-atps=neutral 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mc7VT5r3Pz1yq3 for ; Tue, 27 Sep 2022 15:29:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B326684ACA; Tue, 27 Sep 2022 07:29:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.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=ti.com header.i=@ti.com header.b="p7Uk0t4L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6D95E847F4; Tue, 27 Sep 2022 07:29:31 +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.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LOTS_OF_MONEY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 DC37D84A37 for ; Tue, 27 Sep 2022 07:29:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=d-gole@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28R5TNad128940; Tue, 27 Sep 2022 00:29:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1664256563; bh=FzhGiJU3NWyG9HVYXLn3P2MISVnIYt1zvw2AakyOCT8=; h=From:To:CC:Subject:Date; b=p7Uk0t4LKW5EbaD/BPgTxoySy56ixsqTBqDx0OxoB1e5Z+zxpBgJJIWx8d8eQ8C3H 9P9WFLMTg1NURfcYRlwoIrw75OX/x7Xhlv2IkvrFb+BOsr8P+0QLZbmvBmpAyxWajq 2ymPoAP8e2FMb1c6ovoqMh7ozj3dh9D476Av/oH0= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28R5TN4A095487 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Sep 2022 00:29:23 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 27 Sep 2022 00:29:22 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 27 Sep 2022 00:29:22 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 28R5TLQq028178; Tue, 27 Sep 2022 00:29:22 -0500 From: Dhruva Gole To: CC: Nishanth Menon , Georgi Vlaev , Dhruva Gole , Vignesh Raghavendra , Subject: [PATCH 0/2] ke-am62x-sk_evm: add ospi support Date: Tue, 27 Sep 2022 10:59:16 +0530 Message-ID: <20220927052918.825003-1-d-gole@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 There's a S28HS512T Flash (by Cypress) on the AM625 SK EVM. - Add necessary DT nodes to enable OSPI interface with this flash. - Enable all configs that enable the OSPI related drivers and commands like SF probe. Tested on my AM62 SK EVM, attaching logs below. Logs: ------------------------------------------------------------------------ U-Boot SPL 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 16:27:48 +0530) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.6--v08.04.06 (Jolly Jellyfi') Trying to boot from MMC2 Starting ATF on ARM64 core... NOTICE: BL31: v2.7(release):v2.7.0-dirty NOTICE: BL31: Built : 14:30:02, Aug 27 2022 U-Boot SPL 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 17:51:27 +0530) SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.6--v08.04.06 (Jolly Jellyfi') Trying to boot from MMC2 U-Boot 2022.10-rc5-00012-g435596d57f8b-dirty (Sep 26 2022 - 17:51:27 +0530) SoC: AM62X SR1.0 GP Model: Texas Instruments AM625 SK DRAM: 2 GiB Core: 37 devices, 18 uclasses, devicetree: separate MMC: mmc@fa10000: 2, mmc@fa00000: 1, mmc@fa20000: 3 Loading Environment from nowhere... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: No ethernet found. Hit any key to stop autoboot: 0 => sf probe SF: Detected s28hs512t with page size 256 Bytes, erase size 256 KiB, total 64 MiB => fatload mmc 1 $loadaddr tiboot3.bin 285482 bytes read in 17 ms (16 MiB/s) => sf update $loadaddr 0x0 $filesize device 0 offset 0x0, size 0x45b2a 285482 bytes written, 0 bytes skipped in 2.623s, speed 111322 B/s => sf read 0x90000000 0x0 $filesize device 0 offset 0x0, size 0x45b2a SF: 285482 bytes @ 0x0 Read: OK => md $loadaddr 82000000: 94048230 fd038230 010203a0 64140202 0...0..........d 82000010: 3f829a45 85bb6dd8 232b5568 f8f4176f E..?.m..hU+#o... 82000020: 309fb7ff 2a09060d f7864886 0d01010d ...0...*.H...... 82000030: 81300005 300b319d 55030609 02130604 ..0..1.0...U.... 82000040: 0b315355 03060930 0c080455 31585402 US1.0...U....TX1 82000050: 060d300f 07045503 6144060c 73616c6c .0...U....Dallas 82000060: 25302731 04550306 541e0c0a 73617865 1'0%..U....Texas 82000070: 736e4920 6d757274 73746e65 636e4920 Instruments Inc 82000080: 6f70726f 65746172 30133164 55030611 orporated1.0...U 82000090: 0a0c0b04 636f7250 6f737365 13317372 ....Processors1. 820000a0: 03061130 0c030455 2049540a 70707553 0...U....TI Supp 820000b0: 3174726f 061b301d 48862a09 010df786 ort1.0...*.H.... 820000c0: 0e160109 70707573 4074726f 632e6974 ....support@ti.c 820000d0: 1e306d6f 32320d17 36323930 38353031 om0...2209261058 820000e0: 175a3331 3132320d 31363230 31383530 13Z..22102610581 820000f0: 81305a33 300b319d 55030609 02130604 3Z0..1.0...U.... => md 0x90000000 90000000: 94048230 fd038230 010203a0 64140202 0...0..........d 90000010: 3f829a45 85bb6dd8 232b5568 f8f4176f E..?.m..hU+#o... 90000020: 309fb7ff 2a09060d f7864886 0d01010d ...0...*.H...... 90000030: 81300005 300b319d 55030609 02130604 ..0..1.0...U.... 90000040: 0b315355 03060930 0c080455 31585402 US1.0...U....TX1 90000050: 060d300f 07045503 6144060c 73616c6c .0...U....Dallas 90000060: 25302731 04550306 541e0c0a 73617865 1'0%..U....Texas 90000070: 736e4920 6d757274 73746e65 636e4920 Instruments Inc 90000080: 6f70726f 65746172 30133164 55030611 orporated1.0...U 90000090: 0a0c0b04 636f7250 6f737365 13317372 ....Processors1. 900000a0: 03061130 0c030455 2049540a 70707553 0...U....TI Supp 900000b0: 3174726f 061b301d 48862a09 010df786 ort1.0...*.H.... 900000c0: 0e160109 70707573 4074726f 632e6974 ....support@ti.c 900000d0: 1e306d6f 32320d17 36323930 38353031 om0...2209261058 900000e0: 175a3331 3132320d 31363230 31383530 13Z..22102610581 900000f0: 81305a33 300b319d 55030609 02130604 3Z0..1.0...U.... => cmp.b $loadaddr 0x90000000 $filesize Total of 285482 byte(s) were the same ------------------------------------------------------------------------ Thus tested read, write and probe flash from u-boot prompt Dhruva Gole (2): arm: dts: k3-am625-sk: Add OSPI support configs: am62x_evm_a53: Enable OSPI Flash support arch/arm/dts/k3-am625-sk-u-boot.dtsi | 24 +++++++++ arch/arm/dts/k3-am625-sk.dts | 77 ++++++++++++++++++++++++++++ configs/am62x_evm_a53_defconfig | 13 +++++ 3 files changed, 114 insertions(+)