Thank you so much, you made my day! Sorry, I didn't see the alias was
used different.

Although my credibility gambled away I think I found a real bug in EQOS
driver with fixed-phy:

In file fixed.c in in function fixedphy_config() the call

        val = ofnode_read_u32_default(node, "speed", 0);

returns 0 instead of 1000 and also the duplex is not set. I found that 
in file/function dwc_eth_qos.c / eqos_start() the line

eqos->phy->node = eqos->phy_of_node;

is reponsible for losing the info. Don't know what magic happens here -
so I can't fix it - just followed the data. So all works well and even
the parsing of old and new fixed-link devicetree works til that line.
After that I don't get speed anymore. Can someone please confirm?

Best regards,

Elmar

Am 13.02.23 um 00:38 schrieb Fabio Estevam:
Hi Elmar,

On Sun, Feb 12, 2023 at 3:04 PM Elmar Psilog <e...@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.

Reply via email to