cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
csd
Visitor
Visitor
360 Views
Registered: ‎04-14-2021

Linux Driver for JESDC IP

Jump to solution

Hi,

 I'm trying to find a linux driver for the JESD204C IP block, but can't seem to find anything. Looking at the generated DT, it produces:

compatible = "xlnx,jesd204c-4.2";

 

however that compatible string is not handled by any driver in the xilinx linux codebase (in fact a google search for it seems to come up empty as well). 

Can someone point me to a driver that handle that IP block?
 Thanks,

   Christian.

[newbie error - I accidentally posted this to Xilinx IP catalog forum and can't find a way to move it to this forum so cross-posting here]

 

0 Kudos
1 Solution

Accepted Solutions
sandeepg
Moderator
Moderator
218 Views
Registered: ‎04-24-2017

Hi @csd ,

As per driver developer you can reuse the same driver but you need to patch driver and device-tree with compatible string to make it work.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
sandeepg
Moderator
Moderator
323 Views
Registered: ‎04-24-2017

Hi @csd ,

Here is the driver wiki page JESD204B but I'm not sure whether same drivers can be used for JESD204C but I can double check for you.

 

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841739/jesd204b 

https://github.com/Xilinx/linux-xlnx/blob/xlnx_rebase_v5.4_2020.2/Documentation/devicetree/bindings/misc/jesd204b.txt 

https://github.com/Xilinx/linux-xlnx/tree/xlnx_rebase_v5.4_2020.2/drivers/misc/jesd204b 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
csd
Visitor
Visitor
306 Views
Registered: ‎04-14-2021

Hi Sandeep,

 Thanks for the response but I don't believe they are compatible. The register maps between the B and C are quite different, and the driver compatible list is:

static const struct of_device_id jesd204b_of_match[] = {
{ .compatible = "xlnx,jesd204-5.1",},
{ .compatible = "xlnx,jesd204-5.2",},
{ .compatible = "xlnx,jesd204-6.1",},
{ /* end of list */ },
};

 

which doesn't include the"xlnx,jesd204c-4.2" compatible that the JESD204C ip generates in the hw config. 

Is there any other any other driver, available or planned ? 

Also, looking at the driver above, it seems to just provide a sysfs interface into the registers, so it doesn't actually control the jesd204b interface much. Is there some userspace code that goes with that driver?
 Thanks, 

 Christian.

 

0 Kudos
sandeepg
Moderator
Moderator
219 Views
Registered: ‎04-24-2017

Hi @csd ,

As per driver developer you can reuse the same driver but you need to patch driver and device-tree with compatible string to make it work.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos