We are using IMX6SL micro processor with kernel-4.1.15 and LED strip(WS2812: contains 3 pin Vcc, Gnd, Data) is connected on SPI interface (MOSI pin).
We have enable Spidev driver for it and put entry in device tree too.
And we are using spidev node for operating LED strip, and written one test code for same which is written SPI buffer to Spidev node.
But we are not able to get perfect/correct colors on led strip.
Following are some input of test code :
Speed : 3Mhz (also checked 10Mhz)
Data bit : 8
Reset count : 20
Led_byte : 24 (three color R, G, B)
Please suggest some input regarding this, how we can operate perfectly all colors on LED strip. And suggest also correct spi mode for it.