From patchwork Wed Oct 19 08:20:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp199031wrs; Wed, 19 Oct 2022 01:31:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5P2R9zju1vTxjs+kRRZSqifqErGVT9+XScEisIOadzrXyFBTC1eEAP0Y08sdXTPHOlWLb8 X-Received: by 2002:a17:907:971c:b0:78e:63f:c766 with SMTP id jg28-20020a170907971c00b0078e063fc766mr5754487ejc.330.1666168261951; Wed, 19 Oct 2022 01:31:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666168261; cv=pass; d=google.com; s=arc-20160816; b=eUnyINXtU+vXx2JosJywxCgi4FO8N2X5rOVnsdssnKT0iacj8lhhCz46/iSoERN/45 R8xNAyvHGocydIUaHDEvIVsQS/gHPC1DAWiMvMYAegq/NYBn8xhkwW6Sj1XzyhdqLJoI 77t+wsxHfhITT9sjhOiHu4Oq4Ov+SDqbUUkEKvYApKS5M8aPimDO9joJd36Wu9/oD6sg G61jnOqOxHB1ewdjhQTSgu5q7Zuu7paazIyeMqcVkbq+jONMzxW5ibpABmXV2UB7V+md 5UVOr32/fhRlg/SgtiMGjpu3+OM5tSHGH69k9UiB1xYf+yIJzRFrLdztGfOJj8tgENBL /PZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=U5gcxKw6kBAuTeYhNYKLE28PJ9Ultt1mYbnBswebW0g=; b=om8dv8JF1Mf43NczUp92n7IaDyLy3X0IBNgrfpDiXnpkQmsUK74+pk+bzbqmDqYocd pq9+rUzq+kffcCObQonqtt6MuSmJJJcOeUg5RYp32wAEGICeU3YpwGcY11s1Z5n4MXc9 7xJyg2pivNwHThpz4B9WhnpLdb6NPFUM+RL1FHDj8t/13X4VrBbpHkMRw8CG+KtgPpt1 SYQ1u6ZlczWnYZQFdXP0Xou3dsRyiWphxd8KnJyfnhmgaUK3hmpNDlsHvmuO+1hnSJyK PbWIZCOtgnXGuo888UzAsSB/kTg2587r/UIQ40O7ixy3iUFqVvZCjR1rszVnYYd7EVHv 5MCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@plvision.eu header.s=selector2 header.b=wjkjNkMb; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs20-20020a170906dc9400b00791bcf8aa61si972114ejc.505.2022.10.19.01.30.35; Wed, 19 Oct 2022 01:31:01 -0700 (PDT) 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=@plvision.eu header.s=selector2 header.b=wjkjNkMb; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbiJSIVu (ORCPT + 99 others); Wed, 19 Oct 2022 04:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbiJSIVj (ORCPT ); Wed, 19 Oct 2022 04:21:39 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70103.outbound.protection.outlook.com [40.107.7.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82EA77C312; Wed, 19 Oct 2022 01:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DrQKAA7C34Z5l2mafIlP3tXbVcFK8sk0F0XbXvp9gfr6rxlNwnPv1HNxyLb8lBmQfzFH07CFDJt3SKtxp2s9ngn4nGWt5VfdWCCwsi0lOP4WRD5ltwx1xnk/HAoQjKvPxqQNato5AwVVGKGi+gOvqhNjvSC6keuD/rEEgOYdw2Tfvh1XOUToYU/D2GTHAW8wkYMrIr0knAQb30nOL6ukUwI0OW96lc2oF6RwX/o5N5pmqzyBwZ0xn6vxFZMQqW7ZKH1Aki6L7ivooCQ5zCa7qCKn/p/X6EscFiYGH/qc+9Jj9KI4fkDxczLorplolne1hvTAj3zpbD6/BHGwx8noYg== 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=U5gcxKw6kBAuTeYhNYKLE28PJ9Ultt1mYbnBswebW0g=; b=mXBh1bz5m/UzHT5wyoHHwMLqVXDuRIlsn7hgmZbJ/fkMxFZdEW+/yf7hm0fpKgpDEbp6YKrVBC8UGx3Y4vjW5n1LRBUwYD08ppLA33L7F9We8DOX5IoQN5wGgQaIAIRmhaO9wBS3TDE7ySdGHxTC614UpptAt2j8wOcZF/6TOdA/wInVeT0pyEfP2G/avC+CJYZ1a1IHOCVl/HPFy2kW/24eFxgWZKV9Z0lWCTqwbkg9Rcszn57KfKufI04VaQjsld7T1EK6IBlu+dQ+VqSDKLozPr7TczZqubCP6EJzdD8w1RTR6ZDqXAle4PEyXEEcK6LpLvYfFcM5/yaed88llg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U5gcxKw6kBAuTeYhNYKLE28PJ9Ultt1mYbnBswebW0g=; b=wjkjNkMb9BIuGMYfL+6CqJNVY2TP5FStOPFy6tTfZNmRH9CDPuTwBEZ39sGbM+1Uquw5P0Cgnu9zplWZjk3UGvXCK3xlnpCwGAF+Xwh+zE2VsEfZtONJA+jegYHB1SyfrWUkPKzBPA643YDPzaWZDyVm64q2+w9+R+cZpkjHego= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by DU0P190MB1930.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:3bd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Wed, 19 Oct 2022 08:21:35 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::a621:b61f:de56:b8]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::a621:b61f:de56:b8%7]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 08:21:35 +0000 From: Vadym Kochan To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Roger Quadros , Florian Fainelli , Wolfram Sang , Liang Yang , Thomas Bogendoerfer , Aviram Dali , Vadym Kochan , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Elad Nachman , Chris Packham Subject: [PATCH 0/3] mtd: rawnand: marvell: add support for AC5 SoC Date: Wed, 19 Oct 2022 11:20:37 +0300 Message-Id: <20221019082046.30160-1-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: FR3P281CA0110.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::7) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|DU0P190MB1930:EE_ X-MS-Office365-Filtering-Correlation-Id: 97c8d59a-0afc-4cb3-f805-08dab1aaefa6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KeIneszRI9n76lYuTXYN4V0DtPP9DKDDWASTb1ws0x4UtNDXKC5EnfCruDKPx/+UHQeOKTm9Vk4g0bO+E58GL0yk0/UX/Xc1NKlwvCB/jc27n+obrlLS1A/+ynF8jN00SAyen8bMHqAqmw9nAHtAeK4Xv2kXAn4ic8eAeRnznpdtH34F1ZEj7YCIavE+rDEVpZSBarLCoRFIJHUqavoDgNyx9cT62QXIbSRjpkkhPPARwwpG6q28tgIzvOjHgU4s780f1J73Tnj805bevuvF2Z/fp0pz54ymjAR/81OYycSeUyN76R+o5PobPrlqC6HBlaKYUF35BHxhrwRk74CDzrBLU4H1t1FvIcxSar60EyFFz0ediRVTRaUfguWRRBthUQFVmIkgLQbM3pD1Hw9d24TenPdPqVE1bpMlgbxtk/CxnzRSMmMcngapUZ9uK/dfBjl2LGqejXgD6D7G7o0S9b/BYoSTgQuC+n/HCoSDu3ud12yAN7B8cS83w0U9/6hQqAXyZKHKtg1K03ul8gvSxK1GowKKQkih1bvAc/evT+XQg2cJ8ZtZYK5sfxOCLXsJNM5P4LHwFro7DtXtaIJbF8SynTVWFU7EbhSlc8qhk7C8oG8botb97N37P3mATJ7w1SagB6X70YY3+0ico5F4UWrphfRzPWM24mnd9wXf6ILEhzZS5lN1hAy1QT48Ln+Dm7Q22CVl8Jy3j1iffrbkOyF1g8EWdoPLI1PUtRWQkPF/5yXpjOenbiGUKpEbC3F/jl34MDK8h16yUh/P6HbT/w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(396003)(39830400003)(366004)(136003)(346002)(34036004)(451199015)(186003)(2616005)(26005)(6512007)(6506007)(1076003)(52116002)(83380400001)(7416002)(2906002)(5660300002)(44832011)(41320700001)(41300700001)(110136005)(6486002)(316002)(508600001)(8936002)(66556008)(54906003)(4326008)(66476007)(66946007)(8676002)(36756003)(86362001)(921005)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LOMD+suXqI6TtLUAfK52LV3JJgZRzPgftoNHgfGp9+6nDeI2u0O2p/n21mZfhLvEbg5Q8gF/tJ2vMBp+ROqSWGvWId6jI7MJNxQWn+qn/P5gpm6z5V5COGsgXSjFBFQqn50eNvHTPDm75iNpMpi8R8r2hoOv89DIa8HChW+j/HH+DhmvBUWkcXDhrkDSdBgiaYAdO9iatEL9ErIFnJ0v1U95/dhbmb2BWe2PZnXeQYGnba9S4Iv13HLCnMUgep6FEjDDusHA4rR31tdr+ETLvzaZ2hQZfUHnLc6uS3yHo/z6e+3/u/OcF9iNpbuGF5zM7lHgM/6VmSBpaDdYZfZHPiSvglWVqibxf7cS+31tNO0+LnCtlVsm6oR8x12y307a9NR6FiqZdECiTJl8x7lEvKRkvPAxuIt61AxJbVB9pYhTjun01O7zP3cyV94ZXcSMZ4DgiFijAa24bG0+xHgCHn6O2ZMNBzmQaZ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Kyuk+WUj/rRcwSLX4pkKNK9Wwt1+FqfYnMy7ZIwQFwfDJ5+YwMCDgL81PlfQRg5c/aL7SU7h0E03+X2WQ== X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 97c8d59a-0afc-4cb3-f805-08dab1aaefa6 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 08:21:35.1475 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /3TbRP2OcriTYVfBRr+YHtT3bD2dWN+ZT8Danjhsd7+uo8Y+c60MJ90lSFB9vYvXrsPrvw0Dx17SGlqHx3vqyVfIVtQfe7GtEiEC7JfSmuA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P190MB1930 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_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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?1747104051273938495?= X-GMAIL-MSGID: =?utf-8?q?1747104051273938495?= This series adds support for AC5 SoC. The following changes were made to add AC5 support: 1) Modify Marvell nand NFC timing set for mode 0 2) fix validation in AC5 Nand driver for ONFI timings values modes 1 and 3 3) remove unnecessary nand timing-mode in device tree of ac5.dtsi 4) add nand missing AC5X layouts , add option to use ndtr predefined values 5) Zero steps and total fields of ecc in ecc controller initialization so nand_scan_tail() will calculate these two fields, otherwise NAND initialization will fail with kernel 5.15 and above. Aviram Dali (2): dt-bindings: mtd: Add AC5 specific binding mtd: rawnand: marvell: add support for AC5 SoC Vadym Kochan (1): mtd: rawnand: Partially revert 4114f97c41cd ("mtd: rawnand: Get rid of a few unused definitions") .../devicetree/bindings/mtd/marvell-nand.txt | 1 + drivers/mtd/nand/raw/Kconfig | 2 +- drivers/mtd/nand/raw/marvell_nand.c | 277 ++++++++++++++++-- drivers/mtd/nand/raw/nand_timings.c | 14 + include/linux/mtd/rawnand.h | 3 + 5 files changed, 264 insertions(+), 33 deletions(-)