Currently working on a Arria 10 FPGA and faced this issue while trying to access the gpio connected on the lwhps to fpga bridge but when i try to access the lwhps2fpgs address section(0xff200000) my kernel stucks and restarts.
fpga-bridge@c0000000 {
compatible = “altr,socfpga-hps2fpga-bridge”;
reg = <0xc0000000 0x3c000000>;
resets = <0x06 0x60>;
clocks = <0x08>;
bridge-enable = <0x01>;
altr,l3-syscon = <0x99>;
phandle = <0x5c>;
init_val = <1>;
};
been following this guide from rocket board: https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderCycloneVAndArria10
and also can any one please share the correct device tree for fpga2hps and fpgs2sdram bridge device tree node
I am also modifying the device tree to use that function.
I have not yet confirmed that the lwhps2fpga function operates successfully, but the “bridge enable” command in the u-boot stage also operates successfully.
Kernel booting is normal and the fpga-bridge and fpga-manager drivers are also being initialized successfully.
Additionally, state and name are printed successfully in sysfs (/sys/class/fpga_bridge/br0).
However, I am trying to control led_pio, the fpga area, using lwhps2fpga, but it is not easy.
I hope my modification help you.
(arch/arm/boot/dts/socfpga_arria10.dtsi)