调试tacan4550从linux5.14上获取到驱动代码,缺少dts的配置和mram的配置能分享下做参考吗?
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.
您好,TCAN4x5x的driver 下载如下:
另外,以下是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 can operate at should be less than or equal to 18 MHz. - interrupt-parent: the phandle to the interrupt controller which provides the 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 software reset. - device-state-gpios: Input GPIO that indicates if the device is in a 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>; };
您好,
请问,这份驱动里面把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上面提到的问题,能否给我一份解决这些问题的驱动
你好
请问,这份驱动里面把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上面提到的问题,能否给我一份解决这些问题的驱动
您好,因为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