arm64: dts: qcom: nord: Add RPMh sleep stats
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
@@ -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]>
[email protected]
AI reviewThank 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@@ -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
Quoted 5 lines · Navya Malempati
Add RPMh stats to read low power statistics for various subsystem and SoC sleep modes.
Signed-off-by Navya Malempati <[email protected]>---
Konrad
Quoted 27 lines · Navya Malempati
Add RPMh stats to read low power statistics for various subsystem and SoC sleep modes.
Signed-off-by Navya Malempati <[email protected]>---
Changes in v2:
- add the stats node innord.dtsias this change is not variant specific.
- remove the stats node from thenord-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
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
-1tsens0: thermal-sensor@c22c000 { compatible = "qcom,nord-tsens", "qcom,tsens-v2"; ---base-commit:
a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261127-nord_stats_node-2e73e579b864Best regards,
Signature · 1 line
Navya Malempati <[email protected]>