diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2018-05-09 08:57:44 -0400 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2018-07-18 00:58:30 -0400 |
commit | 49502b23e0e45b57b776490cfdfd95ea7fecd7c7 (patch) | |
tree | 27044eec71fbc4c55ed7f91b2d334f6667ff169d | |
parent | 2d2894c94a61930615cd1411cd8e0bf5b804e3a1 (diff) |
dt-bindings: clock: add rk3399 DDR3 standard speed bins.
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 <enric.balletbo@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r-- | Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt | 2 | ||||
-rw-r--r-- | include/dt-bindings/clock/rk3399-ddr.h | 56 |
2 files changed, 57 insertions, 1 deletions
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: | |||
19 | 19 | ||
20 | Following properties relate to DDR timing: | 20 | Following properties relate to DDR timing: |
21 | 21 | ||
22 | - rockchip,dram_speed_bin : Value reference include/dt-bindings/clock/ddr.h, | 22 | - rockchip,dram_speed_bin : Value reference include/dt-bindings/clock/rk3399-ddr.h, |
23 | it selects the DDR3 cl-trp-trcd type. It must be | 23 | it selects the DDR3 cl-trp-trcd type. It must be |
24 | set according to "Speed Bin" in DDR3 datasheet, | 24 | set according to "Speed Bin" in DDR3 datasheet, |
25 | DO NOT use a smaller "Speed Bin" than specified | 25 | 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 @@ | |||
1 | /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ | ||
2 | |||
3 | #ifndef DT_BINDINGS_DDR_H | ||
4 | #define DT_BINDINGS_DDR_H | ||
5 | |||
6 | /* | ||
7 | * DDR3 SDRAM Standard Speed Bins include tCK, tRCD, tRP, tRAS and tRC for | ||
8 | * each corresponding bin. | ||
9 | */ | ||
10 | |||
11 | /* DDR3-800 (5-5-5) */ | ||
12 | #define DDR3_800D 0 | ||
13 | /* DDR3-800 (6-6-6) */ | ||
14 | #define DDR3_800E 1 | ||
15 | /* DDR3-1066 (6-6-6) */ | ||
16 | #define DDR3_1066E 2 | ||
17 | /* DDR3-1066 (7-7-7) */ | ||
18 | #define DDR3_1066F 3 | ||
19 | /* DDR3-1066 (8-8-8) */ | ||
20 | #define DDR3_1066G 4 | ||
21 | /* DDR3-1333 (7-7-7) */ | ||
22 | #define DDR3_1333F 5 | ||
23 | /* DDR3-1333 (8-8-8) */ | ||
24 | #define DDR3_1333G 6 | ||
25 | /* DDR3-1333 (9-9-9) */ | ||
26 | #define DDR3_1333H 7 | ||
27 | /* DDR3-1333 (10-10-10) */ | ||
28 | #define DDR3_1333J 8 | ||
29 | /* DDR3-1600 (8-8-8) */ | ||
30 | #define DDR3_1600G 9 | ||
31 | /* DDR3-1600 (9-9-9) */ | ||
32 | #define DDR3_1600H 10 | ||
33 | /* DDR3-1600 (10-10-10) */ | ||
34 | #define DDR3_1600J 11 | ||
35 | /* DDR3-1600 (11-11-11) */ | ||
36 | #define DDR3_1600K 12 | ||
37 | /* DDR3-1600 (10-10-10) */ | ||
38 | #define DDR3_1866J 13 | ||
39 | /* DDR3-1866 (11-11-11) */ | ||
40 | #define DDR3_1866K 14 | ||
41 | /* DDR3-1866 (12-12-12) */ | ||
42 | #define DDR3_1866L 15 | ||
43 | /* DDR3-1866 (13-13-13) */ | ||
44 | #define DDR3_1866M 16 | ||
45 | /* DDR3-2133 (11-11-11) */ | ||
46 | #define DDR3_2133K 17 | ||
47 | /* DDR3-2133 (12-12-12) */ | ||
48 | #define DDR3_2133L 18 | ||
49 | /* DDR3-2133 (13-13-13) */ | ||
50 | #define DDR3_2133M 19 | ||
51 | /* DDR3-2133 (14-14-14) */ | ||
52 | #define DDR3_2133N 20 | ||
53 | /* DDR3 ATF default */ | ||
54 | #define DDR3_DEFAULT 21 | ||
55 | |||
56 | #endif | ||