From patchwork Thu Jun 14 05:11:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 138512 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1637171lji; Wed, 13 Jun 2018 22:12:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkDucwHvHxwq1k+uPKvKg1MqdB09oAOprrMxGlXwsGhf1KoOYw3ESShD3UV7UrrzrMBUaR X-Received: by 2002:a62:3a59:: with SMTP id h86-v6mr7884192pfa.209.1528953120656; Wed, 13 Jun 2018 22:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528953120; cv=none; d=google.com; s=arc-20160816; b=mtcM8Zn5GiGrWwvvqlBNYHzt4FM2lrtWXt40xREpcGnMzSTyJfHqPkDK6SdYSr/y/Y kyCApZoeXQJQwWAvyUawBfkHpHdTwHa2u7ucwIn5ckLQ7nx2fFVvjv42IpAJEOt+24Qg Uxs1wBbpzU2q4EV7iCrIKvqPLEwf01rW6PdUnARwUwJED8Q1Eh1qTHqusLjiRhXKkHum eJldGgd0GO4jlB/VK9u4UzznkRiNYTQZrc+SlID0VcpjClULPIm5YcMVAySTXltmYa1t r9F+fzpTwEfQk1HG4hy2XtKdGeSAwoXbxaVqucAPp5Af4W9RYjwkkUPgOdmfin3Piub3 U5GA== 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=6l1WDC5pBstx5Nrr+52ISWCpZHPg0fAJLVzz5zdwUlA=; b=Wz8yLCIx16DsvG9rw30gkLk+3Rjo9wkDQkoOtYH+VwNSLFEUD+/yVcC8VHhs2R+XTp nE7byA4GEVGe90vv+V0gsI3wgh8uhcd3rjyx2Oia+X156WslhWSc+eAhao+1ejkwls5V 1dtJOYVoohlIUU+SFU8xgKUhEGGBNs/DKgo1pN9baGGK34cU8EJlcIIPGREWRNR2ad5W C9qKzekMgFw73uBkUVLiuEsG+NVZKG60H8knWe8udm9+vvixcGDYPPCKYNk2UkrpW0mp 0pvjDWFUZWyN7xD4zMFVwulkyfivqHyAcYAvHbRoaI1fki6w6HEc4UNoQPL3mv0TJ/81 msGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=LK6QZXAq; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Lb2vcKHm; 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 ay5-v6si4347025plb.459.2018.06.13.22.12.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 22:12:00 -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=LK6QZXAq; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Lb2vcKHm; 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=6l1WDC5pBstx5Nrr+52ISWCpZHPg0fAJLVzz5zdwUlA=; b=LK6 QZXAqY12lkvludQ5P3lBXJI2C90wlY7CLAA3jmOEohjy+usS0uzgUHieEmosWL5TeqH/o86a+OcbN 8tmEtNadpfLbp3lHCO5bobo3QnfzM5AU4+O5KKQP+qMLD2gbltB8DoUnjdrMXkoItfcjZVBPyBdki w7qJtkYMzVpdMrbq7El0WTWvRQlSLcwW0J1Azsk0+MDprDZ+vOVVelBklNBfbvxVFZ3zZzAu/DtJh TKg2WIDArod/a/HhLkfm5XD8D6q3EF8/es4d95WiKazuURyDJNSxDyFMeluYycms1TNqzXDlFut3C A0lhXvMtBsBsjeHG1EHBhomZDsA8V7Q==; 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 1fTKXu-0004rx-GM; Thu, 14 Jun 2018 05:11:42 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTKXr-0004q3-Gq for linux-mtd@lists.infradead.org; Thu, 14 Jun 2018 05:11:41 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w5E5BB4b003441; Thu, 14 Jun 2018 14:11:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w5E5BB4b003441 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528953073; bh=s9Ua+GfXwmnnKrOVECM3ySMSKbwMfG8JOtdWT2qz94g=; h=From:To:Cc:Subject:Date:From; b=Lb2vcKHmd8Pk3LJkW4YLypHdJQEYlcBPLtTFYIuCOpkd448OD2uUtBPoHRC9kTypB I9OvMwO9EWowRRQ27ctamf9MZpdpyH+H0XFcXMv1LsXFLfQZ5HzA6lkh794R/hXlKe +qs8qXpBavBE2qRkAvchWUK6VbdejYumZiI6YmpQOIAS/qlQADyxxDyR/82sMOlxgE R0bRSVJOSLm+wXdaCqvA4quqWmysQ21yE6jGvf3UYSe8G1QH+fYpUolmg4WqlrwCsk /GE6uMBpG3KJL+5TLxYrOUGQtpljZW8bgnISnMfaJe/wycZpu7uM907YpfOffTJ0qu zh0iovIuZPu4w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Boris Brezillon Subject: [PATCH v2 0/3] mtd: rawnand: denali: add new clocks and improve setup_data_interface Date: Thu, 14 Jun 2018 14:11:04 +0900 Message-Id: <1528953067-24324-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-20180613_221139_933608_FB5AD8B4 X-CRM114-Status: UNSURE ( 8.56 ) 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.77 listed in list.dnswl.org] 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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 , Rob Herring , Brian Norris , devicetree@vger.kernel.org, Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Rob Herring , Miquel Raynal , Philipp Rosenberger , Richard Weinberger , 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 v2: - Split patches into sensible chunks Masahiro Yamada (3): mtd: rawnand: denali_dt: use dev as a shorthand of &pdev->dev mtd: rawnand: denali_dt: add more clocks based on IP datasheet 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/