Part Number: PROCESSOR-SDK-J784S4
We would like to read a GPIO (MAIN_GPIO0_0 / AN35) in u-boot R5 SPL in the following function which we override for our custom board:
void board_boot_order(u32 *spl_boot_list)
Our goal is to switch the boot mode to DFU if the button is pressed.
Currently we are trying to achieve this with the GPIO driver model:
uclass_get_device_by_name(UCLASS_GPIO, "gpio@600000", &gpio_dev);
This returns ENOENT.
CONFIG_SPL_DM and SPL_DM_GPIO are enabled.
Seems like the GPIO driver model is not available at that time.
Adding the following code to k3-j784s4-evm-u-boot.dtsi does not help:
&main_gpio0 {
bootph-pre-ram;
};
This causes the following error:
ti_power_domain_of_xlate: invalid dev-id: 163
What would you recommend to achieve our goal?
