Add PWM control instructions for SigmaStar SSC338Q

Added instructions to switch GPIO to PWM1 mode and configure parameters.
master
Signor Pellegrino 2025-10-24 12:54:07 +03:00 committed by GitHub
parent e3b6bd2132
commit 5512dd4147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,15 @@ SigmaStar SoC research and debugging notes
#### Control PWM channels on SigmaStar SSC338Q
Switch GPIO? to PWM1 mode and set parameters
```
devmem 0x1f207994 16 0x01102
echo 0 > /sys/class/pwm/pwmchip0/export
echo 1600000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 25 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable
```
Switch GPIO1 to PWM1 mode and set parameters
```
devmem 0x1F207994 16 0x1121