PWM modulation and DMA transer

hj park
Hi,

I run matrix_pwm and can generate PWM with a fixed duty cycle.
but, I need to generate programmed PWM with various duty cycles in order to
control timing sensitive device. for instance : WS2812B requires 0.9us for
"1", 0.35us for "0".

therefore, I have to program PWM signal with some duty datas like below.

char dutybuff[] = {20, 1000, 1000, 20, 20, 1000, 20, 1000 .... }

and need to transfer this dutybuff datas to PWM capture/compare register
through the DMA.

To do this, Do I have to fix your PWM kernel driver ?
if yes, pls let me know where is it?

and, if you have any example code for DMA to Pheripheral transffering, pls
provide me.  thanks a lot..

hj park
I forgot to mention the name of my board. I'm using NanoPi-M3 but I don't
have much data for S5P6818.

davef
maybe try looking in:

   linux/arch/arm/mach-xyz/mach-something_related_to_your_hardware
platform.c

I can only look in my NanoPi linux directory and even then don't see any
pwm stuff.

You have got the the full datasheet for the processor?

Good luck!

HermannSW
wertyzp stated the reason for no pwm1 on Neo(and M1):
"Also I want to notify everyone that pwm1 is not present in allwinner h3
chip, so pwm1 on pin 1 wouldn't work"

http://www.friendlyarm.com/Forum/viewtopic.php?f=47&t=260

davef
I checked the Wiki before posting and saw that the M3 was Samsung.