@luz I got it from there only, Thanks.
Best posts made by dixit
Latest posts made by dixit
Controlling WS2812 device on Omega2 board
I have ported the above mentioned ws2812 driver in to latest SDK running kernel 4.14.
Driver source: https://github.com/jnweiger/ws2812_sprites/tree/master/carambola2/package/ws2812_draiveris/src
I haven't modified anything in the driver except #include <asm/uaccess.h> to #inlclude <linux/uaccess.h> as the asm/uaccess.h was throwing error of incompatibility.
After compiling it successfully for omega2, i am able to insert it successfully via insmod, the dmesg shows appropriate logs as well.
But when I try to write to glow LEDs(echo "}!!!}!!!}" > /dev/ws2812) it does not show any effect on the specified GPIO pin.
I am using GPIO 18 and my LED has 5 leds in it; I am following below sequence,
insmod ws2812_driveris.ko gpios=18 leds_per_gpio=5
echo "}!!!}!!!}" > /dev/ws2812
This does not have any effect on LEDs, LEDs are in Off state.
I am suspecting that the low level GPIO registers which are being written/read in the driver are not for Omega2.
Help me to understand this better!
Thanks in advance.