Re: MCP2518FD : Failed to detect MCP2518FD (osc=0x00000000)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marc,

I have disabled DMAs in imx7s.dtsi for all ecspis and recompile the device tree.
Still get the same failure.

Thanks
Niels


                                ecspi2: spi@30830000 {
                                        #address-cells = <1>;
                                        #size-cells = <0>;
                                        compatible = "fsl,imx7d-ecspi", "fsl,imx51-ecspi";
                                        reg = <0x30830000 0x10000>;
                                        interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
                                        clocks = <&clks IMX7D_ECSPI2_ROOT_CLK>,
                                                <&clks IMX7D_ECSPI2_ROOT_CLK>;
                                        clock-names = "ipg", "per";
                                        /*
                                        dmas = <&sdma 2 7 1>, <&sdma 3 7 2>;
                                        dma-names = "rx", "tx";
                                        */
                                        status = "disabled";
                                };




Marc Kleine-Budde schrieb am 31.01.2022 08:42 (GMT +00:00):

> On 31.01.2022 09:33:04, petter@xxxxxxxxxx wrote:
>> I am working on an IMX7D board. Some time ago I have back-ported the
>> MCP2518FD driver to the official 5.4.70 NXP kernel and it works fine.
>> 
>> I am struggleing to get the mcp driver working on the latest nxp
>> kernel 5.10.72.
>> 
>> Same hardware.
>> 
>> I did not find any unusal in the logs. pinctrl did not complain, spi
>> seems to initialize normal.
>> 
>> The old kernel with the new (almost old one) device tree works. The
>> new kernel did not work with the old or new device tree.
>> 
>> At the moment I am stuck. Could be anything. Must not be the driver
>> itself.
> 
> Is SPI DMA enabled? Try disabling it.
> 
> regards,
> Marc
> 
> -- 
> Pengutronix e.K.                 | Marc Kleine-Budde           |
> Embedded Linux                   | https://www.pengutronix.de  |
> Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
> Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
> 



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux