Firefly Open Source Community

Title: PWM [Print This Page]

Author: Maverick_by_    Time: 10/25/2022 22:08
Title: PWM
Last edited by Maverick_by_ In 10/26/2022 13:34 Editor

I try to use PWM, using this link:
https://wiki.t-firefly.com/en/iCore-3568JQ/driver_pwm.html
1) There is NO kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-demo.dtsi in my /rockchip/ folder.
And i can't add the PWM DTS configuration in the DTS source file
pwm_demo: pwm_demo {
        status = "disabled";
        compatible = "firefly,rk356x-pwm";
        pwms = <&pwm1 0 10000 1>;   //pwm1WM number   0 10000WM period in nanoseconds  1:polarity
        duty_ns = <5000>;   //pwm duty cycle activation time, unit ns
    };
Is documentation wrong?
2) I don't understand what to do with this C++ code:
struct pwm_device * pwm1 = NULL;pwm0 = pwm_request(1, ¡°firefly-pwm¡±);pwm_config(pwm0, 500000, 1000000);pwm_enable(pwm0);

This is kernel driver source code, necessary to rebuild kernel and write firmware to SOM, why should i change it ? I need to change PWM parameters dinamically.How can i control it ?

tchip_askquestions

no log.zip

22 Bytes, Down times: 0


Author: jackbla997    Time: 1/9/2026 07:44
Thank you for sharing; the article is truly stunning! Upgrade your IT skills with free Pass CDPSE test guide. Wishing you good luck in your exams!
Author: mattwhi452    Time: 2/1/2026 12:20
Your article has made a lasting impression, thank you! Best of luck! Here are the free Test Comm-Dev-101 engine version study resources for you.
Author: ianlewi606    Time: 2/12/2026 14:10
This article is exceptional, I truly appreciate you sharing it! The Updated CPIM-8.0 Testkings questions were the stepping stones to my career success, and today I¡¯m giving them away for free!
Author: lucasmo460    Time: 6 day before
Truly an extraordinary article, I¡¯m thankful for your sharing. Valid IFC test sample provides a range of useful materials for free, hoping they help you progress.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1