Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:pwm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:gpio:pwm [2026/09/14 05:02]
nick
products:sbc:common:applications:gpio:pwm [2026/09/15 03:25] (current)
nick [Control PWM]
Line 14: Line 14:
 ^  VIM4   |  ''PWM_F''     |  35   |  ''GPIOY_8''    |  ''pwm_f''        |/sys/class/pwm/pwmchip4  | ^  VIM4   |  ''PWM_F''     |  35   |  ''GPIOY_8''    |  ''pwm_f''        |/sys/class/pwm/pwmchip4  |
 ^  VIM1S  |  ''PWM_F''     |  35   |  ''GPIOZ_6''    |  ''pwm_f''        |/sys/class/pwm/pwmchip0  | ^  VIM1S  |  ''PWM_F''     |  35   |  ''GPIOZ_6''    |  ''pwm_f''        |/sys/class/pwm/pwmchip0  |
-^  VIM 5  |  ''PWM_J''     |  35   |  ''GPIOY_5''    |  ''pwm_j''        |Not fixed, using the below command to detect  |+^  VIM-5  |  ''PWM_J''     |  35   |  ''GPIOY_5''    |  ''pwm_j''        |Not fixed, using the below command to detect  |
  
 **VIM 5:** **VIM 5:**
Line 132: Line 132:
 device  export  npwm  power  subsystem  uevent  unexport device  export  npwm  power  subsystem  uevent  unexport
 ``` ```
-<tabbox VIM 5>+<tabbox VIM-5>
  
 Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add pwm node to ''fdt_overlays'' node if it doesn't exist. Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add pwm node to ''fdt_overlays'' node if it doesn't exist.
Line 252: Line 252:
 ``` ```
  
-<tabbox VIM 5> +<tabbox VIM-5> 
  
 ```shell ```shell
Line 287: Line 287:
 echo 0 | sudo tee /sys/class/pwm/pwmchip0/pwm1/enable echo 0 | sudo tee /sys/class/pwm/pwmchip0/pwm1/enable
 ``` ```
-<tabbox VIM 5> +<tabbox VIM-5> 
 ```shell ```shell
 set -- /sys/bus/platform/devices/fe058400.pwm/pwm/pwmchip* set -- /sys/bus/platform/devices/fe058400.pwm/pwm/pwmchip*
Last modified: 2026/09/14 05:02 by nick