From patchwork Thu Dec 1 19:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Barrett-Morrison X-Patchwork-Id: 28517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp446799wrr; Thu, 1 Dec 2022 11:31:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf6zFIMj4vNskzqRgTwCc4Eo/kCOTuZ6GwM6RuqBArwvVlbm841Gx5+DIg4hjYtHAPa5PgnJ X-Received: by 2002:a05:6402:4286:b0:458:7489:34ea with SMTP id g6-20020a056402428600b00458748934eamr9579346edc.264.1669923107527; Thu, 01 Dec 2022 11:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669923107; cv=none; d=google.com; s=arc-20160816; b=PR2Os+TTy5paeAbACk6K8mrlLON+QSAM4QIU/ieOrGOMWrtqArHbi5WnHOdFph9/2m dDhbGD2iNNm0/JCy9+PlcwDTSqojYPt8yGCCx30XdEjuBgxi68JW7hhtw2VCbJv/b5jt 96QvxwXy8ApFEG+vhDzbSwEqhSLByA/gxIh9t7t045JdLIIvpnIT3wKmT3leOYe1IeFR pD06adYevVesvW5twibCTtZ+R6tU4JSoMYow+boohnP5hxAlpzX9pLoscXuP1NzEQfOO oKPv7zFP4QmSZMnsMNwdFbqEIqOGixKmu7iXyInL0jUCZTjD0BEPCUeD7YrE5ubz/TkR RMFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=kFCBGy/PHSqulvVt1jN7WYpo1L/uAw3+z6frKWBhRoc=; b=c13313fweGq0ZtmYhkH4Crz36xK7yxXmPQqLa1HfjgKW8P1e6poZ4S+J8FwcmoDIm5 /YcHXrpsuTcb5StRy+wA9OER3clQrNgHu62+g11IShqHBJHKuZNiB/ru6gwBMAEal30R sb01LlRoElfZWbKQLvqUKZBS65sxuY5m99356Z/ZCIPaXj0LVgG78ODRnsgtGwcf21R7 ekdRBa+jb+zlaF+R5CS3e1bJGrlOLKq9QNesapN3OJ6NOJAlfTmWQszV1JlbMCKMnbqo TuhF4OuPCbOqWPQzlH2exzYZs3s5RLuSdkOCxBhjCRsY6Z4heKUDY3MpGechl+1nFTOM tWmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=pJfX+eHF; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a056402349400b0045c3f6ad4b0si4900687edc.484.2022.12.01.11.31.24; Thu, 01 Dec 2022 11:31:47 -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=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=pJfX+eHF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiLATat (ORCPT + 99 others); Thu, 1 Dec 2022 14:30:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbiLATab (ORCPT ); Thu, 1 Dec 2022 14:30:31 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD02C8D1A for ; Thu, 1 Dec 2022 11:30:18 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id x28so1085764qtv.13 for ; Thu, 01 Dec 2022 11:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kFCBGy/PHSqulvVt1jN7WYpo1L/uAw3+z6frKWBhRoc=; b=pJfX+eHFT2vr3LfxVwv0ulFSIwHsF3KFI6OdOpmKL4VLyW1+SxJnJmblhVqrm7ZfmB Cb8X9ZFzETRxMZQvrtL62/1zxbAlmXa9vlfoM8/x6XT5QZEB38f1id47sOYyCnsgsdAM U7RoIdCSHrpowQMCu5Y88BNH+MGRYlm4MqBT2wFnPNmkkfZsOCEIfVQJl6T6VFUMMseO jQLvSV+BbjvNykJyhiy9FMl+QtGb5eKud/YaOjk2Q6hHEdKTxAKranqC445PppZUj04K 9LfQzu57Pr/2/s45N8b2h4ojeMlScCqJ+FZ/Rlt22WWoq8z1mlrI7OKakgdzhcsqxQJs PuEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kFCBGy/PHSqulvVt1jN7WYpo1L/uAw3+z6frKWBhRoc=; b=KTgG/ZqBU+r2ix1IioO+CcXdLNcmripPeLZBXNR8LAV+i1yHt6AABJaX0SSAiC+lpA 9rCx59omPOV+YLSOXfxVFS8rDQy5vvx+voEb5pbyiSlyA9sIlBzJ4vkCsgN6AwV6tsh2 BUwd5WISTKKwxruLP79CH9Zx87QnjR6yTfOInsp3PO/Pn8PXQtLCaGCwggx8+Oo5YTb7 bh1/40hpaPzKY0+G2MeEdxIrOZK2/DRD++XkewfZuEVpzJlZlpikVKTQh2QwymMjUJNo eJrRchUm8IJhUILhHgkHZXnk2AwCsbzKDl51cEIrQ6fO4+Gbq7YyrE7FS158bGEY/1IY I6CA== X-Gm-Message-State: ANoB5pldQ936sEqo8Hde2KpacjFCABD5JCuBCzNkIWTc9d0OYx2piRXC 7TmUM4PNW9AhD8dRr+0kiDDd4Q== X-Received: by 2002:ac8:7497:0:b0:3a5:e592:37c8 with SMTP id v23-20020ac87497000000b003a5e59237c8mr61541174qtq.609.1669923017432; Thu, 01 Dec 2022 11:30:17 -0800 (PST) Received: from nathan-ideapad.. (d-75-76-18-234.oh.cpe.breezeline.net. [75.76.18.234]) by smtp.gmail.com with ESMTPSA id h19-20020ac85153000000b003a6328ee7acsm2977748qtn.87.2022.12.01.11.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 11:30:17 -0800 (PST) From: Nathan Barrett-Morrison Cc: nathan.morrison@timesys.com, greg.malysa@timesys.com, Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org (open list:SPI NOR SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/3] mtd: spi-nor: Extend SFDP 4byte address instruction lookup table with new octal modes as per JEDEC JESD216F Date: Thu, 1 Dec 2022 14:30:04 -0500 Message-Id: <20221201193007.261690-2-nathan.morrison@timesys.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221201193007.261690-1-nathan.morrison@timesys.com> References: <20221201193007.261690-1-nathan.morrison@timesys.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 To: unlisted-recipients:; (no To-header on input) 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?1751041292365793059?= X-GMAIL-MSGID: =?utf-8?q?1751041292365793059?= This adds the new bit fields for reading: 1S-1S-8S, 1S-8S-8S, 1D-8D-8D programming: 1S-1S-8S, 1S-8S-8S Signed-off-by: Nathan Barrett-Morrison --- drivers/mtd/spi-nor/sfdp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi-nor/sfdp.c b/drivers/mtd/spi-nor/sfdp.c index 2257f1b4c2e2..e4e87815ba94 100644 --- a/drivers/mtd/spi-nor/sfdp.c +++ b/drivers/mtd/spi-nor/sfdp.c @@ -953,11 +953,16 @@ static int spi_nor_parse_4bait(struct spi_nor *nor, { SNOR_HWCAPS_READ_1_1_1_DTR, BIT(13) }, { SNOR_HWCAPS_READ_1_2_2_DTR, BIT(14) }, { SNOR_HWCAPS_READ_1_4_4_DTR, BIT(15) }, + { SNOR_HWCAPS_READ_1_1_8, BIT(20) }, + { SNOR_HWCAPS_READ_1_8_8, BIT(21) }, + { SNOR_HWCAPS_READ_1_8_8_DTR, BIT(22) }, }; static const struct sfdp_4bait programs[] = { { SNOR_HWCAPS_PP, BIT(6) }, { SNOR_HWCAPS_PP_1_1_4, BIT(7) }, { SNOR_HWCAPS_PP_1_4_4, BIT(8) }, + { SNOR_HWCAPS_PP_1_1_8, BIT(23) }, + { SNOR_HWCAPS_PP_1_8_8, BIT(24) }, }; static const struct sfdp_4bait erases[SNOR_ERASE_TYPE_MAX] = { { 0u /* not used */, BIT(9) }, From patchwork Thu Dec 1 19:30:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Barrett-Morrison X-Patchwork-Id: 28525 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447644wrr; Thu, 1 Dec 2022 11:33:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ac4XEG4WV2GNelyznZtpdrQPbHU/XdfU5cCocFhIuGiEGcumkiQxoLxm71CURgXrku3BI X-Received: by 2002:a17:907:6daa:b0:7ba:e537:c64b with SMTP id sb42-20020a1709076daa00b007bae537c64bmr35158065ejc.180.1669923217502; Thu, 01 Dec 2022 11:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669923217; cv=none; d=google.com; s=arc-20160816; b=RZSGFjvIrmdraCtxDQs0/fgg+020Pu7N4q2ffBu+VnqJ+sR19m8wdEIeaoanDLVrmJ eLySxdeQXP1AxuBDYL56DScjIBLS/NdvqG/ibZaUd18YwnEWSKTjfz6QWt+tNteDxVBB dZ6n2ScX7wDTc24lJzZdInstomDL+wPYPxYyho0NWsAHrNDXWLovz00/+lf8UHIkY6gs +KWIvcSTr96vTcPNA+u4Z0UZyLSGZ0v9jpMuZ3EYSzAdWrKI1UcHs3bJyBPiDR6Kek1W /4GC1ntqDX5p0zS7QdoX4gFQqxU9i1kFkuAOZDgFpKTZ/aJEgrGJXvbfxFV/ZbXOHjMp 8RsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=di9LveXhpEtODK6vNhn4RUvUpuP2viTSwK389nw6d5U=; b=MEIFa2/L/wa8rmQtI5Jw9mA0rtS9aGEeLGLJsx7uqyKDeJJ9vugdgVxBNUvqHe0KXg XvgAdwnZyibTTWWjGotZdK8RzDamYTQKXV2dQCfRVGp3Dlyy8Q3HngWMM2b6KMpM5uTX rAAX/gOlAhJl62QD+a33vVOQWiSaMDruBwONkEAB5q1mIm5POhceaKoXvzUAtWX0DHL8 cbwtaB/7Iy1xsw6I2pFtEDUK025Il7ZNjF20ov9oSdsD8KQRLVd7gM2qQl6RhmMZiI2n DkpNEtfnPhMmnD/3MpUcw+HtV3YV26gwxFIzPBdLJqVSPjnwjO8TxG91cgQvC81qAwPe X2vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=Q9R68ZQ7; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gh30-20020a1709073c1e00b007ae9fc42919si3261911ejc.907.2022.12.01.11.33.11; Thu, 01 Dec 2022 11:33:37 -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=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=Q9R68ZQ7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbiLATa4 (ORCPT + 99 others); Thu, 1 Dec 2022 14:30:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbiLATac (ORCPT ); Thu, 1 Dec 2022 14:30:32 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9ECAC82FD for ; Thu, 1 Dec 2022 11:30:19 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id l15so2199488qtv.4 for ; Thu, 01 Dec 2022 11:30:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=di9LveXhpEtODK6vNhn4RUvUpuP2viTSwK389nw6d5U=; b=Q9R68ZQ7HsrNWZEFMqiSQNq+RhKlxioliytl4uSs8OlRH24UleTMhx3H85j/7lcXqM s+7u7FdqM5fQjce9x4HP7ATNv4ze+cyTxfSGX/lGMHauhqq49M+7UhIV9d4Ymh2LZSAZ r5iStg9r2b07FXwWJbwX6t6zicVto3KWcfIZ4WzgLyCRs8/aQs83Fuo3KxqnAYLxYeVg pMn04vczvmtdI1cvbJGVZuq0aXuqmP3K3PwSyGQXYKFDuPJfyn2Od6HPPwDJJnvGAt0G RmeaiUIgR52l9eoiSvtwEbG93oGncnNi+jJ32MPuMWxnUEdXsIILvOMxxiqsU5SHXyma aGiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=di9LveXhpEtODK6vNhn4RUvUpuP2viTSwK389nw6d5U=; b=thkyLfVnmjL+aDhtdZ8IaNAkPb6US9ju6336zbGb87u5XxOR4XrBhlZUsUH2iAdQ1N ecVHnzms67+WeQLHKD1nVnaG2mT9dI4vTRpmMcBQzdvde2Ol7CVx7ndD3yDM7H1j9ZSg PcEI+Uc9lB5VQi9NzVwl0GEV+ZiQVE+u+8SgUfzWyGe47c3gR6HaRtlvbS+a3Cr5Lb1o /crhi6F7gxiOtIR1GQJAckHkeHWGdtBlhf8FphKBjaKywxBGgrLVREOF5+/yP4aKKOCS OfHbC/b9SMn5yruomKYp0K055fVAfEACJFuhUIZeGcHgZu7EcGXhNFZ9lWIKojRlp7Jr L7NQ== X-Gm-Message-State: ANoB5plfn+nCDCY26kZ5Ok78Ea3uhFc/UdSOpp9NOzHpMRlRKJwQBNfn Pfo6FJd2Au605FALcQzY7ohhgg== X-Received: by 2002:a05:620a:3720:b0:6fa:faad:2008 with SMTP id de32-20020a05620a372000b006fafaad2008mr44641719qkb.668.1669923018899; Thu, 01 Dec 2022 11:30:18 -0800 (PST) Received: from nathan-ideapad.. (d-75-76-18-234.oh.cpe.breezeline.net. [75.76.18.234]) by smtp.gmail.com with ESMTPSA id h19-20020ac85153000000b003a6328ee7acsm2977748qtn.87.2022.12.01.11.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 11:30:18 -0800 (PST) From: Nathan Barrett-Morrison Cc: nathan.morrison@timesys.com, greg.malysa@timesys.com, Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org (open list:SPI NOR SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 2/3] mtd: spi-nor: Add additional octal-mode flags to be checked during SFDP Date: Thu, 1 Dec 2022 14:30:05 -0500 Message-Id: <20221201193007.261690-3-nathan.morrison@timesys.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221201193007.261690-1-nathan.morrison@timesys.com> References: <20221201193007.261690-1-nathan.morrison@timesys.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 To: unlisted-recipients:; (no To-header on input) 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?1751041407795102861?= X-GMAIL-MSGID: =?utf-8?q?1751041407795102861?= This adds some support for searching a chips SFDP table for: read commands: 1S-8S-8S program commands: 1S-1S-8S, 1S-8S-8S Signed-off-by: Nathan Barrett-Morrison --- drivers/mtd/spi-nor/core.c | 7 +++++++ drivers/mtd/spi-nor/core.h | 5 +++-- drivers/mtd/spi-nor/sfdp.c | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index bee8fc4c9f07..4c1a877e736f 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -2359,6 +2359,13 @@ static void spi_nor_no_sfdp_init_params(struct spi_nor *nor) SNOR_PROTO_1_1_8); } + if (no_sfdp_flags & SPI_NOR_OCTAL_READ_1_8_8) { + params->hwcaps.mask |= SNOR_HWCAPS_READ_1_8_8; + spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_1_8_8], + 0, 16, SPINOR_OP_READ_1_8_8, + SNOR_PROTO_1_8_8); + } + if (no_sfdp_flags & SPI_NOR_OCTAL_DTR_READ) { params->hwcaps.mask |= SNOR_HWCAPS_READ_8_8_8_DTR; spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_8_8_8_DTR], diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 85b0cf254e97..7bc1cde049b7 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -514,8 +514,9 @@ struct flash_info { #define SPI_NOR_DUAL_READ BIT(3) #define SPI_NOR_QUAD_READ BIT(4) #define SPI_NOR_OCTAL_READ BIT(5) -#define SPI_NOR_OCTAL_DTR_READ BIT(6) -#define SPI_NOR_OCTAL_DTR_PP BIT(7) +#define SPI_NOR_OCTAL_READ_1_8_8 BIT(6) +#define SPI_NOR_OCTAL_DTR_READ BIT(7) +#define SPI_NOR_OCTAL_DTR_PP BIT(8) u8 fixup_flags; #define SPI_NOR_4B_OPCODES BIT(0) diff --git a/drivers/mtd/spi-nor/sfdp.c b/drivers/mtd/spi-nor/sfdp.c index e4e87815ba94..e1b7547bf81e 100644 --- a/drivers/mtd/spi-nor/sfdp.c +++ b/drivers/mtd/spi-nor/sfdp.c @@ -1089,6 +1089,14 @@ static int spi_nor_parse_4bait(struct spi_nor *nor, spi_nor_set_pp_settings(¶ms_pp[SNOR_CMD_PP_1_4_4], SPINOR_OP_PP_1_4_4_4B, SNOR_PROTO_1_4_4); + if (pp_hwcaps & SNOR_HWCAPS_PP_1_1_8) + spi_nor_set_pp_settings(¶ms_pp[SNOR_CMD_PP_1_1_8], + SPINOR_OP_PP_1_1_8_4B, + SNOR_PROTO_1_1_8); + if (pp_hwcaps & SNOR_HWCAPS_PP_1_8_8) + spi_nor_set_pp_settings(¶ms_pp[SNOR_CMD_PP_1_8_8], + SPINOR_OP_PP_1_8_8_4B, + SNOR_PROTO_1_8_8); for (i = 0; i < SNOR_ERASE_TYPE_MAX; i++) { if (erase_mask & BIT(i)) From patchwork Thu Dec 1 19:30:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Barrett-Morrison X-Patchwork-Id: 28521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp447296wrr; Thu, 1 Dec 2022 11:32:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6p0QjIBb8L/A8/hKKOyHpAZpo9DY0TPXsX49dsC/4zaBhgmpHN5xDrjtPRF1T8Gy+lDg4/ X-Received: by 2002:a17:906:4cc1:b0:7ae:50c6:fd0a with SMTP id q1-20020a1709064cc100b007ae50c6fd0amr23401442ejt.184.1669923166773; Thu, 01 Dec 2022 11:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669923166; cv=none; d=google.com; s=arc-20160816; b=C/wx6JrsiGjDZAllzEn+iaYRazxPjiDq2LlF6AG0Hlqn4LyTRUZoosNmEk1eEs2mEt 1UuaTOiTLxVdTwM70+ZaIcG3RUzW6T/q7GggcKb0X81u6WpJx8uQ3xKXARsGpKw3EORJ t2wtlVITr9zJu1asFHu60nEAitdR76AQJNHYHCObBVXypeyOqED1/Ht1ySIfTKVuzrvF qdKQodDTWTjJvAt1DUvUsO+ZTcsAv4m3NoO0aavjGbCV8MrmJQgzMDmWimEjG8u4fS8r /vzUBZbaIx3ig1nB5QrHVCSTlL5sbmgKCx+cQxOh/dZDi5uRbYH6YTMnoP59CF/rLnwn sXqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=8qZZ/bmZwEI9aDSPcyDyAicp7ItEQHVjMS3j20zf9fQ=; b=MoNXPzsOMor+ARpwfjEyk+504UQL5Kpm0xo+2vcjbRdm5p8Fv21O+1BR2bfOoLvrSH fMMck/1OnzgL7zWMNpED99OP/wo44UCGigNdAE0JYbHMQqbtgtDARxI9Fcl4bhb4PaON kZc0GFJIOsuzOWZBFhORM+WxuwJDTZGVvMgql9qKFHIEzKKDU6iojo+craBzMOrUjTnj RpTH/dCs/plxUSrjL4fZ2jxOysrm9kOLC26Rcv47t18DVoJhX2M4uk8MUqiMyqS3U38N 0gfSoDzlZ33dwKGqIUmpKIUZAPIdm2bgOb1Y/Bv3fT5RfSAggXkHkxtHaQoKgszkSPcR ZcCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=aLynhYNy; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a05640240ce00b0044615ee1b6fsi5106772edb.218.2022.12.01.11.32.23; Thu, 01 Dec 2022 11:32:46 -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=fail header.i=@timesys-com.20210112.gappssmtp.com header.s=20210112 header.b=aLynhYNy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbiLATbB (ORCPT + 99 others); Thu, 1 Dec 2022 14:31:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbiLATae (ORCPT ); Thu, 1 Dec 2022 14:30:34 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02D86C8D2D for ; Thu, 1 Dec 2022 11:30:21 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id h16so2208028qtu.2 for ; Thu, 01 Dec 2022 11:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8qZZ/bmZwEI9aDSPcyDyAicp7ItEQHVjMS3j20zf9fQ=; b=aLynhYNyioy+NfHU2wZDQeTHz+lUZ8ovDqQOsYmMrvKUArjXnpnIGeVFpkjV+GMIrF z7kQV8oVgUb5/y4/fYUBu9KgERLHJyOPBDzfFVX3GSLCIyT0B9++txvs8jEtstB9R5nI 714uIkH7csYI/PaSVEqz2yFf2CSRfTG4dhZvA2hlZEmvEe7MHGpvMR1LZ/oZs02tJ4Sw zztIViIYrrMentHreQwZgasrF28zBZ/Mx3+yKT1UdX7d6WMvhf2cH7v2R7iuAfJHq8Mp U7xTPPsII92xfyyyBw9EyuEjjpiow2qQzq4Pr1LPGb4xB9Fb0I1u4ZC1zKQXi13RTug8 hdcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8qZZ/bmZwEI9aDSPcyDyAicp7ItEQHVjMS3j20zf9fQ=; b=KhpjNdJ+V2qjx3ycILTsAcY2UxxGcLSKB3weEWMUyzKW1so7mNkpALWKPmcG2hhJ0Y GcGn6UyFd4r/qqlJ+vfX91c2Yp2Hk/bLY2ejmR2AO1/qaEhNWo+RS9VnSTaM4z5HkwZG oAhRWnHzR4HwJUNX64axZe90XdoQUB5mx3O/KaDXLWQ9UXnbWV+lkN8n+rRhYYfOzcJd AD9cexLKrUbUYACgDkgiszgZrFg5RCtFPuVaJE/Kr827KKsMOaH7vL9XzwZoZ9XzNXv4 bcMezol4wLKa/6ORHpaCYV9GAcYUCNJSGif4U2Rgn51+6cN94PNXhhc0foohgH8XQIAi m9hg== X-Gm-Message-State: ANoB5pn9PihPH9GAS0eJuza+41fzQyYRkPYRjMn5Qq3u0HsGHvX5Ev04 G+bIBciKPuJzjTtya6305Zog1Q== X-Received: by 2002:a05:622a:40cb:b0:3a5:7e65:ddeb with SMTP id ch11-20020a05622a40cb00b003a57e65ddebmr44639337qtb.424.1669923020093; Thu, 01 Dec 2022 11:30:20 -0800 (PST) Received: from nathan-ideapad.. (d-75-76-18-234.oh.cpe.breezeline.net. [75.76.18.234]) by smtp.gmail.com with ESMTPSA id h19-20020ac85153000000b003a6328ee7acsm2977748qtn.87.2022.12.01.11.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 11:30:19 -0800 (PST) From: Nathan Barrett-Morrison Cc: nathan.morrison@timesys.com, greg.malysa@timesys.com, Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org (open list:SPI NOR SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 3/3] mtd: spi-nor: Add support for IS25LX256 operating in 1S-1S-8S octal read mode Date: Thu, 1 Dec 2022 14:30:06 -0500 Message-Id: <20221201193007.261690-4-nathan.morrison@timesys.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221201193007.261690-1-nathan.morrison@timesys.com> References: <20221201193007.261690-1-nathan.morrison@timesys.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 To: unlisted-recipients:; (no To-header on input) 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?1751041354674297322?= X-GMAIL-MSGID: =?utf-8?q?1751041354674297322?= This adds the IS25LX256 chip into the ISSI flash_info parts table Signed-off-by: Nathan Barrett-Morrison --- drivers/mtd/spi-nor/issi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c index 89a66a19d754..f00f1e621d84 100644 --- a/drivers/mtd/spi-nor/issi.c +++ b/drivers/mtd/spi-nor/issi.c @@ -74,6 +74,8 @@ static const struct flash_info issi_nor_parts[] = { NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) FIXUP_FLAGS(SPI_NOR_4B_OPCODES) .fixups = &is25lp256_fixups }, + { "is25lx256", INFO(0x9d5a19, 0, 128 * 1024, 256) + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_4B_OPCODES | SPI_NOR_OCTAL_READ) }, /* PMC */ { "pm25lv512", INFO(0, 0, 32 * 1024, 2)