From: Tang Yun ping Date: Thu, 5 Nov 2015 03:23:39 +0000 (+0800) Subject: ARM: dtsi: rk3228: add dram timing node X-Git-Tag: firefly_0821_release~3638 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f09cbe4c1325c154fe507d647c329aeb9915892d;p=firefly-linux-kernel-4.4.55.git ARM: dtsi: rk3228: add dram timing node Change-Id: Ieb7c43f6e546e75e72c7db99894d6ca0cfbb31a1 Signed-off-by: Tang Yun ping --- diff --git a/arch/arm/boot/dts/rk3228.dtsi b/arch/arm/boot/dts/rk3228.dtsi index 650620493a26..73e170093c76 100755 --- a/arch/arm/boot/dts/rk3228.dtsi +++ b/arch/arm/boot/dts/rk3228.dtsi @@ -6,6 +6,7 @@ #include #include +#include / { compatible = "rockchip,rk3228"; @@ -140,6 +141,13 @@ }; }; + dram: dram { + compatible = "rockchip,rk3228-dram"; + status = "okay"; + dram_freq = <600000000>; + rockchip,dram_timing = <&dram_timing>; + }; + rockchip_clocks_init: clocks-init{ compatible = "rockchip,clocks-init"; rockchip,clocks-init-parent = diff --git a/arch/arm/boot/dts/rk3228_dram_default_timing.dtsi b/arch/arm/boot/dts/rk3228_dram_default_timing.dtsi new file mode 100755 index 000000000000..129a85d758ee --- /dev/null +++ b/arch/arm/boot/dts/rk3228_dram_default_timing.dtsi @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2014-2015 ROCKCHIP, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include +#include + +/ { + dram_timing: dram_timing { + compatible = "rockchip,dram-timing"; + dram_spd_bin = ; + sr_idle = <1>; + pd_idle = <0x20>; + dram_dll_disb_freq = <300>; + phy_dll_disb_freq = <400>; + dram_odt_disb_freq = <333>; + phy_odt_disb_freq = <333>; + ddr3_drv = ; + ddr3_odt = ; + lpddr3_drv = ; + lpddr3_odt = ; + lpddr2_drv = ; + /* lpddr2 not supported odt */ + phy_clk_drv = ; + phy_cmd_drv = ; + phy_dqs_drv = ; + phy_odt = ; + }; +};