I will develop tcan4450 driver in Linux 5.4.85
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I will porting the tcan4550 & M_CAN driver in kernel 5.4.85
I have open m_can & tcan4x5x driver in menuconfig.
But i can't see the driver probe or init.
Can you help me check DTS setting & debug?
Thanks
Follow is my log.
~ # dmesg | grep -i can
[ 1.953941] CAN device driver interface
[ 3.781416] can: controller area network core (rev 20170425 abi 9)
[ 3.793358] can: raw protocol (rev 20170425)
[ 3.798129] can: broadcast manager protocol (rev 20170425 t)
[ 3.804455] can: netlink gateway (rev 20190810) max_hops=1
Follow is my DTS
ps. Do I need add "&m_can0" label in DTS ?
&spi2 {
fsl,spi-num-chipselects = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi2_default &pinctrl_spi2cs1_default
&pinctrl_spi2cs2_default &pinctrl_qspi2_default>;
status = "okay";
tcan4x5x: tcan4x5x@0 {
mcompatible = "ti,tcan4x5x";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <18000000>;
bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
interrupt-parent = <&gpio1>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
};
};
Evan,
Thanks for bringing this to E2E. This Linux driver was developed by someone outside of our group, and unfortunately our team does not have experience supporting this driver. More information can be found at the following links, and this may be able to help you.
https://www.kernel.org/doc/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
https://www.kernel.org/doc/Documentation/devicetree/bindings/net/can/bosch%2Cm_can.yaml
If you have any questions about how the TCAN4550-Q1 works once the Linux driver is established, we can absolutely help out. My apologies for any inconvenience.
Regards,
Eric Hackett