Repository navigation
dts: arm: nuvoton: npcm4: add PWM device tree configuration - #204
Merged
Merged
Conversation
Add device tree configuration for PWM support on NPCM4: - Enable PWM nodes in npcm400_evb board configuration - Add PWM alternate function mappings in npcm-alts-map.dtsi - Define PWM controller nodes in npcm.dtsi - Add PWM pinctrl configurations in npcm4-pinctrl.dtsi Tested using pwm shell commands: npcm400:~$ pwm cycles pwm@40092000 pwm@40090000 pwm@4008e000 pwm@4008c000 pwm@4008a000 pwm@40088000 pwm@40086000 pwm@40084000 pwm@40082000 pwm@40080000 npcm400:~$ pwm cycles pwm@4008a000 5 1000 1000 npcm400:~$ pwm cycles pwm@4008a000 5 1000 500 npcm400:~$ pwm cycles pwm@4008a000 5 1000 0
maxdog988
merged commit Jan 7, 2026
44a96b3
into
Nuvoton-Israel:joseph/npcm4_to_npcmx
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add device tree configuration for PWM support on NPCM4:
Tested: get all pwm nodes
npcm400:~$ pwm cycles
pwm@40092000 pwm@40090000 pwm@4008e000 pwm@4008c000 pwm@4008a000
pwm@40088000 pwm@40086000 pwm@40084000 pwm@40082000 pwm@40080000
Tested: change pwm5 duty cycle
npcm400:
$ pwm cycles pwm@4008a000 5 1000 1000$ pwm cycles pwm@4008a000 5 1000 500npcm400:
npcm400:~$ pwm cycles pwm@4008a000 5 1000 0