Re: [PATCH v2 00/77] media: imx: Miscellaneous fixes and cleanups for i.MX7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Laurent,

On 19.03.21 02:27, Laurent Pinchart wrote:
Hi Frieder,

On Wed, Mar 17, 2021 at 07:04:19PM +0100, Frieder Schrempf wrote:
On 15.02.21 05:26, Laurent Pinchart wrote:
Hello,

This large patch series is a collection of miscellaneous fixes, cleanups
and enhancements for the i.MX7 camera support. Most notably, it
implements support for the Media Controller API in the driver.

Compared to v1, review comments have been taken into account, and the
patches have been rebased on top of the DT bindings and latest imx
changes as present in the linux-media tree. Patches 38/77, 39/77, 60/77
and 61/77 are new. For additional information, please see individual
patches.

I have successfully tested the code on an i.MX6ULL board (with an
MT9M114 sensor), an I.MX7D board (with an IMX296 sensor), and an i.MX8MM
board (with an OV5640 sensor, and additional patches for i.MX8MM
support).

First of all, thanks for the great work!

You're welcome.

I'm currently trying to get a setup with CSI + MIPI + ADV7280 working on
an i.MX8MM system. Would you mind sharing the additional patches I need
for this?

I guess you are referring to patches for the MIPI CSIS PHY and the
devicetree. Anything else, that I'm missing?

I've pushed my work in progress patches to

	git://linuxtv.org/pinchartl/media.git imx/next

I haven't tested this on mainline though, as the i.MX8MM board I'm using
currently requires an NXP BSP.

For the DT integration, here's what I have in imx8mm.dtsi:

[...]

Mainline seems to be missing the power domains, so you'll likely have to
sort this out.


Thanks a lot for the patches. I finally found some time to test this with our hardware. I'm working on v5.10 mainline and applied pending support for the power-domains from Lucas [1].

It doesn't look bad and I can bring up the media devices, etc. but up to now I couldn't get any image from the ADV7280A-M.

This is the first time I'm working with the media/v4l subsystem, so I might be missing some trivial things. Also I'm not quite sure if the adv7180 driver is currently fully compatible.

Anyway here are some things I noticed. Maybe you could have a quick look and see if you can gather something from that, which helps me to get this running?

After enabling the link to the adv7180 with:

media-ctl -l "'adv7180 1-0021':0 -> 'imx7-mipi-csis.0':0[1]"

all the links look ok, but not all the parameters seem to be propagated up to the subdevs (see [2]). But I don't even know if this should happen automatically.

After setting up the format like this, the subdev setup looks ok as far as I can judge (see [3]):

media-ctl -V "'adv7180 1-0021':0 [fmt:UYVY2X8/720x240 field:alternate]"
media-ctl -V "'imx7-mipi-csis.0':1 [fmt:UYVY2X8/720x240 field:alternate]"

Also there is one small issue with the adv7180 not implementing neither V4L2_CID_LINK_FREQ nor V4L2_CID_PIXEL_RATE. So v4l2_get_link_rate() fails, but as this seems to be only used to calculate hs_settle, I just hardcoded the hs_settle value for now.

Finally I don't get any image from the analog converter. The stream seems to be setup correctly, but I don't receive any frames. Though I can see that there is data on the MIPI CSI lanes.

I'm also not quite sure which value to use for the CSI clock-frequency. On the clock lane of the CSI interface I can measure something around 106 MHz coming from the ADV7280.

Maybe you got some pointers for me to look at?

Thanks
Frieder

[1] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20201105174434.1817539-1-l.stach@xxxxxxxxxxxxxx/
[2] https://paste.ee/p/HuIfu
[3] https://paste.ee/p/os6dU



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux