From patchwork Thu Dec 18 23:01:03 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: 5516491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C263CBEEA8 for ; Thu, 18 Dec 2014 23:25:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFD542020E for ; Thu, 18 Dec 2014 23:25:58 +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 1ECBF201C7 for ; Thu, 18 Dec 2014 23:25:58 +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 1Y1kQV-0007Mh-RD; Thu, 18 Dec 2014 23:24:11 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1kQU-0007ML-B0 for linux-arm-kernel@bombadil.infradead.org; Thu, 18 Dec 2014 23:24:10 +0000 Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1k4p-0008Am-VO for linux-arm-kernel@lists.infradead.org; Thu, 18 Dec 2014 23:01:49 +0000 Received: by mail-ob0-f171.google.com with SMTP id uz6so7006465obc.2 for ; Thu, 18 Dec 2014 15:01:25 -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=MYlwde0U+6Dqpo82AArHklc3n56krPuih9JrXjS2qUY=; b=n8q+gvQ26n0rapaF3vD5AvhxApP57E/0d+RfwovWxRDysj/ExNzfZhunNNwSp3K42H h43ycoAzig7W6HJh0lx6x8lO9Lar56seLcH/1p9Y1E40B3r5J/9zGg9cRpFHxSjlqx6A 9IiHAZg531nlOONsFrBOfwTv8opYVC55DqA+w= 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=MYlwde0U+6Dqpo82AArHklc3n56krPuih9JrXjS2qUY=; b=ER7PZO7pDwcaFmK6ddzod3Iodbdws4WvKtk1EgADYYk1wN9SHuw6g4lRXkCNeqLtVR pJK2G5LBZi7Cq+wVtAMXWk2z2SiMAc5NqADTMpV9/XphHYJme+qB51ws0LW2sCjyKX7J dHz7XyRDY+n6JytHU8GO3ch+BFzyEacpfKtDFuULsrFG84j3rD6iJUr8+1j1yTnsKrUl UCDccqD8qAXJ6uT2quY5Z1IMaX1F3eJpgSL8DvVyxK/1+BbtwHr1ItJ7eAFJZk6g+v/D mgLInuOfR0aqoO8mVzoxxiqqCK1TElM1k+RWbpFZSgD4ijcbkpr3FdRN6U4jB/A2t5qp MV2A== X-Gm-Message-State: ALoCoQmm4/nQ6K1LgGgIppctAdkxUy3yrsHxD8k3VdgXh1RJSppKyjHE+Gh+7mC64jq+cp0v4JBC X-Received: by 10.43.52.197 with SMTP id vn5mr4171465icb.64.1418943685407; Thu, 18 Dec 2014 15:01:25 -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.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Dec 2014 15:01:25 -0800 (PST) From: Alexandru M Stan To: tgih.jun@samsung.com, jh80.chung@samsung.com, ulf.hansson@linaro.org Subject: [PATCH 3/3] ARM: dts: rk3288: Add drive/sample clocks for dw_mmc devices Date: Thu, 18 Dec 2014 15:01:03 -0800 Message-Id: <1418943663-10012-4-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_230148_170836_C82DDCF8 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. 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 The drive/sample clocks can be phase shifted. The drive clock could be used in a future patch to adjust hold times. The sample clock is used for tuning. Signed-off-by: Alexandru M Stan Signed-off-by: Doug Anderson Suggested-by: Heiko Stuebner Suggested-by: Doug Anderson Reviewed-by: Doug Anderson --- arch/arm/boot/dts/rk3288.dtsi | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 9c35a1d..49e498e 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -150,8 +150,9 @@ sdmmc: dwmmc@ff0c0000 { compatible = "rockchip,rk3288-dw-mshc"; clock-freq-min-max = <400000 150000000>; - clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>; - clock-names = "biu", "ciu"; + clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, + <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; + clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; fifo-depth = <0x100>; interrupts = ; reg = <0xff0c0000 0x4000>; @@ -161,8 +162,9 @@ sdio0: dwmmc@ff0d0000 { compatible = "rockchip,rk3288-dw-mshc"; clock-freq-min-max = <400000 150000000>; - clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>; - clock-names = "biu", "ciu"; + clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>, + <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>; + clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; fifo-depth = <0x100>; interrupts = ; reg = <0xff0d0000 0x4000>; @@ -172,8 +174,9 @@ sdio1: dwmmc@ff0e0000 { compatible = "rockchip,rk3288-dw-mshc"; clock-freq-min-max = <400000 150000000>; - clocks = <&cru HCLK_SDIO1>, <&cru SCLK_SDIO1>; - clock-names = "biu", "ciu"; + clocks = <&cru HCLK_SDIO1>, <&cru SCLK_SDIO1>, + <&cru SCLK_SDIO1_DRV>, <&cru SCLK_SDIO1_SAMPLE>; + clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; fifo-depth = <0x100>; interrupts = ; reg = <0xff0e0000 0x4000>; @@ -183,8 +186,9 @@ emmc: dwmmc@ff0f0000 { compatible = "rockchip,rk3288-dw-mshc"; clock-freq-min-max = <400000 150000000>; - clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>; - clock-names = "biu", "ciu"; + clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, + <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; + clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; fifo-depth = <0x100>; interrupts = ; reg = <0xff0f0000 0x4000>;