Skip to contentSkip to conversation

arm64: dts: qcom: nord: Add RPMh sleep stats

PATCH In review Navya Malempati 4 participants 4 messages Nov 30 – Dec 1

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: qcom: nord: Add RPMh sleep stats

Add RPMh stats to read low power statistics for various subsystem and SoC sleep modes.

---
Changes in v2:
- add the stats node in nord.dtsi as this change is not variant specific.
- remove the stats node from the nord-embedded.dtsi.
- Link to v1: https://patch.msgid.link/[email protected]

To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Abel Vesa <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 arch/arm64/boot/dts/qcom/nord.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/nord.dtsi +5 -0
index 56778dd444e4..c4100208bde6 100644
@@ -2386,6 +2386,11 @@ pdc: interrupt-controller@b220000 {
 			interrupt-controller;
 		};
 
+		sram@c30f000 {
+			compatible = "qcom,rpmh-stats";
+			reg = <0x0 0x0c30f000 0x0 0x400>;
+		};
+
 		tsens0: thermal-sensor@c22c000 {
 			compatible = "qcom,nord-tsens",
 				     "qcom,tsens-v2";

---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261127-nord_stats_node-2e73e579b864

Best regards,

Signature · 1 line
Navya Malempati <[email protected]>
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: dts: qcom: nord: sram@c30f000 placed out of unit-address order --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: dts: qcom: nord: sram@c30f000 placed out of unit-address order
--

commit 731b319aba38983f3fb5b96d25cc8acaa875ea1f
Author: Navya Malempati <[email protected]>

arm64: dts: qcom: nord: Add RPMh sleep stats

This commit adds the qcom,rpmh-stats sram node to nord.dtsi to expose RPMh low power sleep statistics.

Quoted 6 lines
arch/arm64/boot/dts/qcom/nord.dtsi +0 -0
index 56778dd444e4e..c4100208bde64 100644
@@ -2386,6 +2386,11 @@ pdc: interrupt-controller@b220000 {
 			interrupt-controller;

arch/arm64/boot/dts/qcom/nord.dtsi pdc: interrupt-controller@b220000 { · line 2396

Quoted 10 lines
arch/arm64/boot/dts/qcom/nord.dtsi +5 -0
 		};
 
+		sram@c30f000 {
+			compatible = "qcom,rpmh-stats";
+			reg = <0x0 0x0c30f000 0x0 0x400>;
+		};
+
 		tsens0: thermal-sensor@c22c000 {
 			compatible = "qcom,nord-tsens",
 				     "qcom,tsens-v2";

[Severity: Low]
Should sram@c30f000 be placed after aoss_qmp: power-management@c300000 and before spmi_bus: spmi@c400000 to keep the /soc child nodes sorted in ascending unit-address order?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw
In reply to Navya Malempati
Quoted 27 lines · Navya Malempati

Add RPMh stats to read low power statistics for various subsystem and SoC sleep modes.

---
Changes in v2:
- add the stats node in nord.dtsi as this change is not variant specific.
- remove the stats node from the nord-embedded.dtsi.
- Link to v1: https://patch.msgid.link/[email protected]

To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Abel Vesa <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 arch/arm64/boot/dts/qcom/nord.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/nord.dtsi +0 -0
index 56778dd444e4..c4100208bde6 100644

arch/arm64/boot/dts/qcom/nord.dtsi pdc: interrupt-controller@b220000 { · line 2393

Quoted 8 lines
arch/arm64/boot/dts/qcom/nord.dtsi +5 -0
@@ -2386,6 +2386,11 @@ pdc: interrupt-controller@b220000 {
 			interrupt-controller;
 		};
 
+		sram@c30f000 {
+			compatible = "qcom,rpmh-stats";
+			reg = <0x0 0x0c30f000 0x0 0x400>;
+		};
+

The node should be placed in order of unit address.

Shawn

Quoted 13 lines
arch/arm64/boot/dts/qcom/nord.dtsi +0 -1
 		tsens0: thermal-sensor@c22c000 {
 			compatible = "qcom,nord-tsens",
 				     "qcom,tsens-v2";
 
---

base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261127-nord_stats_node-2e73e579b864

Best regards,

Signature · 1 line
Navya Malempati <[email protected]>