TI中文支持网
TI专业的中文技术问题搜集分享网站

TCAN4550-Q1: tcan4550的dts配置以及mram能分享下吗

Part Number:TCAN4550-Q1

调试tacan4550从linux5.14上获取到驱动代码,缺少dts的配置和mram的配置能分享下做参考吗?

Kailyn Chen:

您好,TCAN4x5x的driver 下载如下:

https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_接口_gitweb

另外,以下是Device Tree Bindings for the TCAN4x5x driver 。您看是否能解决您的问题?

Texas Instruments TCAN4x5x CAN Controller
================================================This file provides device node information for the TCAN4x5x interface contains.Required properties:- compatible: "ti,tcan4x5x"- reg: 0- #address-cells: 1- #size-cells: 0- spi-max-frequency: Maximum frequency of the SPI bus the chip canoperate at should be less than or equal to 18 MHz.- interrupt-parent: the phandle to the interrupt controller which providesthe interrupt.- interrupts: interrupt specification for data-ready.See Documentation/devicetree/bindings/net/can/bosch,m_can.yaml for additional
required property details.Optional properties:- reset-gpios: Hardwired output GPIO. If not defined then softwarereset.- device-state-gpios: Input GPIO that indicates if the device is ina sleep state or if the device is active.- device-wake-gpios: Wake up GPIO to wake up the TCAN device.Example:
tcan4x5x: tcan4x5x@0 {compatible = "ti,tcan4x5x";reg = <0>;#address-cells = <1>;#size-cells = <1>;spi-max-frequency = <10000000>;bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;interrupt-parent = <&gpio1>;interrupts = <14 IRQ_TYPE_LEVEL_LOW>;device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
};

,

zhang jinxin:

您好,

请问,这份驱动里面把https://e2echina.ti.com/support/interface/f/interface-forum/188533/tcan4550-linux-driver里面提到的问题解决了吗?这份驱动和内核5.14版本上的有些差距,并且5.14版本里面也没有解决https://e2echina.ti.com/support/interface/f/interface-forum/188533/tcan4550-linux-driver上面提到的问题,能否给我一份解决这些问题的驱动

,

zhang jinxin:

你好

请问,这份驱动里面把https://e2echina.ti.com/support/interface/f/interface-forum/188533/tcan4550-linux-driver里面提到的问题解决了吗?这份驱动和内核5.14版本上的有些差距,并且5.14版本里面也没有解决https://e2echina.ti.com/support/interface/f/interface-forum/188533/tcan4550-linux-driver上面提到的问题,能否给我一份解决这些问题的驱动

,

Kailyn Chen:

您好,因为Linux driver不是我们自己开发的,所以对于Linux driver的问题,可能我这边只能帮您找一下是否有您需要的,我看了下没有5.14内核驱动,

只有5.4内核的:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/can/m_can

下面这几份参考不知对您是否有所帮助,因为对于Linux drvier的问题,我们的支持有限,给您带来不便非常抱歉。

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

https://git.ti.com/gitweb/?p=ti-analog-linux-kernel/dmurphy-analog.git;a=blob;f=drivers/net/can/m_can/tcan4x5x.c;h=411502c3c98ed1df3b6036bb98deacaa7ec156be;hb=7f5ee781af9e8214ccd13755181e1e827af4ff50&cm_session

赞(0)
未经允许不得转载:TI中文支持网 » TCAN4550-Q1: tcan4550的dts配置以及mram能分享下吗
分享到: 更多 (0)