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.

[参考译文] TCAN4550-Q1:有关驱动器的问题

Guru**** 2473260 points
Other Parts Discussed in Thread: TCAN4550

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1553575/tcan4550-q1-question-regarding-the-driver

器件型号:TCAN4550-Q1
主题:TCAN4550 中讨论的其他器件

工具/软件:

你(们)好  

我的客户在使用这里的 TCAN4550 驱动器  

https://www.kernel.org/doc/Documentation/devicetree/bindings/net/can/tcan4x5x.txt

他们看到的内核日志“Unsupported version number: 0 “,这意味着什么?

static int m_can_dev_setup(struct m_can_classdev *cdev){ struct net_device *dev = cdev->net; int m_can_version, err;

  m_can_version = m_can_check_core_release (cdev);

 /*如果版本不受支持、则返回*/

 if(!m_can_version){

 dev_err (cdev->dev、“不支持的版本号:%2D“、

  m_can_version);

 return -EINVAL;

 }

以下是客户的器件树  

tcan4x5x:tcan4x5x@0{

       兼容=“ti、tcan4x5x“;

       REG =<0>;               /* SPI CS0 */

       //spi-max-frequency =<20000000>;

                            SPI-max-frequency =<10000000>;

                            Bosch、MRAM-cfg =<0x0 0 0 16 0 0 1 1>;

 

                            DEVICE-STATE-GPIO = GPIO_MD3 上的<&gpmd 3 GPIOc_ACTIVE_HIGH>;// CAN_PWR_EN

                            DEVICE-WAKE_GPIO =<&GPMA 17 GPIO_ACTIVE_HIGH>;// GPIO_MA17 上的 CAN3_WKRQ

                            Reset-GPIOs =<&GPMA 18 GPIO_ACTIVE_LOW>; // GPIO_MA18 上的 CAN3_RST

                            

                            Interrupt-parent =<&GPMA>;

                            中断=<19 IRQ_TYPE_LEVEL_LOW>;//GPIO_MA19             CAN3_INT

                            

                            // Kevin 添加

                            Clocks =<&clk_peri peri_GPSB0>;

                            时钟名称=“cclk";“;

 他们会看到下面的日志  

[0.440891]   tcan4x5x spi0.0:m_can CREL=0x00000000、rel=0、step=0

[0.447003]   tcan4x5x spi0.0:不受支持的 M_can 版本:预期 rel=3.x、got rel=0、step=0

[   0.455367] tcan4x5x spi0.0:不支持的版本号: 0

以上日志消息是否表示设备未开机?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 PYTsai:

    这可能意味着它们遇到某种错误、SPI 驱动程序与 TCAN4550 所需的协议格式不匹配、导致无法读取正确的值。

    我建议他们验证 SPI 通信信号、并确保其符合数据表中概述的格式和时序要求。

    此致、

    Jonathan