From patchwork Fri Jun 15 01:18:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 138637 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp215373lji; Thu, 14 Jun 2018 18:19:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKINOqve51v4ejHtorDjB3RKgFqOSimFHMiiab32Sg35fYFoOoogJwwWjBqcNQw8/cZod1xu X-Received: by 2002:a62:e03:: with SMTP id w3-v6mr7455261pfi.173.1529025599772; Thu, 14 Jun 2018 18:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529025599; cv=none; d=google.com; s=arc-20160816; b=DSw46fx9SeYI49PKOY+Nu80RrZmCugZXdowZBP4pgx18MSGOvCGs5lFsp6zvCODNYv 4A1Dk/LRHKqYMY7JCECzS3r8k3Yl/aOE78bFNlae1bQk9oPHKwuvNUxLUQAQIywpeDpM N+QrPewjyRpSCDG3qsBHjoWh/Tr1dN0vD3xVrJ+9uSzd1XlhoHacQl7ru9q9HerI65MQ UlyifcFKDF2WMw8ZqFd3OKnvoAHH1QsP+v036G3ekY3+kn7V7ZzZGz8o9amQ4DEysO0w jwal2hwYCy+Luw8mSaGIX9rr+WL7A5RTmvbkiZEVwxTsRZcwU2q0Du7TB9uIRZh9O9nX nVpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter:dkim-signature:arc-authentication-results; bh=dt8lCUDiFQNGrWsvs67H0s/RWqOrnxkxeTLmeqPnr5U=; b=rNAFXFpAuCO1qwScUf4pBunXyIQOrSArDNwC6KWKsBvS8my7xTCM6hNvXJNYwY+piq jEBu7Ra5LpEkr+s6Zeyy2gPbWEqIRZwy9lWpmWlyvtxc6qSo/ykcSUI53G4y/HMN7aZE aD8XFmCSVWySGNEfQTZKWYgsUCnT3rajN6lhCFBJmod/sxps2lkTM4wQE+2DBZ/tTu0L hmr4MZN4bMtOHVjfX/JAYhxkuZdWOcwtAHyGsVNP9V/8Xf5tFs6gx7+6uanlNInVjoMh 870O4uxzLzj5nltyTX7u/ZcTOXOBgGMgytSWwjI3IYP0vTqxz82TRhY7rkc7h9g96Now OXTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=oLdHWdN2; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=b8ZRpkD6; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id z20-v6si6651342pfl.209.2018.06.14.18.19.59 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Jun 2018 18:19:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=oLdHWdN2; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=b8ZRpkD6; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject: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=dt8lCUDiFQNGrWsvs67H0s/RWqOrnxkxeTLmeqPnr5U=; b=oLd HWdN2/3eI6eSiqnNlXMSJchHKzbyEDui7OAUlcoMwG3/Sq3cbeJ9lodfL5D9L1vVdeUWz3yMVeREO DCilBU4brbBxPymXjKOt2Ev2lb602zNmBTsYnlh4OYoxuMSdBFSNwyFXLOGhJhLUoeL33ExE1QAXR UsupYKRsYaKpGhuK8uv92yG2ltM/4A/rc6RjOlhpLJeaztp108uoDDSeT+XKxGIiDVg71rtuoIv5n eNDUlercz8ZMxKjJH10TodJbYQmih8hw+L2o6/nm4Tz+p8OgWAOQWs3/11GTm46IBacS01qncVmvq 4H/rwfYxt6lOgdVE/tddhklDhWYgOtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTdOo-0002wa-Jv; Fri, 15 Jun 2018 01:19:34 +0000 Received: from conuserg-08.nifty.com ([210.131.2.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTdOj-0002tW-1w for linux-mtd@lists.infradead.org; Fri, 15 Jun 2018 01:19:31 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w5F1IuMK005465; Fri, 15 Jun 2018 10:18:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w5F1IuMK005465 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1529025537; bh=+qIGTNlmq5SROdGPyHBw0csBO/ERnyEcIbUbhqg5spU=; h=From:To:Cc:Subject:Date:From; b=b8ZRpkD6FmcyFg9qlTY4dTCNtckm8Gbab0krd50+RU8CRJFqfug3QTXLve97GjGOH pMxA+KkrQTBUZshirMZTdOAzjMLIIz6+vcea/mvn9mb9yP990igBvrgbn5XYRB59gG ETRDDNPXXZyCrXHFz98FuSm0sXXQEO05B1DmNxZ2FEmvsi244WczS6BHTPPX7p/xva jMQDNkp7RZx7JTkop7MvLmqc9rMi5YuYfqMJrafE/lmRDU6pNWHAScrtxVQLTdRMkA oFzrIowWZZR7behGqL+QFRL0d6QjM7bWUGFlWBnzVambH/cXYWI1QwdrWWtVu0blin zcx4lwCZEh40Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Boris Brezillon Subject: [PATCH v3 0/3] mtd: rawnand: denali: add new clocks and improve setup_data_interface Date: Fri, 15 Jun 2018 10:18:49 +0900 Message-Id: <1529025532-22087-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_181929_470075_257B6698 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.131.2.75 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Rob Herring , Miquel Raynal , Brian Norris , David Woodhouse , Marek Vasut MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org The ->setup_data_interface() hook needs to know the clock frequency. In fact, this IP needs three clocks, bus "which clock?" is really confusing. (It is not described in the DT-binding at all.) This series adds more clocks. In the new binding, three clocks are required: core clock, bus interface clock, ECC engine clock. This series also takes care of the backward compatibility by providing hardcoded values in case the new clocks are missing. So, existing DT should work. Changes in v3: - Change the patch order so that the bug-fix one comes the first Changes in v2: - Split patches into sensible chunks - Split patches into sensible chunks Masahiro Yamada (3): mtd: rawnand: denali_dt: add more clocks based on IP datasheet mtd: rawnand: denali_dt: use dev as a shorthand of &pdev->dev mtd: rawnand: denali: optimize timing parameters for data interface .../devicetree/bindings/mtd/denali-nand.txt | 5 ++ drivers/mtd/nand/raw/denali.c | 49 ++++++++-------- drivers/mtd/nand/raw/denali.h | 1 + drivers/mtd/nand/raw/denali_dt.c | 66 ++++++++++++++++++---- drivers/mtd/nand/raw/denali_pci.c | 1 + 5 files changed, 86 insertions(+), 36 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/