ARM: dts: msm: Add bindings to enable power saving for sdxprairie

Add RPMH, LPM, CommandDB device bindings for sdxprairie.

Change-Id: I894ecca893cc0a90a960caef225a0bcff3f6a14e
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
tirimbino
Lina Iyer 6 years ago committed by Maulik Shah
parent fce66d6ec4
commit 582fdc7b28
  1. 2
      arch/arm64/boot/dts/qcom/sdxprairie-pinctrl.dtsi
  2. 101
      arch/arm64/boot/dts/qcom/sdxprairie-pm.dtsi
  3. 36
      arch/arm64/boot/dts/qcom/sdxprairie.dtsi

@ -19,7 +19,7 @@
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
interrupt-parent = <&intc>;
interrupt-parent = <&pdc>;
#interrupt-cells = <2>;
uart3_console_active: uart3_console_active {

@ -0,0 +1,101 @@
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
&soc {
qcom,lpm-levels {
compatible = "qcom,lpm-levels";
#address-cells = <1>;
#size-cells = <0>;
qcom,pm-cluster@0{
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
label = "system";
qcom,psci-mode-shift = <0>;
qcom,psci-mode-mask = <0xf>;
qcom,pm-cluster-level@0 {
reg = <0>;
label = "cx_active";
qcom,psci-mode = <0x0>;
qcom,entry-latency-us = <120>;
qcom,exit-latency-us = <150>;
qcom,min-residency-us = <6488>;
};
qcom,pm-cluster-level@1 {
reg = <1>;
label = "cx_min";
qcom,psci-mode = <0x4>;
qcom,entry-latency-us = <140>;
qcom,exit-latency-us = <200>;
qcom,min-residency-us = <8000>;
qcom,min-child-idx = <2>;
qcom,notify-rpm;
qcom,is-reset;
};
qcom,pm-cpu@0 {
#address-cells = <1>;
#size-cells = <0>;
qcom,psci-mode-shift = <0>;
qcom,psci-mode-mask = <0xf>;
qcom,cpu = <&CPU0>;
qcom,pm-cpu-level@0{
reg = <0>;
label = "wfi";
qcom,psci-cpu-mode = <0x1>;
qcom,latency-us = <1>;
qcom,entry-latency-us = <57>;
qcom,exit-latency-us = <43>;
qcom,min-residency-us = <83>;
};
qcom,pm-cpu-level@1 {
reg = <1>;
label ="standalone_pc";
qcom,psci-cpu-mode = <0x4>;
qcom,entry-latency-us = <120>;
qcom,exit-latency-us = <120>;
qcom,min-residency-us = <4488>;
qcom,use-broadcast-timer;
qcom,is-reset;
};
qcom,pm-cpu-level@2 {
reg = <2>;
label = "system-pc";
qcom,psci-cpu-mode = <0x4>;
qcom,entry-latency-us = <120>;
qcom,exit-latency-us = <150>;
qcom,min-residency-us = <6488>;
qcom,use-broadcast-timer;
qcom,is-reset;
};
};
};
};
qcom,rpm-stats@c300000 {
compatible = "qcom,rpm-stats";
reg = <0xC300000 0x1000>, <0xC370004 0x4>;
reg-names = "phys_addr_base", "offset_addr";
qcom,num-records = <3>;
};
qcom,rpmh-master-stats@b211200 {
compatible = "qcom,rpmh-master-stats-v1";
reg = <0xb211200 0x60>;
};
};

@ -16,12 +16,13 @@
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/clock/qcom,aop-qmp.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/qcom,tcs-mbox.h>
/ {
model = "Qualcomm Technologies, Inc. SDXPRAIRIE";
compatible = "qcom,sdxprairie";
qcom,msm-id = <357 0x0>;
interrupt-parent = <&intc>;
interrupt-parent = <&pdc>;
reserved-memory {
#address-cells = <1>;
@ -85,11 +86,20 @@
intc: interrupt-controller@17800000 {
compatible = "qcom,msm-qgic2";
interrupt-controller;
interrupt-parent = <&intc>;
#interrupt-cells = <3>;
reg = <0x17800000 0x1000>,
<0x17802000 0x1000>;
};
pdc: interrupt-controller@b210000{
compatible = "qcom,pdc-sdxprairie";
reg = <0xb210000 0x30000>;
#interrupt-cells = <3>;
interrupt-parent = <&intc>;
interrupt-controller;
};
timer {
compatible = "arm,armv7-timer";
interrupts = <1 13 0xf08>,
@ -368,8 +378,32 @@
mbox-desc-offset = <0x0>;
#mbox-cells = <1>;
};
apps_rsc: mailbox@17840000 {
compatible = "qcom,tcs-drv";
label = "apps_rsc";
reg = <0x17840000 0x100>, <0x17840d00 0x3000>;
interrupts = <0 17 0>;
#mbox-cells = <1>;
qcom,drv-id = <1>;
qcom,tcs-config = <ACTIVE_TCS 2>,
<SLEEP_TCS 2>,
<WAKE_TCS 2>,
<CONTROL_TCS 1>;
};
cmd_db: qcom,cmd-db@c37000c {
compatible = "qcom,cmd-db";
reg = <0xc37000c 8>;
};
system_pm {
compatible = "qcom,system-pm";
mboxes = <&apps_rsc 0>;
};
};
#include "sdxprairie-pm.dtsi"
#include "sdxprairie-pinctrl.dtsi"
#include "sdxprairie-ion.dtsi"
#include "sdxprairie-bus.dtsi"

Loading…
Cancel
Save