Received: by 10.192.165.148 with SMTP id m20csp5489063imm; Wed, 9 May 2018 05:59:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRJoWCzgZ1ClvWpXTXOw5KQ0w0/wdzb5/cPEjpDJ7DscXuHVxjCcAiwiAcEa4C3PA08WST X-Received: by 10.98.150.92 with SMTP id c89mr44078922pfe.37.1525870793805; Wed, 09 May 2018 05:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525870793; cv=none; d=google.com; s=arc-20160816; b=SAaMrl1+oZK/CpoSFBOOHCCOF79RGbVs+6jwf+lm3Ymnw5zCRWyh4AIWJ53LPyA+OA gDA0VHy81xFOGexkP4AObb6B7toG1xyhNkO0yehUltO6mOz0SOXNVWtvbRPI6UskUUKk 3PLAv4fHSGJRaSn08SOxS2pSEQrKqUl9MXNINCu1WPOuuCJeD0AbRD/Ycamud8fbO4lf zLqwGvBQyKMW0wVuSZSGfJKj3CurT/uVLFhuCl7s0VafG1VBqT/2vhe1O9rHlSp1BTj7 eo8ajlS9+ovF9TRPHBDkHJl+JM7U+mn2epQ0Lev4Ex7Jazhr+lSyIhq5OEmNuhxvJ2jD y8tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DRmzD5IP6vH0oylvbG5K/ubfmqlcQUH5DG49KSAq47c=; b=jEVM0aPohedjRXW0PmeSy33aq47QOkp6ozNjaqBiX/Pa+nzGxsOcXQcnGftA2PwSDt 7q7wwQw+8dCUyRlUSP04gMejA+l5a7JvXsEwqpcRJkbu8/HwXH44gP/isd1vf8/FnyVw cRGMxYXCkQO8I92o9xxtvOWLbOaAOJnnAHSmAQl6jDPrBergXFWZVZEezEPvcQnbibkv WqEcPPPXtj1yzDvbZR2iFkffMdt/lFQ+E5jr84vL2nR8gy3Nk0vpDE10P1rEH/V/KFOo 5dlTrfUZV3Nwi4J0JjlDm8XHqYqK/ITN4l1AscGBuHF0opnrxt1JKEPxWzIjk+nnAKgo 8ezQ== 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 a2-v6si9216511pgu.26.2018.05.09.05.59.39; Wed, 09 May 2018 05:59:53 -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 S935005AbeEIM7C (ORCPT + 99 others); Wed, 9 May 2018 08:59:02 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55302 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934876AbeEIM6A (ORCPT ); Wed, 9 May 2018 08:58:00 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 7E552286F9E From: Enric Balletbo i Serra To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, heiko@sntech.de, linux-pm@vger.kernel.org, dbasehore@chromium.org, linux-kernel@vger.kernel.org, dianders@google.com, groeck@chromium.org, kernel@collabora.com, hl@rock-chips.com, Chanwoo Choi , Mark Rutland Subject: [PATCH v4 2/6] dt-bindings: clock: add rk3399 DDR3 standard speed bins. Date: Wed, 9 May 2018 14:57:44 +0200 Message-Id: <20180509125749.31318-3-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509125749.31318-1-enric.balletbo@collabora.com> References: <20180509125749.31318-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DDR3 SDRAM Standard (JESD79-3F) defines some standard speed bins for DDR3 memories. The rk3399_dmc driver allows you to pass these values via the device tree. For that purpose the devfreq/rk3399_dmc.txt binding refers to a ddr.h file which does not exist. This patch adds the missing defines in a include file called rk3399-ddr.h with the definition of standard speed bins according to the ARM Trusted Firmware (ATF). Fixes: c1ceb8f7c167 (Documentation: bindings: add dt documentation for rk3399 dmc) Signed-off-by: Enric Balletbo i Serra Reviewed-by: Rob Herring --- Changes in v4: None Changes in v3: - [2/5] Add Reviewed-by Rob Herring. Changes in v2: - [2/6] Improved commit message. - [2/6] Rename ddr.h to rk3399-ddr.h because is SoC specific. .../bindings/devfreq/rk3399_dmc.txt | 2 +- include/dt-bindings/clock/rk3399-ddr.h | 56 +++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/clock/rk3399-ddr.h diff --git a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt index 1b93b33c7d38..e0030a139383 100644 --- a/Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt +++ b/Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt @@ -19,7 +19,7 @@ Required properties: Following properties relate to DDR timing: -- rockchip,dram_speed_bin : Value reference include/dt-bindings/clock/ddr.h, +- rockchip,dram_speed_bin : Value reference include/dt-bindings/clock/rk3399-ddr.h, it selects the DDR3 cl-trp-trcd type. It must be set according to "Speed Bin" in DDR3 datasheet, DO NOT use a smaller "Speed Bin" than specified diff --git a/include/dt-bindings/clock/rk3399-ddr.h b/include/dt-bindings/clock/rk3399-ddr.h new file mode 100644 index 000000000000..ed2280844963 --- /dev/null +++ b/include/dt-bindings/clock/rk3399-ddr.h @@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ + +#ifndef DT_BINDINGS_DDR_H +#define DT_BINDINGS_DDR_H + +/* + * DDR3 SDRAM Standard Speed Bins include tCK, tRCD, tRP, tRAS and tRC for + * each corresponding bin. + */ + +/* DDR3-800 (5-5-5) */ +#define DDR3_800D 0 +/* DDR3-800 (6-6-6) */ +#define DDR3_800E 1 +/* DDR3-1066 (6-6-6) */ +#define DDR3_1066E 2 +/* DDR3-1066 (7-7-7) */ +#define DDR3_1066F 3 +/* DDR3-1066 (8-8-8) */ +#define DDR3_1066G 4 +/* DDR3-1333 (7-7-7) */ +#define DDR3_1333F 5 +/* DDR3-1333 (8-8-8) */ +#define DDR3_1333G 6 +/* DDR3-1333 (9-9-9) */ +#define DDR3_1333H 7 +/* DDR3-1333 (10-10-10) */ +#define DDR3_1333J 8 +/* DDR3-1600 (8-8-8) */ +#define DDR3_1600G 9 +/* DDR3-1600 (9-9-9) */ +#define DDR3_1600H 10 +/* DDR3-1600 (10-10-10) */ +#define DDR3_1600J 11 +/* DDR3-1600 (11-11-11) */ +#define DDR3_1600K 12 +/* DDR3-1600 (10-10-10) */ +#define DDR3_1866J 13 +/* DDR3-1866 (11-11-11) */ +#define DDR3_1866K 14 +/* DDR3-1866 (12-12-12) */ +#define DDR3_1866L 15 +/* DDR3-1866 (13-13-13) */ +#define DDR3_1866M 16 +/* DDR3-2133 (11-11-11) */ +#define DDR3_2133K 17 +/* DDR3-2133 (12-12-12) */ +#define DDR3_2133L 18 +/* DDR3-2133 (13-13-13) */ +#define DDR3_2133M 19 +/* DDR3-2133 (14-14-14) */ +#define DDR3_2133N 20 +/* DDR3 ATF default */ +#define DDR3_DEFAULT 21 + +#endif -- 2.17.0