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: 5516551 Return-Path: X-Original-To: patchwork-linux-rockchip@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 95D989F54F for ; Fri, 19 Dec 2014 00:07:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5C55202AE for ; Fri, 19 Dec 2014 00:07:55 +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 A42A120103 for ; Fri, 19 Dec 2014 00:07:54 +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 1Y1l6m-0000hO-6d; Fri, 19 Dec 2014 00:07:52 +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 1Y1l6e-0000fo-Li for linux-rockchip@bombadil.infradead.org; Fri, 19 Dec 2014 00:07:44 +0000 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1k4l-0001Xe-UQ for linux-rockchip@lists.infradead.org; Thu, 18 Dec 2014 23:01:47 +0000 Received: by mail-ob0-f175.google.com with SMTP id wp4so6987774obc.6 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=iBcgobRMEJqfIXHLdyXo1e00QJNlV2Fe+sfyyqOa26ErVyAseil2sAmF3gfUHJQBOF cjdxR7yHqYFHtZJF+FgftjD4DqzGD/mn+wdAgTig4Ae+2lj/mVeFo74xUjSWOxiLd0UM XN8KMIH3ny2EUWaIDP8nkoTKeFglpqSXlrUbbevAox5Fvc80UQUMPW3OPjnrB/CAWzgf yUngrZ8Hypq9OqH2EF2shCS1pQFBEOTpHLDNsQFK9POyvvr2VVsMqnJYsm+gMzOhqgZV Y1YRHdXTEtMPHAvAXrrWsvOnDCfJ9/vxpf+YIb6CUJPQ380K6lHwcvZ1edEy+N4bhNfO aPjQ== X-Gm-Message-State: ALoCoQlUfxbZAJ5loyX1h/Zj8HmQYS1kyZ8TEERDXNLiyCbNtT5kxie7cQ3r46wxT7k816hlcCgy 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_180144_077933_0DA93192 X-CRM114-Status: GOOD ( 12.16 ) 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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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