cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gambrosio
Visitor
Visitor
1,134 Views
Registered: ‎08-28-2018

Setup of the JESD204B driver for Petalinux

Dear all,

 

We are trying to use the JESD204B driver in PetaLinux 2017.4 and we have a question regarding the driver setup.

 

The driver seems to be activated by default in the kernel, as you can see in the attached screenshot of “petalinux-device-drivers-misc”.

 

We have updated the device tree, so that we have the correct versions of the drivers, according to the Linux kernel being used in Petalinux 2017.4 (Kernel 4.9). In the auto-generated device tree (pl.dtsi) we have as default a version number which is not supported by the driver, so we have updated the version numbers.

-See attached device tree files system-user.dtsi and pl.dtsi

-We have configured the versions “jesd204-5.1” and “jesd204-phy-2.0”

 

j204bIf_jesd204_TX: jesd204@b0003000 {

          compatible = "xlnx,jesd204-5.1";

}

j204bIf_jesd204_phy_0: jesd204_phy@b0000000 {

           compatible = "xlnx,jesd204-phy-2.0";

}

 

After this setup, we expect that we can access the device properties using “sysfs”, as it is explained here: www.wiki.xilinx.com/jesd204b

Example from website:
/ # cat /sys/devices/platform/axi@0/44a00000.jesd_Rx/lane0_syncstat NOT_IN_TAB: 0, DISPARITY: 2, UNEXPECTED_K: 0

 

But we do not visualize any of the device properties (lane info, etc) when we look for the device in the file system:

root@petalinux-project-2017:/sys/devices/platform/amba_pl@0/b0003000.jesd204# ls -al
total 0
drwxr-xr-x    3 root     root             0 Nov 30 04:26 .
drwxr-xr-x   13 root     root             0 Nov 30 04:26 ..
-rw-r--r--    1 root     root          4096 Nov 30 04:29 driver_override
-r--r--r--    1 root     root          4096 Nov 30 04:29 modalias
lrwxrwxrwx    1 root     root             0 Nov 30 04:29 of_node -> ../../../../firmware/devicetree/base/amba_pl@0/jesd204@b0003000
drwxr-xr-x    2 root     root             0 Nov 30 04:29 power
lrwxrwxrwx    1 root     root             0 Nov 30 04:29 subsystem -> ../../../../bus/platform
-rw-r--r--    1 root     root          4096 Nov 30 04:26 uevent

 

In the bootup of Linux, I do not see any message which indicates that the JESD driver has been probed. See attached file boot.log. So I am not sure if the driver is active.

 

Are we missing something in the setup of the JESD204B driver?

 

Thank you very much,

 

Gustavo

 

 

References:

JESD204B Driver: www.wiki.xilinx.com/jesd204b

Driver code: https://github.com/Xilinx/linux-xlnx/tree/master/drivers/misc/jesd204b

Device tree bindings: https://github.com/Xilinx/linux-xlnx/tree/master/Documentation/devicetree/bindings/misc

 

 

 

 

 

petalinux-device-drivers-misc.jpg
0 Kudos
Reply
2 Replies
shubhraj
Xilinx Employee
Xilinx Employee
1,092 Views
Registered: ‎02-15-2018

Hi Gustavo ,

 

Which is your  jesd clocked?

I do not see the clock entry.

Also  could you  enable debug.

 

Thanks and Regards,

Shubhrajyoti

 

 

0 Kudos
Reply
aymanhendawy
Visitor
Visitor
784 Views
Registered: ‎11-11-2018

Guys, any updates in this issue, I have similar problem with petalinux 2018.2.

Thanks

0 Kudos
Reply