rpi-rgb-led-matrix icon indicating copy to clipboard operation
rpi-rgb-led-matrix copied to clipboard

Trying to port lib to work with rk3566 and rk3399.

Open kvjoshi opened this issue 2 years ago • 9 comments

Due to the recent shortages of rpi , im trying to make the script work on rk3599 initially and later on rk3399 for rock 3 and rockpi 4.

any guidance would be appreciated if anyone has tried to do so.

kvjoshi avatar Feb 17 '23 19:02 kvjoshi

You essentially need to read the datasheet of your SoC and re-implement the interface provided by gpio.h. If your SoC has a way to memory map GPIO pins (most important for fast access), you should be ready to go.

If you also has a way to create nicely timed pulses per hardware (as implemented as the HardwarePinPulser in gpio.cc, the output might also be pretty glitch-free. If not, the fallback implementation that manually wiggles the pin with a usleep() is a good default.

hzeller avatar Feb 17 '23 19:02 hzeller

ok thanks , looking at the datasheets now.

kvjoshi avatar Feb 18 '23 08:02 kvjoshi

ok thanks , looking at the datasheets now.

hello have you finish it?

652436962 avatar Apr 04 '23 07:04 652436962

no. i put it on hold , mapping different gpio blocks is a little time consuming. shifted to teensy SmartMatrix as an alternative. will be resuming next month, was facing issues with accessing dev/mem

kvjoshi avatar Apr 13 '23 15:04 kvjoshi

Eager for further update on porting lib with rock chip...

xuniuer avatar May 04 '23 05:05 xuniuer

You essentially need to read the datasheet of your SoC and re-implement the interface provided by gpio.h. If your SoC has a way to memory map GPIO pins (most important for fast access), you should be ready to go.

If you also has a way to create nicely timed pulses per hardware (as implemented as the HardwarePinPulser in gpio.cc, the output might also be pretty glitch-free. If not, the fallback implementation that manually wiggles the pin with a usleep() is a good default.

Thank you @hzeller ! I started to look at the internals to begin porting this for the Orange Pi5B. Assuming i can get one set working with being wired directly, I will work on a compatible daughter board using the schematics you have in this repo as a base.

My goal is to create a PR for all of this to use and hopefully get Electro Dragon to mass produce the daughter boards.

More to come :)

jaygarcia avatar Jun 25 '23 15:06 jaygarcia

@jaygarcia all the best. due to changes in my schedule, I had to bench the port for rockchip.

kvjoshi avatar Jun 30 '23 11:06 kvjoshi

no. i put it on hold , mapping different gpio blocks is a little time consuming. shifted to teensy SmartMatrix as an alternative. will be resuming next month, was facing issues with accessing dev/mem

@kvjoshi Closing kernel "CONFIG_STRICT_DEVMEM" makes "mmap" work.

SturdyCat avatar Oct 15 '23 14:10 SturdyCat

@SturdyCat , How to shutdown kernel CONFIG_STRICT_DEVMEM=n

paulpham1407 avatar Dec 22 '23 13:12 paulpham1407