Go to advanced search

by mangodan2003
Wed Jun 09, 2021 4:08 pm
Forum: Graphics, sound and multimedia
Topic: Camera interfacing, colour-space conversion
Replies: 1
Views: 265

Re: Camera interfacing, colour-space conversion

Having now played with libcamera-apps and seen that it seems to "just work" so far I think I am just going to go that route. I managed to record a 1080p .h264 with negligible CPU load anyway.
by mangodan2003
Wed Jun 09, 2021 3:02 pm
Forum: Graphics, sound and multimedia
Topic: Camera interfacing, colour-space conversion
Replies: 1
Views: 265

Camera interfacing, colour-space conversion

Hi, As part of a far larger project I am reading frames from the imx219 (rpi cameras v2) in an Aarch64 environment but have the problem that the colourspace conversion appears to be happening in software and very slowly (at 640x480 I can read about 14 frames / second which saturates one core). I am ...
by mangodan2003
Wed Jun 09, 2021 9:11 am
Forum: Graphics, sound and multimedia
Topic: pulseaudio Acoustic Echo Canceller working with OS release 2021-01-11, yay
Replies: 7
Views: 833

Re: pulseaudio Acoustic Echo Canceller working with OS release 2021-01-11, yay

Having tried this on my desktop PC using the internal sound card with both input and output on the same device it works very well. Having tried the USB devices I was using on the raspberry pi on the same desktop PC it initially did not work. I tried setting the rate for the echo-cancel module to 48k...
by mangodan2003
Fri Jun 04, 2021 3:52 pm
Forum: Graphics, sound and multimedia
Topic: pulseaudio Acoustic Echo Canceller working with OS release 2021-01-11, yay
Replies: 7
Views: 833

Re: pulseaudio Acoustic Echo Canceller working with OS release 2021-01-11, yay

Does anybody still have this working? I have just tried with the 2021-05-07 release and it doesn't seem to work, at least not with the hardware I am using. I have seen statements (but I think all very old) that the source and sample rates must match, which makes sense, it would certainly seem a lot ...
by mangodan2003
Fri May 14, 2021 10:09 am
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: [SOLVED] Interfacing i2c device to CM4

It is, it is using the old gpio_ rather than gpiod_ api for a start. But it is allowing one to pass in the arguments as kernel module parameters to a manually loaded module and only if not set manually in that way falling back on parsing from the device tree in what looks like an insanely complex wa...
by mangodan2003
Thu May 13, 2021 11:37 am
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: [SOLVED] Interfacing i2c device to CM4

I just want to add that should anybody else come by here the actual dts I ended up using was a little different to the above due to the way the driver is using the DT. /dts-v1/; /plugin/; / { compatible = "brcm,bcm2711"; fragment@0 { target = <&i2c_csi_dsi>; __overlay__ { #address-cell...
by mangodan2003
Wed May 05, 2021 2:23 pm
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: Interfacing i2c device to CM4

Yes I had this working in a proof of concept manor at least.

Thanks
by mangodan2003
Thu Mar 25, 2021 2:37 pm
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: Interfacing i2c device to CM4

I was using 6by9s branch 5.10.14 from experimenting bringup DSI displays as he had some fixes there. I have no idea why but having switched to the current stable 5.10.17 and rebuilt the module against that it loads automatically at boot :D , tho it doesn't seem to pick up the gpio pin specs correctl...
by mangodan2003
Thu Mar 25, 2021 12:35 pm
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: Interfacing i2c device to CM4

Something must have changed todo with the of match entries since ST wrote the driver as it had i2c in place of for the MODULE_DEVICE_TABLE macro. I've updated that and now get pi@rpi:~ $ cat /lib/modules/5.10.14-v7l+/modules.alias | grep stmvl alias of:N*T*Cst,stmvl53l1C* stmvl53l1 alias of:N*T*Cst,...
by mangodan2003
Thu Mar 25, 2021 10:46 am
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: Interfacing i2c device to CM4

Thanks, that gives me : pi@rpi:~ $ find /proc/device-tree/ | grep stm /proc/device-tree/soc/i2c0mux/i2c@1/stmvl53l1@29 /proc/device-tree/soc/i2c0mux/i2c@1/stmvl53l1@29/xsdn-gpios /proc/device-tree/soc/i2c0mux/i2c@1/stmvl53l1@29/compatible /proc/device-tree/soc/i2c0mux/i2c@1/stmvl53l1@29/intr-gpios /...
by mangodan2003
Wed Mar 24, 2021 5:15 pm
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

Re: Interfacing i2c device to CM4

Well I did at one point have the module loading manually, now its gone back to complaining it can't get the i2c adaptor and I don't think I've changed anything.
by mangodan2003
Wed Mar 24, 2021 5:05 pm
Forum: Device Tree
Topic: [SOLVED] Interfacing i2c device to CM4
Replies: 10
Views: 1434

[SOLVED] Interfacing i2c device to CM4

Hi, I am trying to interface a sensor to the CM4 module on the pins labelled in the CM4 Datasheet as SCL0 and SDA0 (which the bcm2711 ref manual says correspond to GPIO44 and 45). With a bit of tweaking I managed to get the kernel module for the sensor to build. I can load it manually so I am trying...
by mangodan2003
Wed Mar 24, 2021 3:07 pm
Forum: Device Tree
Topic: [SOLVED] Help understanding the behaviour of device tree compatible
Replies: 2
Views: 296

Re: Help understanding the behaviour of device tree compatible

I'll let you into a secret - nothing in the firmware or the kernel is looking at the top-level "compatible" string in overlays. However, there are conventions that are enforced for an overlay to become part of the kernel tree: * An overlay that is compatible with all BCM2835-derived SoCs ...
by mangodan2003
Wed Mar 24, 2021 1:51 pm
Forum: Device Tree
Topic: [SOLVED] Help understanding the behaviour of device tree compatible
Replies: 2
Views: 296

[SOLVED] Help understanding the behaviour of device tree compatible

Hi, I'm trying to get i2c0 and i2c1 setup and running on the CM4 to allow interfacing to some sensors (I am not using them for displays or camera) and am trying to understand something I have noticed whilst looking through the various existing overlays. When a device tree overlay states compatible =...
by mangodan2003
Wed Feb 17, 2021 12:54 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Your reset signals are definitely behaving? I haven't had any issues with these displays and the reset signal but one of the others I had was problematic. The levels looked fine so I think it had to be related to the timing vs the DSI LP-11 state timing. I'll get back to looking into that at some po...
by mangodan2003
Wed Feb 17, 2021 12:50 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Branch pushed to https://github.com/6by9/linux/tree/rpi-5.10.y-dsi0 It'd be interesting to know if you can configure your panels correctly with this. I'm having funny issues where the commands are all supposedly sent correctly, but the panel isn't then responding sensibly. Most weird. I will try th...
by mangodan2003
Tue Feb 16, 2021 12:42 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Branch pushed to https://github.com/6by9/linux/tree/rpi-5.10.y-dsi0 It'd be interesting to know if you can configure your panels correctly with this. I'm having funny issues where the commands are all supposedly sent correctly, but the panel isn't then responding sensibly. Most weird. I will try th...
by mangodan2003
Fri Feb 12, 2021 3:29 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

I'll push my in-progress changes to a branch in a mo, but ahead of time diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index a3439756594c..bc9927f25b83 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -302,7 +302,8 @@ static void vc4_...
by mangodan2003
Fri Feb 12, 2021 2:16 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Red/blue swap was an easy one. There's a requirement on the pixel valve to produce a different output format between dsi0 and dsi1. Don't ask me why, but same as the weird register remapping between the two instances. What was the fix for the red blue swap? After some faffing about with hardware I ...
by mangodan2003
Thu Feb 11, 2021 5:29 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Ha! for me if ignore the errors I get what looks like a respectable image!

https://www.youtube.com/watch?v=D-5kn9X ... e=youtu.be
by mangodan2003
Wed Feb 10, 2021 2:34 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

Looks much better. I need to backport the latest DSI changes, but not right now. Where does this need backporting from? something publicly available? I had at look at both the 5.11.y branch of the rpi repo and also the master branch of the vanilla linux repo but neither look to have much in the way...
by mangodan2003
Fri Feb 05, 2021 9:36 am
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

This looks relevant.. I'll experiment static const struct of_device_id vc4_dsi_dt_match[] = { { .compatible = "brcm,bcm2835-dsi0", (void *)(uintptr_t)0 }, { .compatible = "brcm,bcm2835-dsi1", (void *)(uintptr_t)1 }, /* * Use 2 so that it uses the DSI1 register layout, but not DMA...
by mangodan2003
Thu Feb 04, 2021 5:35 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

pi@raspberrypi:~/drm/build $ ./tests/modetest/modetest -M vc4 Encoders: id crtc type possible crtcs possible clones 31 0 TMDS 0x00000008 0x00000001 38 0 TMDS 0x00000010 0x00000002 41 64 DSI 0x00000002 0x00000004 43 71 DSI 0x00000004 0x00000008 49 0 Virtual 0x00000001 0x00000010 So closer I think :)...
by mangodan2003
Thu Feb 04, 2021 5:16 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

I just noticed that on my main build host i have dtc 1.6.0 whereas on the rpi I have 1.4.7. no idea if that is relevant or not.
by mangodan2003
Thu Feb 04, 2021 5:07 pm
Forum: Compute Module
Topic: CM4 help with designing (DSI + SPI)
Replies: 34
Views: 2115

Re: CM4 help with designing (DSI + SPI)

I got a lot of warnings (See below) and here's the link https://drive.google.com/file/d/19IIhlcSiaXBAJD4FErzAeA5Pswu7qkKX/view?usp=sharing dump.dts: Warning (unit_address_vs_reg): /scb: node has a reg or ranges property, but no unit name dump.dts: Warning (unit_address_vs_reg): /soc: node has a reg ...

Go to advanced search