imx8mp spi fail

Fabio Estevam festevam at gmail.com
Mon Feb 13 00:38:13 CET 2023


Hi Elmar,

On Sun, Feb 12, 2023 at 3:04 PM Elmar Psilog <epsi at gmx.de> wrote:
>
> Hello, kindly ask for help about SPI at an IMX8MP. I tried latest
> 2023.01. If you can please have a look and check it works on your side?
>
> sspi command returns: Invalid bus 0

Could you try passing an aliases entry in your dts like this?

aliases {
    spi0 = &ecspi1;
};

Does this help?

> What am I doing wrong or is this a bug? Thanks ahead for any hint.

> dt: (tested with both types of cs-gpios)
> &ecspi1 {
>          pinctrl-names = "default";
>          pinctrl-0 = <&pinctrl_ecspi1>;
>          cs-gpios = <0>, <&gpio5 9 GPIO_ACTIVE_LOW>;
> //      cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;

This last format is the correct one.


More information about the U-Boot mailing list