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/hwmon/pwm-fan.txt | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/kernel/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/kernel/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
index c6d5332..457ce16 100644
--- a/kernel/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
+++ b/kernel/Documentation/devicetree/bindings/hwmon/pwm-fan.txt
@@ -6,11 +6,26 @@
- cooling-levels : PWM duty cycle values in a range from 0 to 255
which correspond to thermal cooling states
+Optional properties:
+- fan-supply : phandle to the regulator that provides power to the fan
+- interrupts : This contains a single interrupt specifier which
+ describes the tachometer output of the fan as an
+ interrupt source. The output signal must generate a
+ defined number of interrupts per fan revolution, which
+ require that it must be self resetting edge interrupts.
+ See interrupt-controller/interrupts.txt for the format.
+- pulses-per-revolution : define the tachometer pulses per fan revolution as
+ an integer (default is 2 interrupts per revolution).
+ The value must be greater than zero.
+- rockchip,temp-trips : The property is an array of 2-tuples items, and
+ each item consists of temperature in millicelsius and
+ pwm cooling state. This depends on CONFIG_ROCKCHIP_SYSTEM_MONITOR.
+ If add the property the fan cooling state will be changed
+ by system monitor. Otherwise, use the default thermal governor.
+
Example:
fan0: pwm-fan {
compatible = "pwm-fan";
- cooling-min-state = <0>;
- cooling-max-state = <3>;
#cooling-cells = <2>;
pwms = <&pwm 0 10000 0>;
cooling-levels = <0 102 170 230>;
@@ -35,3 +50,13 @@
};
};
};
+
+Example 2:
+ fan0: pwm-fan {
+ compatible = "pwm-fan";
+ pwms = <&pwm 0 40000 0>;
+ fan-supply = <®_fan>;
+ interrupt-parent = <&gpio5>;
+ interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
+ pulses-per-revolution = <2>;
+ };
--
Gitblit v1.6.2