M7350/kernel/Documentation/devicetree/bindings/arm/msm/rpm-stats.txt

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-09-09 08:52:07 +00:00
* RPM Sleep Stats
RPM maintains sleep data in the RPM RAM. A device tree node is added
that will hold the address of the RPM RAM from where sleep stats are read.
Additionally a version number is added to distinguish the type of data
structure being read from the RAM.
2024-09-09 08:57:42 +00:00
RPM maintains free heap space availability in the RPM RAM. RPM free heap space
value is required for debugging purpose.
2024-09-09 08:52:07 +00:00
The required properties for rpm-stats are:
- compatible: "qcom,rpm-stats"
- reg: The address on the RPM RAM from where stats are read.
2024-09-09 08:57:42 +00:00
Second register(optional) specifies the offset of the rpm
stats start address pointer. If the second register is
available, the offset value read is added to the first
register address to read the stats.
Third register(optional) specifies the offset of the rpm
free heap space value.
2024-09-09 08:52:07 +00:00
- reg-names: Name given the register holding address.
- qcom,sleep-stats-version: Version number.
2024-09-09 08:57:42 +00:00
Example 1:
2024-09-09 08:52:07 +00:00
qcom,rpm-stats@fc19dbd0 {
compatible = "qcom,rpm-stats";
reg = <0xfc19dbd0 0x1000>;
reg-names = "phys_addr_base";
qcom,sleep-stats-version = <2>;
};
2024-09-09 08:57:42 +00:00
Example 2:
qcom,rpm-stats@fc000000 {
compatible = "qcom,rpm-stats";
reg = <0xfc000000 0x1000>,
<0xfc190014 0x4>;
reg-names = "phys_addr_base";
qcom,sleep-stats-version = <2>;
};