Hello ,
We are still working on the Toradex IMX6 and Torizon OS.
We are trying to load our FPGA (xilinx Artix7) via the EIM bus. After checking, the EIM registers are not configured correctly and we are getting an error:
[ 1.542652] imx-weim 21b8000.weim: Invalid 'ranges' configuration
[ 1.542693] imx-weim: probe of 21b8000.weim failed with error -22
Here is our EIM node:
&weim {
status = "okay";
#address-cells = <2>;
#size-cells = <1>;
ranges = <0 0 0x08000000 0x02000000>; /* Map CS0: 32 MB */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_weim_common>;
fpga_prog: fpga_programmer@0,0 {
compatible = "xlnx,fpga-xc7a-selectmap";
pinctrl-names = "default", "device";
pinctrl-0 = <&pinctrl_weim_prog>;
reg = <0 0 0x02000000>;
fsl,weim-cs-timing = <0x0061A081 0x00001002
0x0D022011 0x00000000
0x0D0B2000 0x00000000>;
prog-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
init-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
done-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
csi-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
rdwr-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
};
I’ve tried different configurations, but I always get the same error.
Do you have any idea what my mistake is? And how can I correct it?
Tks & Regards