AR# 76113

|

2020.2 Device Tree: MIPI CSI2 RX Linux driver fails to probe when using MIPI CSI2 RX IP version as 5.1 in XSA

Description

In the 2020.2 release version of Linux, The MIPI CSI RX Linux driver fails to probe when using MIPI CSI2 RX IP version 5.1 in XSA.

root@xilinx-ultra96-reva-2020_2:~# dmesg | grep -i mipi
root@xilinx-ultra96-reva-2020_2:~#

Solution

This is a known issue in the 2020.2 release of the Device Tree Generator for SoC and FPGA devices.

To fix this issue, you will need to apply the attached patch.

Root Cause:

In a MIPI CSI2 RX design when version 5.1 of the IP is used in XSA, The MIPI CSI RX Linux driver fails to probe as the Linux driver uses a 5.0 version compatible string.

This happens because no changes were made to the driver when the IP version was changed in Vivado.

PetaLinux:

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree_%.bbappend recipes

Note: For information on how to apply a patch to recipes in PetaLinux, please refer to (UG1144) or https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842475/PetaLinux+Yocto+Tips

1) Copy the attached patch from the Attachments section to the device-tree directory as shown below.

If these directory and recipes do not exist then manually create <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files/

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files
$ cp 0001-mipi_csi_rx-Add-backward-v5.0-compatible-string.patch <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files

2) Modify the device-tree.bbappend file with the below content using a text editor:

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree.bbappend

# device-tree.bbappend content
# Note: system-user.dtsi is autogenerated from petalinux tool.
SRC_URI += " \
file://system-user.dtsi \
file://0001-mipi_csi_rx-Add-backward-v5.0-compatible-string.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:

3) Clean the device-tree sstate cache and rebuild the device-tree recipes:

$ petalinux-build -c device-tree -x cleansstate
$ petalinux-build -c device-tree

Yocto:

The patch should be applied to <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/device-tree.bbappend recipes

1) Copy the attached patch from the Attachments section to the device-tree directory as shown below.

If these directory and recipes do not exist then manually create <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files

$ mkdir -p <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files
$ cp 0001-mipi_csi_rx-Add-backward-v5.0-compatible-string.patch <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/files

2) Modify the device-tree.bbappend file with the below content using a text editor:

$ vim <yocto-proj-root>/sources/meta-xilinx-tools/recipes-bsp/device-tree/device-tree.bbappend

# device-tree.bbappend content
SRC_URI_append = " \
file://0001-mipi_csi_rx-Add-backward-v5.0-compatible-string.patch \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

3) Clean the device-tree sstate cache and rebuild the device-tree recipes:

$ bitbake device-tree -c cleansstate
$ bitbake device-tree

Attachments

Associated Attachments

AR# 76113
Date 01/29/2021
Status Active
Type Known Issues
Devices
Tools
IP
People Also Viewed