From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 22 Oct 2024 10:36:11 +0000
Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM
---
kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt b/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt
index 290ec06..2d5b2ad 100644
--- a/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt
+++ b/kernel/Documentation/devicetree/bindings/thermal/qcom-spmi-temp-alarm.txt
@@ -6,10 +6,9 @@
Required properties:
- compatible: Should contain "qcom,spmi-temp-alarm".
-- reg: Specifies the SPMI address and length of the controller's
- registers.
+- reg: Specifies the SPMI address.
- interrupts: PMIC temperature alarm interrupt.
-- #thermal-sensor-cells: Should be 0. See thermal.txt for a description.
+- #thermal-sensor-cells: Should be 0. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description.
Optional properties:
- io-channels: Should contain IIO channel specifier for the ADC channel,
@@ -20,7 +19,7 @@
pm8941_temp: thermal-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
- reg = <0x2400 0x100>;
+ reg = <0x2400>;
interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
#thermal-sensor-cells = <0>;
@@ -36,18 +35,13 @@
thermal-sensors = <&pm8941_temp>;
trips {
- passive {
- temperature = <1050000>;
+ stage1 {
+ temperature = <105000>;
hysteresis = <2000>;
type = "passive";
};
- alert {
+ stage2 {
temperature = <125000>;
- hysteresis = <2000>;
- type = "hot";
- };
- crit {
- temperature = <145000>;
hysteresis = <2000>;
type = "critical";
};
--
Gitblit v1.6.2