Part Number: AM6421
Hi,
We are using Processore sdk : ti-processor-sdk-linux-rt-am64xx-evm-11.01.05.03
Processor : AM6421.
We want to access GPIO1_43(spi0_cs1) in uboot.
We have done the below changes in dts and evm.c files
Added
/ {
lcd_gpio_reset {
gpios = <&main_gpio1 43 GPIO_ACTIVE_HIGH>;
};
};
in k3-am642-evm-u-boot.dtsi file.
Added
struct gpio_desc desc;
int ret;
/* Request GPIO by phandle name from DTS */
/* Request GPIO1_43 by DTS property */
ret = gpio_request_by_name_nodev(ofnode_path("/lcd_gpio_reset"),
"gpios", 0, &desc, GPIOD_IS_OUT);
if (ret) {
printf("Failed to request GPIO1_43: %d\n", ret);
return ret;
}
printf("Success to request GPIO1_43: %d\n", ret);
/* Drive it high */
dm_gpio_set_value(&desc, 1);
in board_late_init function in evm.c file.
gpio_request_by_name_nodev call return -19.
Please help us in solving this issue.