From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932127AbcAYKc5 (ORCPT ); Mon, 25 Jan 2016 05:32:57 -0500 Received: from gloria.sntech.de ([95.129.55.99]:44344 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755442AbcAYKcz (ORCPT ); Mon, 25 Jan 2016 05:32:55 -0500 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Shawn Lin Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] ARM64: rk3368: add tuning clk for emmc and sdmmc Date: Mon, 25 Jan 2016 11:32:51 +0100 Message-ID: <8282572.0k5rjtDfQ3@diego> User-Agent: KMail/4.14.10 (Linux/4.2.0-1-amd64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <1453707223-28855-1-git-send-email-shawn.lin@rock-chips.com> References: <1453707223-28855-1-git-send-email-shawn.lin@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shawn, Am Montag, 25. Januar 2016, 15:33:43 schrieb Shawn Lin: > Add tuning clk for emmc and sdmmc, otherwise I get > the following failure while enabling mmc-hs200-1_8v. > > dwmmc_rockchip ff0f0000.dwmmc: Tuning clock (sample_clk) not defined. > mmc0: tuning execution failed > mmc0: error -5 whilst initialising MMC card > > With it > dwmmc_rockchip ff0f0000.dwmmc: Successfully tuned phase to 170 > mmc0: new HS200 MMC card at address 0001 > mmcblk0: mmc0:0001 M8G1GC 7.28 GiB > > Signed-off-by: Shawn Lin applied to my dts64 branch for 4.6 I've adapted the subject to arm64: dts: rockchip: add rk3368 tuning clk for emmc and sdmmc to follow the format used there (it doesn't seem 100% consistent between socs) > 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-drive", "ciu-sample"; > fifo-depth = <0x100>; > interrupts = ; > status = "disabled"; I've also removed the duplicate clock entry here ;-) Heiko