From patchwork Fri Sep 5 12:04:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 36839 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 64782202A1 for ; Fri, 5 Sep 2014 12:04:56 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf59400743oag.0 for ; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type; bh=mLYrA44e18LueWJ5I3iyszckKzVRk4er6t3zpnSD9d0=; b=P1m+Msk0pyQU9D+na2LGv3OgpgrQHuHj8NhCpUbx7Y5/sJbCow9Uvw/hHFr/6YB7BC nJRMUSMHw52me54i8BWXTTy0SAq6Eod8d9goi8L/zWxh+VfLkRU74Bxwd4oG9ZPBU2mw 39faYaHo4n76nkbkTr+PkUzLxq20EYodQUji+mOaef4ocipbSN8Uk6KQ2kUm+/LUwqRC NeRlrf5XIVhMnjsL0VxAm+jwvrE5Sc4kdTr4cz+xaKJUrmVZTAtwiKV0IhZQ7xrZe7Xe 0DcDF0MDRnNqqoI5YUcrbhELBnB/XCoLvDOqHVUpHiCL5u1tnvcCwA2MZRMAlLp23A64 Ir5A== X-Gm-Message-State: ALoCoQn8D9wx7YlVxzHP6dhMkrbrY1FI2bnxYHnEsdRUbMFjAzFuv4bxcnzcYu7Vnlfx/+VqoGLS X-Received: by 10.50.25.41 with SMTP id z9mr1656034igf.2.1409918695635; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.246 with SMTP id j109ls691306qgj.83.gmail; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) X-Received: by 10.220.159.204 with SMTP id k12mr9447651vcx.15.1409918695526; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id kl5si998335vdb.26.2014.09.05.05.04.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 05:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so12425442vcb.9 for ; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr235607vcq.50.1409918695437; Fri, 05 Sep 2014 05:04:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp72080vcb; Fri, 5 Sep 2014 05:04:54 -0700 (PDT) X-Received: by 10.66.236.38 with SMTP id ur6mr20772604pac.49.1409918693981; Fri, 05 Sep 2014 05:04:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si3814366pdi.32.2014.09.05.05.04.52 for ; Fri, 05 Sep 2014 05:04:52 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932220AbaIEMEb (ORCPT + 5 others); Fri, 5 Sep 2014 08:04:31 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:33340 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932147AbaIEME3 (ORCPT ); Fri, 5 Sep 2014 08:04:29 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s85C4Rvd018405; Fri, 5 Sep 2014 07:04:27 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85C4QPB007843; Fri, 5 Sep 2014 07:04:26 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Fri, 5 Sep 2014 07:04:27 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85C4O9O032236; Fri, 5 Sep 2014 07:04:25 -0500 From: Roger Quadros To: CC: , , Roger Quadros , Subject: [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings Date: Fri, 5 Sep 2014 15:04:22 +0300 Message-ID: <1409918662-20547-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The nand timings were scaled down by 2 to account for the 2x rate returned by clk_get_rate(gpmc_fclk). As the clock data got fixed by [1], revert back to actual timings (i.e. scale them up by 2). Without this NAND doesn't work on dra7-evm. [1] - commit dd94324b983afe114ba9e7ee3649313b451f63ce ARM: dts: dra7xx-clocks: Fix the l3 and l4 clock rates Fixes: ff66a3c86e00 ("ARM: dts: dra7: add support for parallel NAND flash") Cc: [3.16] Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7-evm.dts | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 990ee6a..a120d8f 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -427,22 +427,19 @@ gpmc,device-width = <2>; gpmc,sync-clk-ps = <0>; gpmc,cs-on-ns = <0>; - gpmc,cs-rd-off-ns = <40>; - gpmc,cs-wr-off-ns = <40>; + gpmc,cs-rd-off-ns = <80>; + gpmc,cs-wr-off-ns = <80>; gpmc,adv-on-ns = <0>; - gpmc,adv-rd-off-ns = <30>; - gpmc,adv-wr-off-ns = <30>; - gpmc,we-on-ns = <5>; - gpmc,we-off-ns = <25>; - gpmc,oe-on-ns = <2>; - gpmc,oe-off-ns = <20>; - gpmc,access-ns = <20>; - gpmc,wr-access-ns = <40>; - gpmc,rd-cycle-ns = <40>; - gpmc,wr-cycle-ns = <40>; - gpmc,wait-pin = <0>; - gpmc,wait-on-read; - gpmc,wait-on-write; + gpmc,adv-rd-off-ns = <60>; + gpmc,adv-wr-off-ns = <60>; + gpmc,we-on-ns = <10>; + gpmc,we-off-ns = <50>; + gpmc,oe-on-ns = <4>; + gpmc,oe-off-ns = <40>; + gpmc,access-ns = <40>; + gpmc,wr-access-ns = <80>; + gpmc,rd-cycle-ns = <80>; + gpmc,wr-cycle-ns = <80>; gpmc,bus-turnaround-ns = <0>; gpmc,cycle2cycle-delay-ns = <0>; gpmc,clk-activation-ns = <0>;