From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752387AbcEKDuR (ORCPT ); Tue, 10 May 2016 23:50:17 -0400 Received: from mail-vk0-f43.google.com ([209.85.213.43]:35501 "EHLO mail-vk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbcEKDuO (ORCPT ); Tue, 10 May 2016 23:50:14 -0400 MIME-Version: 1.0 In-Reply-To: References: <1462527648-24443-1-git-send-email-shawn.lin@rock-chips.com> <1462527673-24711-1-git-send-email-shawn.lin@rock-chips.com> <1f2f43c7-2672-e448-eddb-2d613bb8dc48@rock-chips.com> Date: Tue, 10 May 2016 20:50:12 -0700 X-Google-Sender-Auth: 4A9-vMTLBigafH-qaCJwd_vAOBM Message-ID: Subject: Re: [PATCH 2/2] dt-bindings: rockchip-dw-mshc: add rockchip,default-drv-phase From: Doug Anderson To: Shawn Lin Cc: Jaehoon Chung , Ulf Hansson , Rob Herring , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Brian Norris , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , "devicetree@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, May 10, 2016 at 7:50 PM, Shawn Lin wrote: >>> maybe. But I think 180(downside) is the better. > > > NAK my previous comments here. Downside is better for SRD, but won't > work for DDR mode. When running in DDR mode, we should use 90 instead. > > So let me elaborate a bit more here. > For DDR mode, one single clk cycle should sending two data bits outside > to the devices. We need a hold time for both. If 180 is used, the first > bit occurs around the downside area, which won't be sampled by devices > on the upside. So on the upside, the devices will see a zero bit if you > actually send a one-bit, which makes the devices generate CRC finally. > > > For this above, 180 for all SDR mode is ok, but 90 should be deployed > for DDR mode. So simply checking the timing to hardcode it should be > fine. OK, I sent out a patch for 180 always. I can send v2 to use 90 for DDR modes tomorrow. ...or feel free to post that yourself if you want. We want 90 for all DDR modes? So MMC_TIMING_UHS_DDR50, MMC_TIMING_MMC_DDR52, MMC_TIMING_MMC_HS400? (not that we support HS400 in dw_mmc on Rockchip). -Doug