PWM problems

Type: Self-Compiled Firmware
SDK Package Name: rk356x_linux_release_v1.3.0b_20221213
Modification Content: LVDS with PWM configuration
Log: no log.zip

I have a custom board based on RK3568jq.
I made Linux minimal image using Yocto:
https://wiki.t-firefly.com/en/Fi … e/manual_yocto.html
I added PWM control and it works fine using next command:echo 100 > /sys/class/backlight/backlight/brightness

but as i can see using oscilloscope , the frequency of PWM signal is about 40 seconds instead of 20 kHz !

my dtsi-file modifications:
rk3568-firefly-roc-pc.dtsi

backlight:backlight {
status = “okay”;
compatible = “pwm-backlight”;
pwms = <&pwm4 0 50000 0>;

}

lvds_panel: lvds-panel {
compatible = “simple-panel”;
status = “okay”;
backlight = <&backlight>;

}

what im doing wrong about frequency?
The third paramenter 50000 is frequency in nanoseconds ?

pwms = <&pwm4 0 50000 0>;

tchip_askquestions
no log.zip (22 Bytes)

The 50000 is means 50000ns.
If you need to set the maximum clock frequency, please use ‘echo 255 > /sys/class/backlight/backlight/brightness’.

Wollen Sie The Open Group OGA-032 Zeritifizierungsprüfung ablegen? Wollen Sie die The Open Group OGA-032 Zertifizierung bekommen? Wie können Sie ohne sehr gute Vorbereitung diese Prüfung ablegen? Tatsächlich gibt es eine Weise für Sie, in sehr beschränkter Zeit die The Open Group OGA-032 Prüfung leicht zu bestehen. Was können Sie machen? Es ist erreichbar, dass Sie die The Open Group OGA-032 Dumps von ZertPruefung benutzen.

Your article is simply remarkable, thank you for sharing! Preparing for the CITM cuttin g-edge resources exam. Hope it goes smoothly!

What a great source of motivation, thank you for sharing this article! Enhance your IT skills with free Valid test PDII-JPN cram pdf. Best wishes for your exams!