Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge-2l: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:edge-2l:applications:gpio:pwm [2026/02/03 21:45]
gray update by using AI
products:sbc:edge-2l:applications:gpio:pwm [2026/05/11 02:08] (current)
nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:gpio:pwm to products:sbc:edge-2l:applications:gpio:pwm
Line 5: Line 5:
 ===== Introduction ===== ===== Introduction =====
  
-This page explains how to use the hardware PWM (Pulse Width Modulation) and guides you through controlling it on the [[products:sbc:edge-2L:applications:gpio:40pin-header|16-pin GPIO header]].+This page explains how to use the hardware PWM (Pulse Width Modulation) and guides you through controlling it on the [[products:sbc:edge-2L:applications:gpio:40pin-header|16-Pin Header]].
  
 <WRAP important > <WRAP important >
 To use the PWM functionality on the Edge-2L, you must attach the Edge-2L IO board. To use the PWM functionality on the Edge-2L, you must attach the Edge-2L IO board.
 </WRAP> </WRAP>
-===== PWM Information =====+===== PWM information =====
  
 |            PWM        PIN  ^  GPIO Name  ^  GPIO Number  ^  DT Overlays Node  ^  Device Node              ^ |            PWM        PIN  ^  GPIO Name  ^  GPIO Number  ^  DT Overlays Node  ^  Device Node              ^
Line 16: Line 16:
  
  
-===== Enable PWM via Device Tree Overlay=====+===== Enable PWM =====
  
 To use the hardware PWM, you must first enable it by applying a [[products:sbc:common:configurations:device-tree-overlay|Device Tree Overlay]]. To use the hardware PWM, you must first enable it by applying a [[products:sbc:common:configurations:device-tree-overlay|Device Tree Overlay]].
  
-Edit the file '/boot/dtb/rockchip/rk3576-khadas-edge-2l.dtb.overlay.env' and add the overlay 'edge-2l-io-pwm' to the 'fdt_overlays' parameter if it is not already present:+Edit the file ''/boot/dtb/rockchip/rk3576-khadas-edge-2l.dtb.overlay.env'' and add the overlay ''edge-2l-io-pwm'' to the ''fdt_overlays'' parameter if it is not already present:
  
 ```shell ```shell
Line 33: Line 33:
 ``` ```
  
-===== Disable PWM to Use as GPIO =====+===== Disable PWM to use as GPIO =====
  
 If you wish to use the pin as a standard GPIO instead of PWM, remove the ''edge-2l-io-pwm'' entry from the ''fdt_overlays'' parameter in the Device Tree Overlay configuration file and reboot. If you wish to use the pin as a standard GPIO instead of PWM, remove the ''edge-2l-io-pwm'' entry from the ''fdt_overlays'' parameter in the Device Tree Overlay configuration file and reboot.
  
-===== Control PWM via Sysfs=====+===== Control PWM via sysfs=====
  
 **Enable and Configure PWM:**  **Enable and Configure PWM:** 
Line 65: Line 65:
  
 **Disable PWM:** **Disable PWM:**
 +
 To stop the PWM signal: To stop the PWM signal:
 ```shell ```shell
Last modified: 2026/02/03 21:45 by gray