From patchwork Thu Dec 18 23:01:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru M Stan X-Patchwork-Id: 5516561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A1CD29F443 for ; Fri, 19 Dec 2014 00:10:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7350201ED for ; Fri, 19 Dec 2014 00:10:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC2B2201B4 for ; Fri, 19 Dec 2014 00:10:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1l6f-0000gL-M2; Fri, 19 Dec 2014 00:07:45 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1l6c-0000fo-U5 for linux-arm-kernel@bombadil.infradead.org; Fri, 19 Dec 2014 00:07:43 +0000 Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1k4n-0001Xd-Js for linux-arm-kernel@lists.infradead.org; Thu, 18 Dec 2014 23:01:48 +0000 Received: by mail-ie0-f173.google.com with SMTP id y20so1950679ier.4 for ; Thu, 18 Dec 2014 15:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3uKCRh3BCCU1Ynvt9PrcTv1tEnHeyQxorpuO9FsZO0M=; b=cZKAmB4eRQGe+lkJX8vPLpAEjp4AnPd8VbvTA02X3cFuxfCCfCFSej5URruAf7wNl5 Qt2EDxygidM/OIlhJMwr7a8uiQN559qD4HEYhpCwpPN+B97tIlz/YD6nhLLxqrf5wi/G aNPfAdFlr0TsBf+wcY/t+N2tZodlSIqTxysbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3uKCRh3BCCU1Ynvt9PrcTv1tEnHeyQxorpuO9FsZO0M=; b=g6m+nWdXQaaKSFog5/1j9dc5+m+icvUY+DsY3Ee8eNwc4GiYbs/arzz/NJsCmytZdV IVGuudxh/9ZwhoOJfkjlmSQWL9P6bMKNkh855vQQv1XUmnb/eNJ7OMygjBBsW/Lkl4Wc +7Msfu0s3sn+4yjldcUTOJ47DIOTuK1GAw55j9HYzERNBdkKoM66KDis4aWtCBVQpFu4 yS9Yjc0GJ3OcQFZ1BMewzk63Kz6ZcnXurfaeT9d/gGr+pMClotwdvXss8q30iaPPnzFn cX7puWhmVDLXuj5X6BX8Dca1Kks0j5OIYLryja+ks+7ZMr95zVtFF94Zjg28mlkad0nR miOw== X-Gm-Message-State: ALoCoQntGZ94kZDmZP2YJhoGL59iZ0eCxwSPg+Xxt8A0svxO5Ee3vkXsryyJyK0LAb3BQmObv65V X-Received: by 10.107.168.18 with SMTP id r18mr4584853ioe.76.1418943680519; Thu, 18 Dec 2014 15:01:20 -0800 (PST) Received: from amstan.mtv.corp.google.com ([172.22.65.92]) by mx.google.com with ESMTPSA id 37sm1593368iog.39.2014.12.18.15.01.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 15:01:20 -0800 (PST) From: Alexandru M Stan To: tgih.jun@samsung.com, jh80.chung@samsung.com, ulf.hansson@linaro.org Subject: [PATCH 1/3] mmc: dw_mmc: dt-binding: Add tuning related things Date: Thu, 18 Dec 2014 15:01:01 -0800 Message-Id: <1418943663-10012-2-git-send-email-amstan@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1418943663-10012-1-git-send-email-amstan@chromium.org> References: <1418943663-10012-1-git-send-email-amstan@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141218_180145_720231_A9BF04C3 X-CRM114-Status: GOOD ( 14.49 ) X-Spam-Score: -2.7 (--) Cc: addy ke , Mike Turquette , Heiko Stuebner , Andrew Bresticker , linux-mmc@vger.kernel.org, Kever Yang , Doug Anderson , linux-rockchip@lists.infradead.org, Sonny Rao , linux-arm-kernel@lists.infradead.org, Alexandru M Stan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ciu_drv, ciu_sample clocks and default-sample-phase. This will later be used by tuning code. We do not touch ciu_drive (and by extension define default-drive-phase). Drive phase is mostly used to define minimum hold times, while one could write some code to determine what phase meets the minimum hold time (ex 10 degrees) this will not work with the current clock phase framework (which floors angles, so we'll get 0 deg, and there's no way to know what resolution the floors happen at). We assume that the default drive angles set by the hardware are good enough. Signed-off-by: Alexandru M Stan Suggested-by: Heiko Stuebner Suggested-by: Doug Anderson Reviewed-by: Doug Anderson --- Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt index 346c609..5edadc2 100644 --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt @@ -42,11 +42,13 @@ Optional properties: * clocks: from common clock binding: handle to biu and ciu clocks for the bus interface unit clock and the card interface unit clock. -* clock-names: from common clock binding: Shall be "biu" and "ciu". - If the biu clock is missing we'll simply skip enabling it. If the - ciu clock is missing we'll just assume that the clock is running at +* clock-names: from common clock binding: Shall be "biu", "ciu", "ciu_drv" and + "ciu_sample". If the biu clock is missing we'll simply skip enabling it. + If the ciu clock is missing we'll just assume that the clock is running at clock-frequency. It is an error to omit both the ciu clock and the - clock-frequency. + clock-frequency. "ciu_drv" and "ciu_sample" are used to control the clock + phases, "ciu_sample" is required for tuning high speed modes (if no other + custom tuning method is defined). * clock-frequency: should be the frequency (in Hz) of the ciu clock. If this is specified and the ciu clock is specified then we'll try to set the ciu @@ -75,6 +77,10 @@ Optional properties: * vmmc-supply: The phandle to the regulator to use for vmmc. If this is specified we'll defer probe until we can find this regulator. +* default-sample-phase: The default phase to set ciu_sample at probing, low + speeds or in case where all phases work at tuning time. If not specified + 0 deg will be used. + Aliases: - All the MSHC controller nodes should be represented in the aliases node using