Hello!
Thank you for your answer.
I've been able to run my fpga design, and it seems there was something wrong with u-boot.
The problem now is that when I run my board with Linux booted from SD card fpga design doesn't work and the system hangs when I try to read or write to FPGA memory space. But somehow when I make U-boot not able to read FPGA bitstream from the SD card and do reboot everything works completely fine. I use HPS boot first config, so my bitstream is located on SD card. To summarize the process:
1. Boot system as usual, FPGA will be programmed.
2. go to /run/media/mmcblk0p1/ directory where FPGA bitstream is located
3. rename fpga bitstream to any name, just to make sure u-boot won't find it
4. reboot system and you will see that U-Boot wasn't able to program FPGA
Failed to load 'fpga_bitstream.rbf'
FPGA not ready. Bridge reset aborted!
5. wait until system boot is over, login
Now after these steps I can use FPGA.
For building SD card image I've used this link
https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderAgilex7?erpm_id=12888127_ts1687163227736
It seems something is wrong after FPGA programming and it can be fixed by something U-Boot does before programming FPGA. I've tried to add more
bridge enable
or
bridge disable
commands to CONFIG_BOOTCOMMAND but that didn't help.
I use the latest commit of socfpga_v2022.10 branch in u-boot-socfpga repository.