From patchwork Fri Dec 17 15:55:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 12696692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9F51C433EF for ; Fri, 17 Dec 2021 16:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=p0fNHS+laG+L3Fub+kcr+M4Gjt4/ORMeP5Ca01QIp7g=; b=aW14TDOdbF3x2r carirv/yyWJYYpMn89Y35rxEKhQazWgVQPm6MlN9C51BGu9tuI/ZsUWNiHCzFSZneVNdXp1W4s3mM ueLKWqOtGZ8xjTGDgWsPREqi3AoNplo2VsHvTKMCqNZPuVi5F1SfOKqNoXXtlVm12/1090aqcpG1D Vf8QQKrgdY9tnBQb30kyIO5JZsQqZCA8MbWpgAARNZ197Ez9hRmBKk5ARdIpObMwJYWTh/1SkEj9T Y6t+flpPtWxp/qaZIjBUwZEnr2WtTW6BdZddZTFMNN3IvYHdxm2JWFTGNxxnxTkkiASEZO/mhgftp 4nfptgt87stLL/owjyrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myFtJ-00B6ux-2q; Fri, 17 Dec 2021 16:15:29 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myFaG-00B1SM-1e for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 15:55:50 +0000 Received: by mail-ed1-x535.google.com with SMTP id z5so9553658edd.3 for ; Fri, 17 Dec 2021 07:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AfgZyMdEJhIrrC8KaYKPJsgOg20Fl0ent8NPVFsoxgs=; b=jQJPDfeUneKUEoWKPIw/VV44os2ZKX4YQslFa1zcE2bvla40AAxuuvcZava/OcOLYl ebuodp+o32Gk/rxi0DCEFl4gXg4ECbq7IBiMjNR9ACtIkZ6fApGCy1Rp9SNWADlTzJ8C npS7fGXItS9q+gBzdRWqsFWMUgygfjDJRoB+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AfgZyMdEJhIrrC8KaYKPJsgOg20Fl0ent8NPVFsoxgs=; b=1ZnZzyQFaaIjkc5L/uRsKzntiZC6kTLmbQuQdiw3yE4UV2hYhOWVX2hlWE/aG1NS1r M37uwrY9a3w3XJSisiP5FtSogSybqFKcseDkW5b8yzFmk+MvjcaAxKKCiJERqhYT+rXM NxhGHbOZXDQOytRKVsOhuVE8PK0THSkEwQztja7GUh5flBVAXJMZg1DE7j/AGDALG/B0 aaGnRX6XmhQ2h8DUgGZ2uwYqo6rvYzYGA77/9HlpjrN6E16BiY0+vrCCcrXwV88uRleO VFhTKH0r9q7WuUe6IEnGUclBxrlEXfo7KEOXCUJGwz9szHn0dT+2dAJd3cDQOEMpK4NK WrzQ== X-Gm-Message-State: AOAM532Jwz8rDcbC+gzNXAfLHN7OInojEaHO1QEq7fdjwzhID2v9aMg7 iwLqpYGZntjD/FbhbD4OD9yH2A== X-Google-Smtp-Source: ABdhPJwrqR1fUITbPzQl9qu5oFZPzkp0eOH0jA+KuGRGaM/zEYWpckONxW4PWxfDYd99CLnUnT9rsw== X-Received: by 2002:a17:907:97d4:: with SMTP id js20mr3061659ejc.416.1639756545817; Fri, 17 Dec 2021 07:55:45 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-79-56-50-241.retail.telecomitalia.it. [79.56.50.241]) by smtp.gmail.com with ESMTPSA id i6sm772158edx.46.2021.12.17.07.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 07:55:45 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Boris Brezillon , Fabio Estevam , Han Xu , Michael Trimarchi , Michael Turquette , Miquel Raynal , NXP Linux Team , Pengutronix Kernel Team , Richard Weinberger , Sascha Hauer , Shawn Guo , Stephen Boyd , Vignesh Raghavendra , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [RFC PATCH 0/4] Fix and improve gpmi nand on mx28 Date: Fri, 17 Dec 2021 16:55:08 +0100 Message-Id: <20211217155512.1877408-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_075548_852555_93CFC491 X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Starting from [1], the series fixes the timings setting of the gpmi controller for the mx28 architecture, also adding support for fast edo mode timings. The whole series has been heavily tested with the mtd kernel test modules, and with repeated write cycles on nand. The patches of the series were applied after applying patches [2] and [3] which at the moment are already in nand-next. [1] https://lore.kernel.org/r/20210702065350.209646-5-ebiggers@kernel.org [2] 73b68455f8ac ("mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6") [3] 7944f8346983 ("mtd: rawnand: gpmi: Add ERR007117 protection for nfc_apply_timings") Dario Binacchi (3): mtd: rawnand: gpmi: support fast edo timings for mx28 mtd: rawnand: gpmi: fix controller timings setting mtd: rawnand: gpmi: validate controller clock rate Michael Trimarchi (1): clk: mxs: imx28: Reparent gpmi clk to ref_gpmi drivers/clk/mxs/clk-imx28.c | 3 + drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 75 +++++++++++++++++----- 2 files changed, 61 insertions(+), 17 deletions(-)