Hello,
We are trying to utilize a second pwm fan for the nx xavier.
Applying below change to the dts:
pwm_fan_shared_data2: pfsd2 {
num_resources = <1>;
secret = <47>;
active_steps = <10>;
active_rpm = <0 1000 2000 3000 4000 5000 6000 7000 10000 11000>;
rpm_diff_tolerance = <2>;
active_rru = <40 2 1 1 1 1 1 1 1 1>;
active_rrd = <40 2 1 1 1 1 1 1 1 1>;
state_cap_lookup = <2 2 2 2 3 3 3 4 4 4>;
pwm_period = <45334>;
pwm_id = <8>;
pwm_polarity = <PWM_POLARITY_INVERTED>;
suspend_state = <1>;
step_time = <100>; /* mesecs */
state_cap = <7>;
active_pwm_max = <256>;
tach_period = <1000>;
pwm_gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(R, 0) GPIO_ACTIVE_LOW>;
};
pwm-fan2 {
compatible = "pwm-fan";
status = "okay";
#pwm-cells = <1>;
pwms = <&tegra_pwm8 0 45534>;
shared_data = <&pwm_fan_shared_data2>;
profiles {
default = "quiet";
quiet {
state_cap = <4>;
active_pwm = <0 77 120 160 255 255 255 255 255 255>;
};
cool {
state_cap = <4>;
active_pwm = <0 77 120 160 255 255 255 255 255 255>;
};
};
};
We do see pwm-fan2 device.
Reading cur_pwm shows a valid duty cycle value.
However, checking the pin13 in the 40 pin connector, nothing happens.
Even setting the target pwm to 255, gpio line is still 0.
dmesg logs gives this:
[ 5.068889] FAN:PWM gpio is: 424
[ 5.072243] pwm_fan_driver pwm-fan2: FAN:PWM gpio is: 424
[ 5.111712] FAN:gpio request success.
[ 5.118508] pwm_fan_driver pwm-fan2: FAN:PWM id is: 8
Any thoughts of what we are doing wrong?