]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: qcom: sc8280xp-pmics: Add more temp-alarm devices
authorPengyu Luo <mitltlatltl@gmail.com>
Sat, 11 Jan 2025 08:32:08 +0000 (16:32 +0800)
committerBjorn Andersson <andersson@kernel.org>
Wed, 5 Feb 2025 03:14:36 +0000 (21:14 -0600)
commit60a2c9cc15825fd0016a622fe7a3b2838abc32f5
tree9477efe9733b0cddc4030a33bb00740afcef7a19
parent18ecea8e04d8a259625a1f44c41a5d2c4b552d33
arm64: dts: qcom: sc8280xp-pmics: Add more temp-alarm devices

There are 4 Qualcomm PMIC Die Temp Alarm Sensor Devices under windows os,
in separate dt files, pm8350c and pmr735a have already support temp alarm,
add the rest 2 devices for sc8280xp-pmic.

Temperature trip points are from dsdt(Temp. in tenths of degrees Kelvin).

example:
    Name (TPSV, 0x0E60) // 0x0E60 - 2730 = 950
    Method (_PSV, 0, NotSerialized)  // _PSV: Passive Temperature
    {
        Return (\_SB.TZ15.TPSV)
    }

    Name (TCRT, 0x0F28) // 0X0F28 - 2730 = 1150
    Method (_CRT, 0, NotSerialized)  // _CRT: Critical Temperature
    {
        Return (\_SB.TZ15.TCRT)
    }

Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
Link: https://lore.kernel.org/r/20250111083209.262269-2-mitltlatltl@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi