Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] PWM

154

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
154

Linux PWM

Posted at 10/25/2022 22:08:53      View3632 | Replies5        Print      Only Author   [Copy Link] 1#
  • Type: Official Firmware
  • Filename: ---
  • Download Address: -
  • Log: no log.zip
Problem description and steps to reproduce:
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 ?

no log.zip

22 Bytes, Down times: 0

Reply

Use props Report

77

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
77
Posted at 1/9/2026 07:44:59        Only Author  2#
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!
Reply

Use props Report

100

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
100
Posted at 2/1/2026 12:20:36        Only Author  3#
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.
Reply

Use props Report

107

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
107
Posted at 2/12/2026 14:10:27        Only Author  4#
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 Im giving them away for free!
Reply

Use props Report

97

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
97
Posted at 2/21/2026 14:35:23        Only Author  5#
Truly an extraordinary article, Im thankful for your sharing. Valid IFC test sample provides a range of useful materials for free, hoping they help you progress.
Reply

Use props Report

101

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
101
Posted at 3/7/2026 05:57:24        Only Author  6#
Möchten Sie in kurzer Zeit die COBIT-2019 ISACA Zertifizierungsprfung bestehen? Unser DeutschPrfung bietet Ihnen die Testfragen und Antworten zur ISACA COBIT-2019 Zertifizierung, die von den IT-Experten durch Experimente und Praxis erhalten werden und ber IT-Zertifizierungserfahrungen ber 10 Jahre verfgt. Außerdem gewährt unser DeutschPrfung Ihnen die vollständigsten Zertifizierungskriterien sowie Ausbildungsmethoden. Die Ergebnisse von unseren Kunden haben bewiesen, dass die Genauigkeit der ISACA COBIT-2019 Zertifizierung 100% beträgt! Wenn Sie irgendeine Frage ber die COBIT-2019 Prfung haben, werden wir so schnell wie möglich beantworten.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list