I am also getting same error, but i am doing dts change for imx6ul.
root@imx6ul:~# dmesg | grep "tcan"
[ 9.162594] tcan4x5x spi0.0: no clock found
[ 9.167263] tcan4x5x spi0.0: no CAN clock source defined
[ 9.410935] tcan4x5x spi0.0: Unsupported version number: 0
[ 9.417023] tcan4x5x spi0.0: Probe failed, err=-22
[ 9.425333] tcan4x5x: probe of spi0.0 failed with error -22
I solved the error caused due to absence of clock configuration in dts.
clocks {
hclk: clock@4 {
compatible = "fixed-clock";
reg = <3>;
#clock-cells = <0>;
clock-frequency = <40000000>;
clock-output-names = "hclk";
};
cclk: clock@5 {
compatible = "fixed-clock";
reg = <3>;
#clock-cells = <0>;
clock-frequency = <40000000>;
clock-output-names = "cclk";
};
};
But not able to solve below errors:
root@imx6ul:~# dmesg | grep -i "tcan"
[ 9.625906] tcan4x5x spi0.0: Unsupported version number: 0
[ 9.631985] tcan4x5x spi0.0: Probe failed, err=-22
[ 9.639763] tcan4x5x: probe of spi0.0 failed with error -22
Whether you found the solution?
If you or anyone got the solution, please share with us. Thanks