UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor turcant
Visitor
164 Views
Registered: ‎07-27-2018

Device tree overlay on ZCU102 : why isn't there an amba_pl in pl.dtsi ?

Hi all,

I'm working on ZCU102 with Yocto.
My objective is to change the bitstream while Linux is running using fpgautil.
Using this webpage: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841847/Solution+ZynqMP+PL+Programming, I'm able to change the bitstream correctly.
However, my device-tree overlay isn't working correctly, I can't load my driver (which is working fine without playing with the overlays).

Here is my device-tree overlay:

/dts-v1/;
/plugin/;
/ {
  fragment@0 {
    target = <&fpga_full>;
    overlay0: __overlay__ {
      #address-cells = <2>;
      #size-cells = <2>;
      firmware-name = "my_design.bit";
      resets = <&rst 116>;
    };
  };
  fragment@3 {
    target = <&amba>;
    __overlay__ {
      #address-cells = <2>;
      #size-cells = <2>;
      my_ip: my_ip@4F8000000 {
        compatible = "company,my_ip";
        device-name = "my_ip";
        reg = <0x00000004 0xF8000000 0x0 0x20000
                   0x00000004 0xF8020000 0x0 0x20000
                   0x00000004 0xF8800000 0x0 0xFFF
                   0x00000004 0xF8900000 0x0 0xFFF
                   0x00000004 0xF8920000 0x0 0xFFF>;
        interrupt-parent = <&gic>;
        interrupts = < 0 89 1 >,
                           < 0 90 1 >,
                           < 0 91 1 >,
                           < 0 104 1 >,
                           < 0 105 1 >,
                           < 0 106 1 >,
                           < 0 110 4 >,
                           < 0 111 4 >;
        };
      };
  };

};

 

To what does the number after fragment@ correspond ?
In my pl.dtsi automatically generated by Xilinx tools for Yocto, I don't see any "amba_pl" part, just an "amba".
In my DTO, when I choose the target amba_pl, the dtbo can't be loaded:
[ 228.825804] OF: resolver: overlay phandle fixup failed: -22
[ 228.831391] create_overlay: Failed to resolve tree
DTBO loading through zynqMP FPGA manager failed

When I choose the target "amba", the DTO load correctly, however the driver isn't able to make write/read operation and then the linux hang. I read that amba is the target for peripherals connected to the ARM processor, so the correct target would be "amba_pl", meant for peripherals on the fpga ?
Can some enlighten me on the subject ?

You can find attached my pl.dtsi generated by Yocto

Nicolas

0 Kudos