
13 Feb
2023
13 Feb
'23
12:38 a.m.
Hi Elmar,
On Sun, Feb 12, 2023 at 3:04 PM Elmar Psilog epsi@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.