Re: [PATCH v5 1/2] fpga: ecp5-spi: add Lattice ECP5 FPGA manager
From: Daniel Glöckner
Date: Mon Aug 01 2022 - 03:26:34 EST
Hi,
On Tue, Jul 19, 2022 at 02:23:34PM +0300, Ivan Bornyakov wrote:
> + /* Enter init mode */
> + gpiod_set_value(priv->program, 1);
> +
> + ret = ecp5_poll_gpio(priv->init, true);
> + if (!ret)
> + ret = ecp5_poll_gpio(priv->done, false);
> +
> + if (ret) {
> + dev_err(dev, "Failed to go to initialization mode\n");
> + return ret;
> + }
To me the documentation looks like the chip will deassert INITN after
tINITL regardless of the PROGRAMN signal. At 55ns max tINITL is too
short to reliably sample INITN while it is asserted when we have
interrupts enabled. Can you confirm that INITN stays asserted as long
as PROGRAMN is asserted?
Best regards,
Daniel