Hi all
Jetpack: Jetpack 7.1
SOM: T5000
We use JP7.1 R38.4 on our custom Thor Board ,and then we want to add a sys-fan with pwm9 (K57) and NV_THERM_FAN_TACH1(B54)
Enable pwm9 and NV_THERM_FAN_TACH1 on pinmux table and add DT on tegra264-p4071-0000.dtsi
tegra264-p4071-0000.dtsi:
add
pwm@810c610000 { //pwm9
status = "okay";
};
sys_fan: sys-fan {
compatible = "pwm-fan";
pwms = <&pwm9 0 40000>;
#cooling-cells = <2>;
cooling-levels = <77 102 140 192 255>;
};
tegra264-p4071-0000+p3834-0008-nv.dts :
add
thermal-zones {
tj-thermal {
trips {
tj_trip_active0: active-0 {
temperature = <80000>;
hysteresis = <0>;
type = "active";
};
tj_trip_active1: active-1 {
temperature = <86000>;
hysteresis = <0>;
type = "active";
};
tj_trip_active2: active-2 {
temperature = <91000>;
hysteresis = <0>;
type = "active";
};
tj_trip_active3: active-3 {
temperature = <100000>;
hysteresis = <0>;
type = "active";
};
sys_trip_active0: active-sys-0 {
temperature = <10000>;
hysteresis = <0>;
type = "active";
};
sys_trip_active1: active-sys-1 {
temperature = <20000>;
hysteresis = <0>;
type = "active";
};
sys_trip_active2: active-sys-2 {
temperature = <40000>;
hysteresis = <0>;
type = "active";
};
sys_trip_active3: active-sys-3 {
temperature = <100000>;
hysteresis = <0>;
type = "active";
};
};
cooling-maps {
map-active-0 {
cooling-device = <&soc_fan 0 1>;
trip = <&tj_trip_active0>;
};
map-active-1 {
cooling-device = <&soc_fan 1 2>;
trip = <&tj_trip_active1>;
};
map-active-2 {
cooling-device = <&soc_fan 2 3>;
trip = <&tj_trip_active2>;
};
map-active-3 {
cooling-device = <&soc_fan 3 4>;
trip = <&tj_trip_active3>;
};
map-active-4 {
cooling-device = <&sys_fan 0 1>;
trip = <&sys_trip_active0>;
};
map-active-5 {
cooling-device = <&sys_fan 1 2>;
trip = <&sys_trip_active1>;
};
map-active-6 {
cooling-device = <&sys_fan 2 3>;
trip = <&sys_trip_active2>;
};
map-active-7 {
cooling-device = <&sys_fan 3 4>;
trip = <&sys_trip_active3>;
};
};
};
};
on /sys/class/hwmon/hwmon2 can check new pwm1 and /sys/class/hwmon/hwmon5/rpm get TACH1 rpm , but sys fan rpm so slow , even echo 255 > pwm1 rpm not change .
we echo 255 to pwm and check /sys/kernel/debug/pwm , sys-fan duty-cycle has change but rpm and fan pwm voltage not any change:
On soc fan these change is work , but new sys-fan not work.
The hardware circuitry for connecting the sys-fan PWM9 to the sys-fan is the same as that used in the soc-fan PWM4 (K62).
Is there anything we might have missed? Or is there anything that needs to be configured?
Before echo 255 > pwm
After echo 255 > pwm





