Tool/software: Linux
Hi,
I define a fpga_load node in device tree(am437x-gp-evm.dts file):
FPGA_Load_pins: FPGA_Load {
compatible = "fpgaload";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fpga_load>;
pinctrl-1 = <&pinctrl_fpga_sleep>;
fpga,nSTATUS = <&gpio5 8 GPIO_ACTIVE_HIGH>;
fpga,nDCLK = <&gpio5 9 GPIO_ACTIVE_HIGH>;
fpga,DATA0 = <&gpio5 10 GPIO_ACTIVE_HIGH>;
fpga,nCONFIG= <&gpio5 11 GPIO_ACTIVE_HIGH>;
fpga,CONFIG_DONE= <&gpio5 13 GPIO_ACTIVE_HIGH>;
fpga,RESET=<&gpio5 6 GPIO_ACTIVE_LOW>;
};
in the driver program(fpgaload.c), when probe, I get gpio number with function of_get_named_gpio( node,"fpga,nSTATUS",0), the function return -2. I try gpio_request( 5*32+8,"nSTATUS") ,it is also return fail with -517. I check the .dts file and cann't find problem. I attach the dts and driver program here. Is there a wrong in driver program or error(s) in the .dts file? Our SDK version is ti-sdk-05.01.00.11.
Best Regards,