Received: by 10.192.165.156 with SMTP id m28csp597057imm; Thu, 19 Apr 2018 04:31:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+SVF5r/YM4kJsFxYvFzC86TBlGo0VUidLA57cY2C9A6sVi4lD4ku8zGA5AgkjzLDw3LsC X-Received: by 10.167.130.22 with SMTP id k22mr5526140pfi.73.1524137504336; Thu, 19 Apr 2018 04:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524137504; cv=none; d=google.com; s=arc-20160816; b=QZVvHlC3kADo6IVWGZ4MHmgXrajPl4b64N8qZH1723/J1P6DdCsqWygEMfijOZTL3S ShlTGAWMgjIuwEl9EnKR/tBXN28XvBlcxIqCXRo0U+Lh2/eXO922wdUnCku3EAI643Hv THtp10LriX4rcPOhi1bzqeAdRa1PkF9nZbfZgatchwU6CuQvNhVQ12ES1CNO7DZLoFwB ASFVoVNvioIXxXmWWy8F3sL0ZSP0NKtz7M/4UDjCou4kEljNw3UK0jPk3+cU0PFvnDst pWpWv3cfZvjYUp+GNjntJbVx5WmrqOkPK+aYGhk/VN0Y44tWRtJW237pQQ7zGWxnAhBL NqfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=gkXFCyfRLfa9BtdWK/fgAuxpR6F0RDA5M2x/hHDsX30=; b=0/GGbpbmEtD6wKk5FsoKeNTVszAijNYPt1B/Ug0N4TbmdaZwjkgj53joZc5Z+pDdtb GN5zaYp84vfhWhcOWUSajmVNVOV5c87Hkz5vB2qXrwjclTut/ON5fuD6n2CkDehiHB6x eezsMo0DpVF6vxFlKzchC7PxCf9JNVwehpfoh+tzekKWugutaSTyrb6/7oAl4o/pQQyg umDjSCzobZIkX5Wy0IeKaxMb2svs68m2v78SkwF0Ks3XkAKXWdRx0g3ox20p69mzGriq j8IuiBAkjUhnsheD+pNyHSsq2y2UxdsrycLWXRuxpri611TG1j61RVOeKGHl6jpAkR66 vzBA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j73si2849744pgc.142.2018.04.19.04.31.29; Thu, 19 Apr 2018 04:31:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbeDSLaW (ORCPT + 99 others); Thu, 19 Apr 2018 07:30:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35512 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbeDSLaV (ORCPT ); Thu, 19 Apr 2018 07:30:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 244AB2655D4 Subject: Re: [PATCH 2/6] dt-bindings: clock: add DDR3 standard speed bins. To: Heiko Stuebner Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, dbasehore@chromium.org, linux-kernel@vger.kernel.org, dianders@google.com, groeck@google.com, kernel@collabora.com, Mark Rutland References: <20180419104019.24406-1-enric.balletbo@collabora.com> <20180419104019.24406-3-enric.balletbo@collabora.com> <5662116.zj93FbmDPb@phil> From: Enric Balletbo i Serra Message-ID: <62c4b6f0-e67c-8e25-a129-bf0c06c5157b@collabora.com> Date: Thu, 19 Apr 2018 13:30:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5662116.zj93FbmDPb@phil> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, On 19/04/18 13:10, Heiko Stuebner wrote: > Hi Enric, > > Am Donnerstag, 19. April 2018, 12:40:15 CEST schrieb Enric Balletbo i Serra: >> DDR3 SDRAM Standard (JESD79-3F) defines some standard speed bins for >> DDR3 memories. The devfreq/rk3399_dmc.txt binding refers to this file >> which does not exist, so add a ddr.h file with the standard speed bins >> for DDR3. >> >> Fixes: c1ceb8f7c167 (Documentation: bindings: add dt documentation for rk3399 dmc) >> Signed-off-by: Enric Balletbo i Serra >> --- >> >> include/dt-bindings/clock/ddr.h | 34 +++++++++++++++++++++++++++++++++ >> 1 file changed, 34 insertions(+) >> create mode 100644 include/dt-bindings/clock/ddr.h >> >> diff --git a/include/dt-bindings/clock/ddr.h b/include/dt-bindings/clock/ddr.h >> new file mode 100644 >> index 000000000000..506aef7e609e >> --- /dev/null >> +++ b/include/dt-bindings/clock/ddr.h >> @@ -0,0 +1,34 @@ >> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ >> + >> +#ifndef DT_BINDINGS_DDR_H >> +#define DT_BINDINGS_DDR_H >> + >> +/* DDR3-800 Standard Speed Bins */ >> +#define DDR3_800D 15 >> +#define DDR3_800E 18 >> +/* DDR3-1066 Standard Speed Bins */ >> +#define DDR3_1066E 18 >> +#define DDR3_1066F 21 >> +#define DDR3_1066G 24 > > looking at the mentioned jedec standard, I don't see where these numerical > values are defined in the standard itself. [I may be blind though] > Damm it. No, you're not blind. I did an horrible mistake adding an old version of this file. It's wrong, that is supposed to be there is DDR3 table available in the ATF [1] not this. /* 5-5-5 */ DDR3_800D = 0, /* 6-6-6 */ DDR3_800E = 1, /* 6-6-6 */ DDR3_1066E = 2, /* 7-7-7 */ DDR3_1066F = 3, ... The value is passed directly to the ATF so the above values are the correct. One question that I have on my mind is if this file should be called as is or if will be better name as atf-ddr.h or something like that. ddr.h -> atf-ddr.h [1] https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/rockchip/rk3399/drivers/dram/dram_spec_timing.h Sorry about that. Guess it's needed a v2 but let's wait a little bit for if more discussion arises. Best regards, Enric > Could you explain a bit more where these numerical values are coming from? > > > Thanks > Heiko >