From patchwork Fri Nov 11 12:03:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Joseph X-Patchwork-Id: 1702854 X-Patchwork-Delegate: jagannadh.teki@gmail.com 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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=westernsemico.com header.i=@westernsemico.com header.a=rsa-sha256 header.s=default header.b=lp3+R97o; 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)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N82xY1kFsz20KC for ; Sat, 12 Nov 2022 02:41:37 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 909AF85107; Fri, 11 Nov 2022 16:41:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=westernsemico.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=westernsemico.com header.i=@westernsemico.com header.b="lp3+R97o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1DD1284BE3; Fri, 11 Nov 2022 13:02:14 +0100 (CET) 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,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from server220-3.web-hosting.com (server220-3.web-hosting.com [198.54.115.164]) (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 88EDB80710 for ; Fri, 11 Nov 2022 13:02:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=westernsemico.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=adam@westernsemico.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=westernsemico.com; s=default; h=Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w8SFjgMLhFVKVDaztVRejouH0IzhJTrRSvBQtEaCZro=; b=lp3+R97o89MtDdpN96uMTWu4Jr 7n0HRZvIn+6ImD4ojm82GFQ8cWQhSWLs9MkEIKMW7DY0soxClSUiAo/8xWwUrKg5U2p483zibDZ5n fyIgmmh5RDKM5KBhNh8xRxVrEef5oKYW9e9AqBzyzkz+qLmkC/sxg/HkG9x7O4NYRl1H1WNlVWwkD 7aFpUhH2Cm6iRADvHArM0JEAeGH2cygGKcCwpGLIkf11a9eFI3kJcmSp5hYzuunbTeySvVObemY+l nMjdWq/K+J8l2vktSqgXYzRdbsbUs3gbAGAvLJI6q+YC9U2h4UIizFLlWVZGrzLGAonRTtIrc7wU/ LCOOGsQg==; Received: from [173.205.92.154] (port=37950 helo=conway) by server220.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1otSjO-006h5R-ES for u-boot@lists.denx.de; Fri, 11 Nov 2022 07:02:03 -0500 Date: Fri, 11 Nov 2022 04:03:13 -0800 From: Adam Joseph To: u-boot@lists.denx.de Subject: [PATCH] add xt25f32b, which is soldered down to Rock Pi 4b Message-ID: <20221111040313.5a711ec2@conway> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server220.web-hosting.com X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - westernsemico.com X-Get-Message-Sender-Via: server220.web-hosting.com: authenticated_id: westwhdn/from_h X-Authenticated-Sender: server220.web-hosting.com: adam@westernsemico.com X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched X-Mailman-Approved-At: Fri, 11 Nov 2022 16:41:31 +0100 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 With the attached patch, plus (only) the DTSI and defconfig patch from armbian [1], mainline uboot gets at least as far as the TPL on the Rock Pi 4B booting from the soldered-down SPI flash. [1] https://raw.githubusercontent.com/armbian/build/master/patch/u-boot/u-boot-rockchip64/board-rock-pi-4-enable-spi-flash.patch From ca3cc8fefb201bf33a6a6d319d9801b9d892ef21 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 11 Nov 2022 03:54:18 -0800 Subject: [PATCH] drivers/mtd/spi/spi-nor-ids.c: add xt25f32b This chip is soldered to the Rock Pi 4B. Values are adapted from this kernel patch: https://lore.kernel.org/lkml/20220201002535.2186484-1-dev.linux@crtified.me/T/ --- drivers/mtd/spi/spi-nor-ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 5f8f3ec9..5d270bef 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -459,6 +459,7 @@ const struct flash_info spi_nor_ids[] = { #endif #ifdef CONFIG_SPI_FLASH_XTX /* XTX Technology (Shenzhen) Limited */ + { INFO("xt25f32b", 0x0b4016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { INFO("xt25f128b", 0x0b4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, #endif { }, -- 2.38.1