Skip to content

dts: arm: nuvoton: npcm4: add PWM device tree configuration - #204

Merged
maxdog988 merged 1 commit into
Nuvoton-Israel:joseph/npcm4_to_npcmxfrom
timlee66:pwm
Jan 7, 2026
Merged

maxdog988 merged 1 commit into
Nuvoton-Israel:joseph/npcm4_to_npcmxfrom
timlee66:pwm

Conversation

@timlee66

@timlee66 timlee66 commented Jan 7, 2026 •

Copy link
Copy Markdown
Collaborator

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: 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
npcm400:
$ pwm cycles pwm@4008a000 5 1000 500
npcm400:~$ pwm cycles pwm@4008a000 5 1000 0

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
maxdog988 merged commit 44a96b3 into Nuvoton-Israel:joseph/npcm4_to_npcmx Jan 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants