ARM64: dts: rockchip: rk3368: add cpu dvfs support for sheep board
authorXiao Feng <xf@rock-chips.com>
Tue, 12 Jan 2016 02:44:35 +0000 (10:44 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 13 Jan 2016 01:26:58 +0000 (09:26 +0800)
Change-Id: Id0361d55f970ea814c6965b2772f7cdc3a004bfc
Signed-off-by: Xiao Feng <xf@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-tb-sheep.dts
arch/arm64/boot/dts/rockchip/rk3368.dtsi

index 0bdbb3bae8d8d57595256b9816e10e477cc37c5e..9251d6808365bbddfe94e253a9b0b8391bfab907 100644 (file)
 &rk818 {
        status = "okay";
 };
+
+&cpu_l0 {
+       cpu-supply = <&syr827>;
+};
+
+&cpu_b0 {
+       cpu-supply = <&syr827>;
+};
index 33e628d997a39fbff15b0cef1fa7873dc0e7abac..7a1e33415fbaafd4cd52ad5fb7846295848546be 100644 (file)
                        reg = <0x0 0x0>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       clocks = <&cru ARMCLKL>;
+                       operating-points-v2 = <&cluster1_opp>;
                };
 
                cpu_l1: cpu@1 {
                        reg = <0x0 0x1>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster1_opp>;
                };
 
                cpu_l2: cpu@2 {
                        reg = <0x0 0x2>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster1_opp>;
                };
 
                cpu_l3: cpu@3 {
                        reg = <0x0 0x3>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster1_opp>;
                };
 
                cpu_b0: cpu@100 {
                        reg = <0x0 0x100>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       clocks = <&cru ARMCLKB>;
+                       operating-points-v2 = <&cluster0_opp>;
                };
 
                cpu_b1: cpu@101 {
                        reg = <0x0 0x101>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster0_opp>;
                };
 
                cpu_b2: cpu@102 {
                        reg = <0x0 0x102>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster0_opp>;
                };
 
                cpu_b3: cpu@103 {
                        reg = <0x0 0x103>;
                        cpu-idle-states = <&cpu_sleep>;
                        enable-method = "psci";
+                       operating-points-v2 = <&cluster0_opp>;
+               };
+       };
+
+       cluster0_opp: opp_table0 {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp00 {
+                       opp-hz = /bits/ 64 <408000000>;
+                       opp-microvolt = <1200000>;
+                       clock-latency-ns = <40000>;
+                       opp-suspend;
+               };
+               opp01 {
+                       opp-hz = /bits/ 64 <600000000>;
+                       opp-microvolt = <1200000>;
+               };
+               opp02 {
+                       opp-hz = /bits/ 64 <816000000>;
+                       opp-microvolt = <1200000>;
+               };
+               opp03 {
+                       opp-hz = /bits/ 64 <1008000000>;
+                       opp-microvolt = <1200000>;
+               };
+               opp04 {
+                       opp-hz = /bits/ 64 <1200000000>;
+                       opp-microvolt = <1200000>;
+               };
+       };
+
+       cluster1_opp: opp_table1 {
+               compatible = "operating-points-v2";
+               opp-shared;
+
+               opp00 {
+                       opp-hz = /bits/ 64 <408000000>;
+                       opp-microvolt = <1200000>;
+                       clock-latency-ns = <40000>;
+                       opp-suspend;
+               };
+               opp01 {
+                       opp-hz = /bits/ 64 <600000000>;
+                       opp-microvolt = <1200000>;
+               };
+               opp02 {
+                       opp-hz = /bits/ 64 <816000000>;
+                       opp-microvolt = <1200000>;
+               };
+               opp03 {
+                       opp-hz = /bits/ 64 <1008000000>;
+                       opp-microvolt = <1200000>;
                };
        };