Commit Graph

23 Commits

Author SHA1 Message Date
iabdalkader
a266ac33f1 ports/all: Fix calls on uninitialized CSIs.
Detection flag should be set after CSIs are detected in
the scanning code, and functions that loop over CSIs
should check it.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-27 10:03:48 +02:00
iabdalkader
25b7b8cbb2 ports/stm32: Add support for multiple CSIs.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-25 21:15:24 +02:00
Kwabena W. Agyeman
c4795d3191 ports/stm32: Increase SPI DMA efficency.
The SPI fifo triggers a request when it has 4-bytes of data allowing
for more efficent bus usage. The same technique is used on the H7
to reduce system bus matrix resources.
2025-06-24 10:19:31 -07:00
Kwabena W. Agyeman
3984ec783f ports/stm32: Move VOSPI memory near DMA controller.
On the STM32N6 the DMA memory meant to be used with the SPI bus is
in the low-performance memory domain. Moving the DMA buffers and
linked list buffers there reduces the AHB cycle time by the DMA
controller making it more stable.
2025-06-24 10:19:31 -07:00
Kwabena W. Agyeman
fc0cc40a31 drivers/sensors/lepton: Update lepton driver with asynchronous fb.
The FLIR Lepton driver now continously receives frames in the background
that are stored in allocated frame buffers. On snapshot the stored frame
is post-processed to produce a color an image.

* Transpose now works allowing for image rotation with IMU.
* Bilinear scaling is now used when drawing at a higher res.
2025-06-24 10:19:29 -07:00
Kwabena W. Agyeman
89d60c8002 ports/stm32: Add missing init bits to fix glitches. 2025-06-23 14:40:11 -07:00
Kwabena W. Agyeman
1dece0b461 ports/stm32: Fully implement N6 GPU driver for draw_image. 2025-06-23 14:29:32 -07:00
Kwabena W. Agyeman
8f81f16963 ports/stm32: Fix NEMA GPU driver.
* You have to clean and invalidate the destination image so that
  the processor writes out the full image and so that the processor
  doesn't flush cache lines ontop of the GPU writing the image.
* The ICACHE doesn't automatically flush itself after a draw operation.
  Depending on the situation, it will just hold the entire source
  image internally and never read it again. In particular, when
  scaling something like 160x120 it just caches the whole image
  and never reads it again.
2025-06-23 12:34:41 -07:00
iabdalkader
43c6b6c5fd ports/stm32: Fix GPU drawing offset. 2025-06-23 12:34:41 -07:00
iabdalkader
b04f2fcf6a ports/all: Refactor CSI I2C bus.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-23 14:14:02 +02:00
iabdalkader
e5178be046 ports/stm32: Reset pipes states on abort.
HAL STOP doesn't seem to do so.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-23 13:04:45 +02:00
iabdalkader
fef2e1dc8b ports/stm32: Refactor CSI.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-23 12:41:25 +02:00
Kwabena W. Agyeman
acd4506e5a ports/stm32: Fix missing sleep clocks.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-20 14:20:52 +02:00
iabdalkader
deba7c05a6 modules/py_audio: Add support for MDF. 2025-06-19 16:24:38 +02:00
iabdalkader
6793761eb8 ports/stm32: N6 support.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-19 16:13:14 +02:00
Sighthesia
59e36120d9
ports: Add conditional compilation for py_fir_init0() 2025-06-10 22:57:31 +08:00
iabdalkader
7be7bb3ded ports/stm32: Make dma handle static. 2025-06-07 16:34:54 +02:00
iabdalkader
333eea86da modules/py_display: Pass DT to display controller initializer.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-02 16:11:59 +02:00
iabdalkader
6ddc772c2f modules/py_display: Use board-defined DSI PLL config.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-02 10:01:24 +02:00
iabdalkader
009ca76049 ports/stm32: Define sign_alt flag.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-01 10:11:55 +02:00
iabdalkader
d15d13ac41 ports/stm32: Refactor framebuffer API to accept a context.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-26 16:29:30 +03:00
iabdalkader
8ea48daf61 ports/stm32: Fix build.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-15 20:23:31 +02:00
iabdalkader
daf2bb30da misc: Restructure repo.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-13 08:28:34 +02:00