Skip to content

Commit

Permalink
Merge pull request #1 from FanFansfan/main
Browse files Browse the repository at this point in the history
rk3328-beikeyun dts add rockchip dmc
  • Loading branch information
unifreq authored Jan 13, 2022
2 parents c7019c0 + d180db6 commit 7e063aa
Show file tree
Hide file tree
Showing 2 changed files with 387 additions and 0 deletions.
76 changes: 76 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3328-beikeyun-1296mhz.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

/dts-v1/;
#include "rk3328-dram-renegade-timing.dtsi"
#include "rk3328.dtsi"

/ {
Expand Down Expand Up @@ -123,6 +124,72 @@
regulator-always-on;
};
};

dfi: dfi@ff790000 {
reg = <0x00 0xff790000 0x00 0x400>;
compatible = "rockchip,rk3328-dfi";
rockchip,grf = <&grf>;
status = "disabled";
};

dmc: dmc {
compatible = "rockchip,rk3328-dmc";
devfreq-events = <&dfi>;
clocks = <&cru SCLK_DDRCLK>;
clock-names = "dmc_clk";
operating-points-v2 = <&dmc_opp_table>;
ddr_timing = <&ddr_timing>;
upthreshold = <40>;
downdifferential = <20>;
auto-min-freq = <786000>;
auto-freq-en = <0>;
#cooling-cells = <2>;
status = "disabled";

ddr_power_model: ddr_power_model {
compatible = "ddr_power_model";
dynamic-power-coefficient = <120>;
static-power-coefficient = <200>;
ts = <32000 4700 (-80) 2>;
thermal-zone = "soc-thermal";
};
};

dmc_opp_table: dmc-opp-table {
compatible = "operating-points-v2";

rockchip,leakage-voltage-sel = <
1 10 0
11 254 1
>;
nvmem-cells = <&logic_leakage>;
nvmem-cell-names = "ddr_leakage";

opp-786000000 {
opp-hz = /bits/ 64 <786000000>;
opp-microvolt = <1150000>;
opp-microvolt-L0 = <1150000>;
opp-microvolt-L1 = <1075000>;
};
opp-798000000 {
opp-hz = /bits/ 64 <798000000>;
opp-microvolt = <1150000>;
opp-microvolt-L0 = <1150000>;
opp-microvolt-L1 = <1075000>;
};
opp-840000000 {
opp-hz = /bits/ 64 <840000000>;
opp-microvolt = <1150000>;
opp-microvolt-L0 = <1150000>;
opp-microvolt-L1 = <1075000>;
};
opp-924000000 {
opp-hz = /bits/ 64 <924000000>;
opp-microvolt = <1150000>;
opp-microvolt-L0 = <1150000>;
opp-microvolt-L1 = <1075000>;
};
};
};

&analog_sound {
Expand Down Expand Up @@ -209,6 +276,15 @@
mali-supply = <&vdd_logic>;
};

&dfi {
status = "okay";
};

&dmc {
center-supply = <&vdd_logic>;
status = "okay";
};

&rng {
status = "okay";
};
Expand Down
Loading

0 comments on commit 7e063aa

Please sign in to comment.