cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
harrisdj
Visitor
Visitor
255 Views
Registered: ‎01-04-2021

xilinx-xlnx driver for Axi-Stream Fifo (4.2)

I am using Vivado 2020.2 and the petalinux BSP for 2020.2.

 

The AXI-Stream Fifo in the IP catalog is v4.2 and produces a DTSI with this:

         axi_fifo_mm_s_0: axi_fifo_mm_s@a0040000 {
            clock-names = "s_axi_aclk";
            clocks = <&zynqmp_clk 71>;
            compatible = "xlnx,axi-fifo-mm-s-4.2";

 

However the driver (https://github.com/Xilinx/linux-xlnx/blob/master/drivers/staging/axis-fifo/axis-fifo.c) has this:

static const struct of_device_id axis_fifo_of_match[] = {
	{ .compatible = "xlnx,axi-fifo-mm-s-4.1", },
	{},
};

 

Since the compatible strings don't match the driver is not probed when the dtb overlay is applied. 

Changing one of these seems to work fine (I'm not sure if there were  any actual interface changes) but is pretty annoying.  Probably the new version needs to be added to the driver compatible string, or putting the version in the compatible string needs to be reconsidered.

0 Kudos
1 Reply
vanmierlo
Mentor
Mentor
134 Views
Registered: ‎06-10-2008

At least the Programmable Empty and Full flags in the Interrupt Status Register can behave differently as their range has been modified.

0 Kudos