mirror of
https://github.com/oplus-giulia-dev/android_kernel_oneplus_sm8650-devicetrees
synced 2025-11-04 06:44:04 +08:00
Add support for MBG TM peripheral for pm8775 sail pmic. Change-Id: I5dc56682971acd88c89f08f153d8da2187ee4a7b
169 lines
2.8 KiB
Plaintext
169 lines
2.8 KiB
Plaintext
#include "pm8775.dtsi"
|
|
|
|
&pm8775_3 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pm8775_4 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pm8775_sail_3 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pm8775_sail_4 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pm8775_1 {
|
|
/delete-node/ pon_pbs@800;
|
|
/delete-node/ pon_hlos@1200;
|
|
|
|
pon_hlos@1200 {
|
|
compatible = "qcom,pm8998-pon";
|
|
reg = <0x1200>, <0x800>;
|
|
reg-names = "pon_hlos", "pon_pbs";
|
|
|
|
pwrkey {
|
|
compatible = "qcom,pmk8350-pwrkey";
|
|
interrupts = <0x0 0x12 0x7 IRQ_TYPE_EDGE_BOTH>;
|
|
linux,code = <KEY_POWER>;
|
|
};
|
|
|
|
resin {
|
|
compatible = "qcom,pmk8350-resin";
|
|
interrupts = <0x0 0x12 0x6 IRQ_TYPE_EDGE_BOTH>;
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pon_pbs_2 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&pon_hlos_2 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&soc {
|
|
pmic-pon-log {
|
|
compatible = "qcom,pmic-pon-log";
|
|
nvmem = <&pm8775_1_sdam_5>;
|
|
nvmem-names = "pon_log";
|
|
};
|
|
|
|
reboot_reason {
|
|
compatible = "qcom,reboot-reason";
|
|
nvmem-cells = <&restart_reason>;
|
|
nvmem-cell-names = "restart_reason";
|
|
};
|
|
};
|
|
|
|
&pm8775_1_adc {
|
|
#thermal-sensor-cells = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pm8775_2_adc {
|
|
#thermal-sensor-cells = <1>;
|
|
status = "okay";
|
|
};
|
|
|
|
&thermal_zones {
|
|
pm8775_1_temp_alarm: pm8775_1_tz {
|
|
polling-delay-passive = <100>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "step_wise";
|
|
thermal-sensors = <&pm8775_1_tz>;
|
|
|
|
trips {
|
|
pm8775_1_trip0: trip0 {
|
|
temperature = <115000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_1_trip1: trip1 {
|
|
temperature = <125000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_1_trip2: trip2 {
|
|
temperature = <155000>;
|
|
hysteresis = <0>;
|
|
type = "critical";
|
|
};
|
|
};
|
|
};
|
|
|
|
pm8775_2_temp_alarm: pm8775_2_tz {
|
|
polling-delay-passive = <100>;
|
|
polling-delay = <0>;
|
|
thermal-governor = "step_wise";
|
|
thermal-sensors = <&pm8775_2_tz>;
|
|
|
|
trips {
|
|
pm8775_2_trip0: trip0 {
|
|
temperature = <115000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_2_trip1: trip1 {
|
|
temperature = <125000>;
|
|
hysteresis = <0>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_2_trip2: trip2 {
|
|
temperature = <155000>;
|
|
hysteresis = <0>;
|
|
type = "critical";
|
|
};
|
|
};
|
|
};
|
|
|
|
pm8775_sail_1_mbg_tm: pm8775_1_mbg_tz {
|
|
polling-delay-passive = <100>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pm8775_sail_1_tz>;
|
|
|
|
trips {
|
|
thermal-engine-config {
|
|
temperature = <135000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_sail_1_trip0: trip0 {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
|
|
pm8775_sail_2_mbg_tm: pm8775_2_mbg_tz {
|
|
polling-delay-passive = <100>;
|
|
polling-delay = <0>;
|
|
thermal-sensors = <&pm8775_sail_2_tz>;
|
|
|
|
trips {
|
|
thermal-engine-config {
|
|
temperature = <135000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
|
|
pm8775_sail_2_trip0: trip0 {
|
|
temperature = <115000>;
|
|
hysteresis = <5000>;
|
|
type = "passive";
|
|
};
|
|
};
|
|
};
|
|
};
|