On 12/03/2019 09:04, Guillaume Gardet wrote:
> Hi Per,
> 
>> -----Original Message-----
>> From: Per Jessen <[email protected]>
>> Sent: 12 March 2019 08:58
>> To: [email protected]
>> Subject: Re: [opensuse-arm] vcio, STRICT_DEVMEM
>>
>> Per Jessen wrote:
>>
>>> Matthias Brugger wrote:
>>>
>>>> On 10/03/2019 19:35, Per Jessen wrote:
>>>>> Well, at least I have a vcio module that builds now, we'll see it if
>>>>> it also works.
>>>>>
>>>>
>>>> It seems that there is another thread on this mailing list, but I
>>>> wasn't able to find it. What do you want to achieve?
>>>
>>> Hi Matthias,
>>>
>>> nothing too complex I hope, I just want to control a series of WS2812
>>> LEDs, using the code/utilities from
>>>
>>> https://github.com/jgarff/rpi_ws281x
>>

I had a look on that code and it looks like a hack to me.

>> Well, for what's worth -
>>
>> using the vcio code from here:
>>
>> http://www.macs.hw.ac.uk/~hwloidl/hackspace/linux/drivers/char/broadco
>> m/vcio.c
>> (I forget exactly where I found it, probably on github).
>>
>> I built the vcio module, seems to work fine.  Then I built the kernel without
>> STRICT_DEVMEM and I can now control a string of WS2812 LEDs.
> 
> Thanks for your feedback!
> The vcio module can probably be upstreamed, or at least packaged in OBS, I 
> guess.
> 

I don't think this is the right approach for upstream. If we want to control
these leds, then we should write a kernel driver which uses the mbox and not
implement detection etc in user-space.
If you want to use a LED matrix, then I think this is a good candidate for a
tinydrm driver in the kernel.

Best regards,
Matthias
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to