AR# 76392

|

2020.x Device Tree: In MIPI CSI2 RX design reset-gpio nodes to assert video_aresetn are not generated by DTG

Description

In the 2020.x release version of the Device Tree Generator (DTG), In a MIPI CSI2 RX design the reset-gpio device tree property nodes are not generated by the DTG.

In MIPI CSI2 RX Linux drivers, reset-gpios are required properties to assert video_aresetn pins.

Solution

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

To fix this issue, you will need to apply the attached patch. There are two separate patches for the 2020.1 and 2020.2 releases.

Root Cause:

In a MIPI CSI2 RX device-tree Tcl script, the logic implementation for reset-gpio node properties is missing. 

 

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-reset_gpios-support-in-DTG.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-reset_gpios-support-in-DTG.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-reset_gpios-support-in-DTG.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-reset_gpios-support-in-DTG.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

Name File Size File Type
AR-76392-patches.zip 3 KB ZIP
AR# 76392
Date 04/14/2021
Status Active
Type Known Issues
Devices
Tools
IP
Boards & Kits
People Also Viewed