Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04f261ae authored by TeYuan Wang's avatar TeYuan Wang Committed by Cyan_Hsieh
Browse files

thermal: add thermal sensors for panel audio throttling

Add panel-audio-therm for audio hal to detect Tskin temperature and sdm-therm to detect system power.
Bug: 143265000
Test: Panel audio throttling can be triggered
Change-Id: I5e0d659deca4d50d7a142b2efbf030c284de8784
parent 6152ab65
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,3 +31,7 @@ on property:sys.retaildemo.enabled=1

on property:sys.retaildemo.enabled=0
    write /sys/class/thermal/cdev-by-name/dc_icl/cur_state 0

on late-init
    chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_temp
    chown system system /sys/devices/virtual/thermal/tz-by-name/panel-audio-therm/trip_point_0_hyst
+49 −0
Original line number Diff line number Diff line
@@ -244,6 +244,55 @@
            "VrThreshold":"NAN",
            "Multiplier":0.001,
            "Monitor":true
        },
        {
            "Name":"panel-audio-therm",
            "Type":"UNKNOWN",
            "HotThreshold":[
                "NAN",
                "41.0",
                "NAN",
                "NAN",
                "NAN",
                "NAN",
                "NAN"
            ],
            "HotHysteresis":[
                0.0,
                1.9,
                0.0,
                0.0,
                0.0,
                0.0,
                0.0
            ],
            "VrThreshold":"NAN",
            "Multiplier":0.001,
            "Monitor":true
        },
        {
            "Name":"sdm-therm",
            "Type":"UNKNOWN",
            "HotThreshold":[
                "NAN",
                "NAN",
                "NAN",
                "NAN",
                "NAN",
                "NAN",
                "NAN"
            ],
            "HotHysteresis":[
                0.0,
                0.0,
                0.0,
                0.0,
                0.0,
                0.0,
                0.0
            ],
            "VrThreshold":"NAN",
            "Multiplier":0.001
        }
    ],
    "CoolingDevices":[