原来图中的FAN_PWM对设备树中的PWM那个节点,?

背景:orin nx 16, jetpack6.2.1,自研底板
FAN_PWM是从核心板过来的, 在默认的设备树中,用的是pwm3:
tegra234-p3768-0000.dtsi

            pwm@32a0000 {

                    assigned-clocks = <&bpmp TEGRA234_CLK_PWM3>;

                    assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLP_OUT0>;

                    status = "okay";

            };


    fan: pwm-fan {

            compatible = "pwm-fan";

            pwms = <&pwm3 0 45334>;

            #cooling-cells = <2>;

    };

如何确定用的是那个pwmx?

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, it appears that the question is related to controlling the fan speed on a Jetson Orin NX device. The question mentions “FANPWM pwm3 tegra234p37680000dtsi pwmx image 1030516 589 KB”, which suggests that the user is trying to modify the fan speed configuration on their device.

To control the fan speed on a Jetson Orin NX device, you can use the jetson_clocks command with the --fan option. This will set the fan speed to maximum. Here is an example of how to use this command:

$ sudo /usr/bin/jetson_clocks --fan

Note that starting with release 32.4, jetson_clocks no longer sets maximum fan speed by default. If you prefer the old behavior, use the --fan option.

Alternatively, you can also set the fan speed manually by writing to the /sys/class/hwmon/hwmon<x>/pwm<y> file. For example:

$ echo <PWM_duty_cycle> > /sys/class/hwmon/hwmon<x>/pwm<y>

Replace <PWM_duty_cycle> with the desired fan speed value, and <x> and <y> with the correct values for your device.

It’s worth noting that the jetson_clocks command can also be used to restore the previous settings by using the --restore option. Here is an example:

$ sudo /usr/bin/jetson_clocks --restore

In comparison to other Jetson devices, the Jetson Orin NX has similar fan speed control options as the Jetson Orin Nano and Jetson AGX Orin. However, the specific commands and file paths may vary depending on the device and its configuration.

In summary, to control the fan speed on a Jetson Orin NX device, you can use the jetson_clocks command with the --fan option or set the fan speed manually by writing to the /sys/class/hwmon/hwmon<x>/pwm<y> file.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi jeremyzhang,

I think you’ve found the pwm node for FAN in your original post.

GPIO14 is pwm3, which is pwm@32a0000 in device tree.
You can find more info through pinmux spreadsheet as following.

thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.