CAN driver on CA55 sample

Hi

I came across the wip/v5.x_can-test branch on the official GitHub repository (github.com/.../whitebox-sdk

and am interested in using it on the Spider platform. However, after trying it out, I noticed that it is configured for S4SK.

Could you please provide guidance on how to modify it for use on the Spider platform?

Thank you very much for your assistance.

Parents Reply
  • Hi,

    CAN clock source is set by MD values. It might be different from 40MHz in devicetree. Could you try to modify the devicetree to set clock speed 20MHz as follows:

    arch/arm64/boot/dts/renesas/r8a779f0.dtsi

    /* External CAN clock - to be overridden by boards that provide it */
    can_clk: can {
    compatible = "fixed-clock";
    #clock-cells = <0>;
    - clock-frequency = <40000000>;
    + clock-frequency = <20000000>;
    };

Children
No Data