Hello Team,
We are using NXP's I.MX8DXL processor with LPSPI for CANFD communication. With this setup we are able to send around 900 can messages per second for 500Kb bit-rate and 1Mb data-bit rate so we want to increase this count.
Currently we have spi-max-frequency as 5MHz so what is the maximum spi frequency in case of lpspi and also by increasing this frequency can we send larger number of messages per second.
this is our dts for reference:
&lpspi2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi2>;
fsl,spi-num-chipselects = <1>;
cs-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_HIGH>;
status = "okay";
tcan4x5x0: tcan4x5x@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <5000000>;
bosch,mram-cfg = <0x0 3 2 32 10 1 32 7>;
clocks = <&hclk>, <&cclk>;
clock-names = "hclk", "cclk";
interrupt-parent = <&lsio_gpio3>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
data-ready-gpios = <&lsio_gpio3 12 GPIO_ACTIVE_HIGH>;
reset-gpios= <&exp2 12 GPIO_ACTIVE_HIGH>;
iw-tcan-prop;
wakeup-source;
status = "okay";
};
};
Regards,
Ankita