forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt
....@@ -6,10 +6,9 @@
66
77 Required properties:
88 - compatible: Should contain "qcom,spmi-temp-alarm".
9
-- reg: Specifies the SPMI address and length of the controller's
10
- registers.
9
+- reg: Specifies the SPMI address.
1110 - interrupts: PMIC temperature alarm interrupt.
12
-- #thermal-sensor-cells: Should be 0. See thermal.txt for a description.
11
+- #thermal-sensor-cells: Should be 0. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description.
1312
1413 Optional properties:
1514 - io-channels: Should contain IIO channel specifier for the ADC channel,
....@@ -20,7 +19,7 @@
2019
2120 pm8941_temp: thermal-alarm@2400 {
2221 compatible = "qcom,spmi-temp-alarm";
23
- reg = <0x2400 0x100>;
22
+ reg = <0x2400>;
2423 interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
2524 #thermal-sensor-cells = <0>;
2625
....@@ -36,18 +35,13 @@
3635 thermal-sensors = <&pm8941_temp>;
3736
3837 trips {
39
- passive {
40
- temperature = <1050000>;
38
+ stage1 {
39
+ temperature = <105000>;
4140 hysteresis = <2000>;
4241 type = "passive";
4342 };
44
- alert {
43
+ stage2 {
4544 temperature = <125000>;
46
- hysteresis = <2000>;
47
- type = "hot";
48
- };
49
- crit {
50
- temperature = <145000>;
5145 hysteresis = <2000>;
5246 type = "critical";
5347 };