mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 04:59:05 +00:00
ARM: dts: qcom: Enable epm device driver for anorak
It enables to measure different pmic regulator power consumption data and pmic temperature data. It exposes these data to userspace clients via powercap sysfs interface and thermal zone sysfs interface respectively. Change-Id: Iad3f30aef0392e0cea16fc3b9ea4bd74670e4594
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
436b729520
commit
f563fc6409
@@ -84,6 +84,16 @@
|
||||
reg = <0x9d00>;
|
||||
};
|
||||
|
||||
pmk8550_sdam_49: sdam@a000 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0xa000>;
|
||||
};
|
||||
|
||||
pmk8550_sdam_53: sdam@a400 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0xa400>;
|
||||
};
|
||||
|
||||
pmk8550_gpios: pinctrl@b800 {
|
||||
compatible = "qcom,pmk8550-gpio";
|
||||
reg = <0xb800>;
|
||||
@@ -237,5 +247,23 @@
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
qti_epm: qcom,epm-device {
|
||||
compatible = "qcom,epm-devices";
|
||||
nvmem = <&pmk8550_sdam_49>,
|
||||
<&pmk8550_sdam_53>;
|
||||
nvmem-names = "epm-config-sdam",
|
||||
"epm-10s-avg-sdam";
|
||||
|
||||
qcom,reg-ppid-ids = /bits/ 16 <0x1e4 0x19b 0x19e 0x1a1
|
||||
0x1a4 0x2a1 0x2a4 0x2aa 0x3a4 0x3a7
|
||||
0x3aa 0x59e 0x5a4 0x5a7>;
|
||||
|
||||
qcom,reg-ppid-names = "sub_reg", "hv_sub_reg",
|
||||
"mv_sub_reg_ldo", "lv_sub_reg_ldo",
|
||||
"multimedia", "mxa", "apc0", "apc1",
|
||||
"ebi", "vddq", "cx", "mxc",
|
||||
"wlan_cx", "gfx";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user