Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp158134yba; Mon, 20 May 2019 06:37:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFlq3Kt1oVYk7q1yPXRnibqeK/YzqZ99YxaoAqhoZw67dcI+H5DdahpwfuGujfLJ6Uxg22 X-Received: by 2002:a17:902:9f8b:: with SMTP id g11mr69348577plq.199.1558359479436; Mon, 20 May 2019 06:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558359479; cv=none; d=google.com; s=arc-20160816; b=B6iufJe9uPg36NTIDJKcnABJ6EG31sMk8GaynROzpSDFRg/BsnLnCisf7MMxli0aZE P2XZ9YpCF8WBqL3ewQQfLtZMyIDBNhxqTWfISHiGDRmgRQhP0tvRuL7hsnduj7n7yF0V A4ahlpR8P2lhvySqfP8/t7cnVHuveXtXiiJvo7u4CA85EThcBeC28miBX9c3VCkovR5C BWp9nFboFIU+Jk+sbi/8WYa+7Za8tYZUB1Mo+b1uDGLKtNEppqlFVxJQIhXLLV4890ZE vPhq7xF/VER5V/BH1igZxztIbx47P0YRf5/SHLm1VvGzggCaM0ikJaIZB/ER4r7doDUc SVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=psGipp4xyvA6ITMw9MQePCESgWaNPblRsxWV83tCX+4=; b=0m6/4ojQhwVezcvJYXC2eNzREqoGpnkrm/iFJS0dtZPwFDy4SJnz+CYhEH7kw4Rrpc HBnCeHbwGR0XMHwqPrtFaCDzcpoEeltvShpva8w1Ktz8vkEm5oPsMBMWQewMczbQxuYd 5fcos3/MrWRW/zTUGjYKPt24RNOK10FYwdCBPjaUotUBMNP24H1eo7Mb+8iG6e3R9tM5 SZAGhPWXWEsfcefg0vSP82rL4I1ujsoUmAxbN/YxtZqGOxadOvSShRYY804UYCqHzce6 FzQH5Lx13EQx+GKDJriA8Bb12mo0jpKROmhue/YXatuJ6pewRxoz0aebZbG6RJ8hSSDX sshA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDe6R5++; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si17057670pfi.188.2019.05.20.06.37.44; Mon, 20 May 2019 06:37:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDe6R5++; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732517AbfETKM6 (ORCPT + 99 others); Mon, 20 May 2019 06:12:58 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33218 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732511AbfETKMy (ORCPT ); Mon, 20 May 2019 06:12:54 -0400 Received: by mail-pf1-f194.google.com with SMTP id z28so7014238pfk.0 for ; Mon, 20 May 2019 03:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=psGipp4xyvA6ITMw9MQePCESgWaNPblRsxWV83tCX+4=; b=DDe6R5++Fzja9VoGMt+SiLItI4KCRzkHl1b612rdgS5J8T5Qo1eIV3EEf38bAPOSdX TBv+I1VgFq1YeFO/fFRQRdPJ6yP5ucgrpKCWk5BCNuPPINN0PWn5aD6QgPmuzNveadlu z5b/l/Apk0KMKQQSP15dUy5V2i24M/9JCfl6AGpouxMxxq6jpBGZeJEGhmp0DVEJ9Mgc rViySazF3M83zMmXn0ze7FWpzMkzuWVcq1y77Ry53gK5IVKl7fWbhNWrcXAeaEaEwgZo IL+bDsrmOJ7riSZ/XjjTj9qBDLdOzEOWfW39uNyHzXJfoylddvQhKcTfId6Sn3+7lWo+ k4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=psGipp4xyvA6ITMw9MQePCESgWaNPblRsxWV83tCX+4=; b=RROmkIk6ym3MvGH2BKgopS+vg0WEqOK5Du7yl08Hg9hzaapEmD70ruajyNTM+o2cDO mH3W9AHw6uIOKYnOHIEm9yYemefBcWg9Mt9z6Li/Ajj0Xjv5pK733Xi2LcSinZa3vh/v lGElNz4B5VPq4MV0rMg4nMl7PqMSfIYaGYAAl4GW5e0fIcVkuSOri03RVRSl6U+ec8Dx 49x0qsP63yj328M/seuVje3JWs7tln6vzsdWNOWfJM5uxS1TUz0JWfOuBBSWP05YLyZJ xWUMFh3BpnHVe7fZbvtn9NWai4qtMMr1RzznmddBlZvDucZbXAKxWldyLVeBG7Ex8RrX UKQQ== X-Gm-Message-State: APjAAAVOPXrGYyXd6HQL8fimU2p0mjNEo81l3Dy51SlFOyc2DYVczLjE s1r/YsBxrAb133luKnX/afWN2w== X-Received: by 2002:a63:d54f:: with SMTP id v15mr33040134pgi.107.1558347174204; Mon, 20 May 2019 03:12:54 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id b3sm30098127pfr.146.2019.05.20.03.12.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 May 2019 03:12:53 -0700 (PDT) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org, zhang.lyra@gmail.com, orsonzhai@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, olof@lixom.net Cc: baolin.wang@linaro.org, vincent.guittot@linaro.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 7/9] dt-bindings: mmc: sprd: Add PHY DLL delay documentation Date: Mon, 20 May 2019 18:12:00 +0800 Message-Id: <96f4304c001c0cf81ecc6bec69665d239203b9b7.1558346019.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce some PHY DLL delays properties to help to sample the PHY clock. Signed-off-by: Baolin Wang --- .../devicetree/bindings/mmc/sdhci-sprd.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt b/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt index a285c77..e675397 100644 --- a/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt +++ b/Documentation/devicetree/bindings/mmc/sdhci-sprd.txt @@ -20,6 +20,23 @@ Optional properties: - assigned-clocks: the same with "sdio" clock - assigned-clock-parents: the default parent of "sdio" clock +PHY DLL delays are used to delay the data valid window, and align the window +to sampling clock. PHY DLL delays can be configured by following properties, +and each property contains 4 cells which are used to configure the clock data +write line delay value, clock read command line delay value, clock read data +positive edge delay value and clock read data negative edge delay value. +Each cell's delay value unit is cycle of the PHY clock. + +- sprd,phy-delay-legacy: Delay value for legacy timing. +- sprd,phy-delay-sd-highspeed: Delay value for SD high-speed timing. +- sprd,phy-delay-sd-uhs-sdr50: Delay value for SD UHS SDR50 timing. +- sprd,phy-delay-sd-uhs-sdr104: Delay value for SD UHS SDR50 timing. +- sprd,phy-delay-mmc-highspeed: Delay value for MMC high-speed timing. +- sprd,phy-delay-mmc-ddr52: Delay value for MMC DDR52 timing. +- sprd,phy-delay-mmc-hs200: Delay value for MMC HS200 timing. +- sprd,phy-delay-mmc-hs400: Delay value for MMC HS400 timing. +- sprd,phy-delay-mmc-hs400es: Delay value for MMC HS400 enhanced strobe timing. + Examples: sdio0: sdio@20600000 { @@ -33,6 +50,7 @@ sdio0: sdio@20600000 { assigned-clocks = <&ap_clk CLK_EMMC_2X>; assigned-clock-parents = <&rpll CLK_RPLL_390M>; + sprd,phy-delay-sd-uhs-sdr104 = <0x3f 0x7f 0x2e 0x2e>; bus-width = <8>; non-removable; no-sdio; -- 1.7.9.5