mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
ARM: dts: msm: Add idle states and stats devices for yupik
Add idle states for low power modes along with stats devices. Change-Id: I3d2accba322674fc6688a3b174c94701490c74d4
This commit is contained in:
parent
d93309e766
commit
483746e4ea
2 changed files with 194 additions and 0 deletions
185
qcom/yupik-pm.dtsi
Normal file
185
qcom/yupik-pm.dtsi
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
&soc {
|
||||
qcom,lpm-levels {
|
||||
compatible = "qcom,lpm-levels";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
qcom,pm-cluster@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
idle-state-name = "L3";
|
||||
qcom,clstr-tmr-add = <1000>;
|
||||
qcom,psci-mode-shift = <4>;
|
||||
qcom,psci-mode-mask = <0xfff>;
|
||||
|
||||
CLUSTER_WFI: qcom,pm-cluster-level@0 { /* D1 */
|
||||
reg = <0>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "l3-wfi";
|
||||
entry-latency-us = <660>;
|
||||
exit-latency-us = <600>;
|
||||
min-residency-us = <1260>;
|
||||
arm,psci-suspend-param = <0x10>;
|
||||
qcom,psci-mode = <0x1>;
|
||||
};
|
||||
|
||||
CLUSTER_OFF: qcom,pm-cluster-level@1 { /* D4 */
|
||||
reg = <1>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "l3-pc";
|
||||
entry-latency-us = <2752>;
|
||||
exit-latency-us = <3048>;
|
||||
min-residency-us = <6118>;
|
||||
arm,psci-suspend-param = <0x40>;
|
||||
qcom,psci-mode = <0x4>;
|
||||
qcom,is-reset;
|
||||
qcom,min-child-idx = <2>;
|
||||
};
|
||||
|
||||
CX_OFF: qcom,pm-cluster-level@2 { /* Cx Off */
|
||||
reg = <2>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "cx-off";
|
||||
entry-latency-us = <3263>;
|
||||
exit-latency-us = <4562>;
|
||||
min-residency-us = <8467>;
|
||||
arm,psci-suspend-param = <0x2240>;
|
||||
qcom,psci-mode = <0x224>;
|
||||
qcom,is-reset;
|
||||
qcom,notify-rpm;
|
||||
qcom,min-child-idx = <2>;
|
||||
};
|
||||
|
||||
LLCC_OFF: qcom,pm-cluster-level@3 { /* AOSS sleep */
|
||||
reg = <3>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "llcc-off";
|
||||
entry-latency-us = <3638>;
|
||||
exit-latency-us = <6562>;
|
||||
min-residency-us = <9826>;
|
||||
arm,psci-suspend-param = <0xc340>;
|
||||
qcom,psci-mode = <0xc34>;
|
||||
qcom,is-reset;
|
||||
qcom,notify-rpm;
|
||||
qcom,min-child-idx = <2>;
|
||||
};
|
||||
|
||||
qcom,pm-cpu@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
qcom,psci-mode-shift = <0>;
|
||||
qcom,psci-mode-mask = <0xf>;
|
||||
qcom,ref-stddev = <500>;
|
||||
qcom,tmr-add = <1000>;
|
||||
qcom,ref-premature-cnt = <1>;
|
||||
qcom,disable-ipi-prediction;
|
||||
qcom,cpu = <&CPU0 &CPU1 &CPU2 &CPU3>;
|
||||
|
||||
SLVR_WFI: qcom,pm-cpu-level@0 { /* C1 */
|
||||
reg = <0>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "wfi";
|
||||
entry-latency-us = <61>;
|
||||
exit-latency-us = <60>;
|
||||
min-residency-us = <121>;
|
||||
arm,psci-suspend-param = <0x1>;
|
||||
qcom,psci-cpu-mode = <0x1>;
|
||||
};
|
||||
|
||||
SLVR_OFF: qcom,pm-cpu-level@1 { /* C3 */
|
||||
reg = <1>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "pc";
|
||||
entry-latency-us = <549>;
|
||||
exit-latency-us = <901>;
|
||||
min-residency-us = <1774>;
|
||||
arm,psci-suspend-param = <0x40000003>;
|
||||
qcom,psci-cpu-mode = <0x3>;
|
||||
local-timer-stop;
|
||||
qcom,is-reset;
|
||||
qcom,use-broadcast-timer;
|
||||
};
|
||||
|
||||
SLVR_RAIL_OFF: qcom,pm-cpu-level@2 { /* C4 */
|
||||
reg = <2>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "rail-pc";
|
||||
entry-latency-us = <702>;
|
||||
exit-latency-us = <915>;
|
||||
min-residency-us = <4001>;
|
||||
arm,psci-suspend-param = <0x40000004>;
|
||||
qcom,psci-cpu-mode = <0x4>;
|
||||
local-timer-stop;
|
||||
qcom,is-reset;
|
||||
qcom,use-broadcast-timer;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,pm-cpu@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
qcom,psci-mode-shift = <0>;
|
||||
qcom,psci-mode-mask = <0xf>;
|
||||
qcom,cpu = <&CPU4 &CPU5 &CPU6 &CPU7>;
|
||||
|
||||
GOLD_WFI: qcom,pm-cpu-level@0 { /* C1 */
|
||||
reg = <0>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "wfi";
|
||||
entry-latency-us = <55>;
|
||||
exit-latency-us = <66>;
|
||||
min-residency-us = <121>;
|
||||
arm,psci-suspend-param = <0x1>;
|
||||
qcom,psci-cpu-mode = <0x1>;
|
||||
};
|
||||
|
||||
GOLD_OFF: qcom,pm-cpu-level@1 { /* C3 */
|
||||
reg = <1>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "pc";
|
||||
entry-latency-us = <523>;
|
||||
exit-latency-us = <1244>;
|
||||
min-residency-us = <2207>;
|
||||
arm,psci-suspend-param = <0x40000003>;
|
||||
qcom,psci-cpu-mode = <0x3>;
|
||||
local-timer-stop;
|
||||
qcom,is-reset;
|
||||
qcom,use-broadcast-timer;
|
||||
};
|
||||
|
||||
GOLD_RAIL_OFF: qcom,pm-cpu-level@2 { /* C4 */
|
||||
reg = <2>;
|
||||
compatible = "arm,idle-state";
|
||||
idle-state-name = "rail-pc";
|
||||
entry-latency-us = <526>;
|
||||
exit-latency-us = <1854>;
|
||||
min-residency-us = <5555>;
|
||||
arm,psci-suspend-param = <0x40000004>;
|
||||
qcom,psci-cpu-mode = <0x4>;
|
||||
local-timer-stop;
|
||||
qcom,is-reset;
|
||||
qcom,use-broadcast-timer;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
rpmh-master-stats@b221200 {
|
||||
compatible = "qcom,rpmh-master-stats-v1";
|
||||
reg = <0xb221200 0x60>;
|
||||
};
|
||||
|
||||
soc-sleep-stats@c3f0000 {
|
||||
compatible = "qcom,rpmh-sleep-stats";
|
||||
reg = <0xc3f0000 0x400>;
|
||||
};
|
||||
|
||||
ddr-stats@c300000 {
|
||||
compatible = "qcom,ddr-stats";
|
||||
reg = <0xc300000 0x1000>, <0xc3f001c 0x4>;
|
||||
reg-names = "phys_addr_base", "offset_addr";
|
||||
};
|
||||
};
|
||||
|
|
@ -42,6 +42,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x0>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&SLVR_OFF &SLVR_RAIL_OFF>;
|
||||
next-level-cache = <&L2_0>;
|
||||
L2_0: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -60,6 +61,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x100>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&SLVR_OFF &SLVR_RAIL_OFF>;
|
||||
next-level-cache = <&L2_1>;
|
||||
L2_1: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -73,6 +75,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x200>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&SLVR_OFF &SLVR_RAIL_OFF>;
|
||||
next-level-cache = <&L2_2>;
|
||||
L2_2: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -86,6 +89,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x300>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&SLVR_OFF &SLVR_RAIL_OFF>;
|
||||
next-level-cache = <&L2_3>;
|
||||
L2_3: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -99,6 +103,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x400>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&GOLD_OFF &GOLD_RAIL_OFF>;
|
||||
next-level-cache = <&L2_4>;
|
||||
L2_4: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -112,6 +117,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x500>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&GOLD_OFF &GOLD_RAIL_OFF>;
|
||||
next-level-cache = <&L2_5>;
|
||||
L2_5: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -125,6 +131,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x600>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&GOLD_OFF &GOLD_RAIL_OFF>;
|
||||
next-level-cache = <&L2_6>;
|
||||
L2_6: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -138,6 +145,7 @@
|
|||
compatible = "qcom,kryo";
|
||||
reg = <0x0 0x700>;
|
||||
enable-method = "psci";
|
||||
cpu-idle-states = <&GOLD_OFF &GOLD_RAIL_OFF>;
|
||||
next-level-cache = <&L2_7>;
|
||||
L2_7: l2-cache {
|
||||
compatible = "arm,arch-cache";
|
||||
|
|
@ -813,6 +821,7 @@
|
|||
|
||||
#include "shima-gdsc.dtsi"
|
||||
#include "yupik-pinctrl.dtsi"
|
||||
#include "yupik-pm.dtsi"
|
||||
#include "yupik-stub-regulator.dtsi"
|
||||
|
||||
&gcc_pcie_0_gdsc {
|
||||
|
|
|
|||
Loading…
Reference in a new issue