mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 05:00:27 +00:00
ARM: dts: qcom: Add support to read external pmic temperature and voltage
Add devicetree nodes to initialize external temperature and voltage reading driver. Change-Id: Iae5c3abbf30fab0ad18214bb2e5da3b34974ba2c
This commit is contained in:
@@ -26,6 +26,43 @@
|
||||
qcom,logic = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
aop_pmic_sensor: aop-pmic-sensor@c3f03d8 {
|
||||
compatible = "qcom,aop-pmic-sensor";
|
||||
reg = <0x0c3f03d8 0x28>;
|
||||
mboxes = <&qmp_aop 0>;
|
||||
#thermal-sensor-cells = <1>;
|
||||
|
||||
mss-temp {
|
||||
qcom,pmic-id = <1>;
|
||||
qcom,type = <0>;
|
||||
};
|
||||
|
||||
mx-temp {
|
||||
qcom,pmic-id = <2>;
|
||||
qcom,type = <0>;
|
||||
};
|
||||
|
||||
cx-temp {
|
||||
qcom,pmic-id = <3>;
|
||||
qcom,type = <0>;
|
||||
};
|
||||
|
||||
mss-volt {
|
||||
qcom,pmic-id = <1>;
|
||||
qcom,type = <1>;
|
||||
};
|
||||
|
||||
mx-volt {
|
||||
qcom,pmic-id = <2>;
|
||||
qcom,type = <1>;
|
||||
};
|
||||
|
||||
cx-volt {
|
||||
qcom,pmic-id = <3>;
|
||||
qcom,type = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
@@ -394,4 +431,61 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cx_temp {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&aop_pmic_sensor 1>;
|
||||
trips {
|
||||
thermal-engine-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mx_temp {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&aop_pmic_sensor 2>;
|
||||
trips {
|
||||
thermal-engine-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mss_temp {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&aop_pmic_sensor 3>;
|
||||
trips {
|
||||
thermal-engine-config {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
reset-mon-cfg {
|
||||
temperature = <115000>;
|
||||
hysteresis = <5000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user