Linux CAN drivers development
 help / color / mirror / Atom feed
* MCP2518FD : Failed to detect MCP2518FD (osc=0x00000000)
@ 2022-01-31  8:33 petter
  2022-01-31  8:42 ` Marc Kleine-Budde
  0 siblings, 1 reply; 9+ messages in thread
From: petter @ 2022-01-31  8:33 UTC (permalink / raw)
  To: linux-can; +Cc: mkl

Hi Folks,

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.

BR
Niels



        mcp2518fd_clk: mcp2818fd_clk {
                compatible = "fixed-clock";
                #clock-cells = <0>;
                clock-frequency = <40000000>;
        };


&ecspi2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ecspi2>;
        status = "okay";

        fsl,spi-num-chipselects = <2>;
        cs-gpios = <&gpio5 1 0>, <&gpio1 3 0>;

        mcp2518fd@0 {
                compatible = "microchip,mcp2518fd";
                reg = <0>;
                interrupts-extended = <&gpio3 0 IRQ_TYPE_LEVEL_LOW>;
                spi-max-frequency = <20000000>;
                clocks = <&mcp2518fd_clk>;
        };

        mcp2518fd@1 {
                compatible = "microchip,mcp2518fd";
                reg = <1>;
                interrupts-extended = <&gpio4 23 IRQ_TYPE_LEVEL_LOW>;
                spi-max-frequency = <20000000>;
                clocks = <&mcp2518fd_clk>;
        };
};

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-02-01  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31  8:33 MCP2518FD : Failed to detect MCP2518FD (osc=0x00000000) petter
2022-01-31  8:42 ` Marc Kleine-Budde
2022-01-31  9:35   ` petter
2022-01-31  9:58     ` Marc Kleine-Budde
2022-01-31 12:44       ` petter
2022-01-31 13:09         ` Marc Kleine-Budde
2022-01-31 14:15           ` petter
2022-01-31 15:17             ` Marc Kleine-Budde
2022-02-01  9:08               ` petter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox