How to enable the PWM by default, not by sysfs control

As I know, PWM can been enabled by sysfs.

echo 0 > /sys/class/pwm/pwmchip0/export
cd /sys/class/pwm/pwmchip0/pwm0
echo 1000000 > period
echo 500000 > duty_cycle
echo 1 > enable

But now, How to enable the PWM by default,
For DTSI, I add the following code, but it’s not work.

backlight {
compatible = “pwm-backlight”;
status = “okay”;
panel-a-wuxga-8-0-bl {
pwms = <&tegra_pwm 0 40161>;
};
}

Can you give me some suggestions.

BRs
Thanks
Pan Andy

hello PanAndy,

please refer to Platform Adaptation and Bring-Up Guide for more details.
you’re able to download it through Tegra Linux Driver Package Developer Guide 24.2.1–> Downloads
feel free to let us know if you have further questions.
thanks

Hello JerryChang,

I cannot find the documents named Tegra Linux Driver Package Developer Guide 24.2.1.
Can you share me the download site, thanks

BRs
Thanks
Pan Andy

hello PanAndy,

please visit Embedded Download Center at https://developer.nvidia.com/embedded/downloads
there’s L4T Documentation for each public release version, you could download 24.2.1 documentation here, thanks
http://developer.nvidia.com/embedded/dlc/l4t-documentation-24-2-1