<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Processor Expert SoftwareのトピックRe: Enabling TCAN4x5x</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Enabling-TCAN4x5x/m-p/1702838#M5690</link>
    <description>&lt;P&gt;I am also getting same error, but i am doing dts change for imx6ul.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;root@imx6ul:~# dmesg | grep "tcan"&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.162594] tcan4x5x spi0.0: no clock found&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.167263] tcan4x5x spi0.0: no CAN clock source defined&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.410935] tcan4x5x spi0.0: Unsupported version number:&amp;nbsp; 0&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.417023] tcan4x5x spi0.0: Probe failed, err=-22&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.425333] tcan4x5x: probe of spi0.0 failed with error -22&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the error caused due to absence of clock configuration in dts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clocks {&lt;/P&gt;&lt;P&gt;hclk: clock@4 {&lt;BR /&gt;compatible = "fixed-clock";&lt;BR /&gt;reg = &amp;lt;3&amp;gt;;&lt;BR /&gt;#clock-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;40000000&amp;gt;;&lt;BR /&gt;clock-output-names = "hclk";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;cclk: clock@5 {&lt;BR /&gt;compatible = "fixed-clock";&lt;BR /&gt;reg = &amp;lt;3&amp;gt;;&lt;BR /&gt;#clock-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;40000000&amp;gt;;&lt;BR /&gt;clock-output-names = "cclk";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;But not able to solve below errors:&lt;/P&gt;&lt;P&gt;root@imx6ul:~# dmesg | grep -i "tcan"&lt;BR /&gt;[ 9.625906] tcan4x5x spi0.0: Unsupported version number: 0&lt;BR /&gt;[ 9.631985] tcan4x5x spi0.0: Probe failed, err=-22&lt;BR /&gt;[ 9.639763] tcan4x5x: probe of spi0.0 failed with error -22&lt;/P&gt;&lt;P&gt;Whether you found the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you or anyone got the solution, please share with us. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 18:01:00 GMT</pubDate>
    <dc:creator>SGDev</dc:creator>
    <dc:date>2023-08-10T18:01:00Z</dc:date>
    <item>
      <title>Enabling TCAN4x5x</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Enabling-TCAN4x5x/m-p/1593945#M5448</link>
      <description>&lt;P&gt;Hi folks,&lt;BR /&gt;I'm trying to enable can device on my embedded platform based on iMX8 and YOCTO.To do that I would use the kernel driver already present i the distro (TCAN4x5x).&lt;BR /&gt;I've modified the *.dts file adding&lt;/P&gt;&lt;P&gt;+&amp;amp;ecspi2 { /* CAN */&lt;BR /&gt;+ pinctrl-names = "default";&lt;BR /&gt;+ pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;BR /&gt;+ status = "okay";&lt;BR /&gt;+&lt;BR /&gt;+ tcan4x5x: tcan4x5x@0 {&lt;BR /&gt;+ compatible = "ti,tcan4x5x";&lt;BR /&gt;+ reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;+ #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;+ #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;+ spi-max-frequency = &amp;lt;10000000&amp;gt;;&lt;BR /&gt;+ bosch,mram-cfg = &amp;lt;0x0 0 0 16 0 0 1 1&amp;gt;;&lt;BR /&gt;+ interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;BR /&gt;+ interrupts = &amp;lt;14 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;BR /&gt;+ device-state-gpios = &amp;lt;&amp;amp;gpio3 21 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;+ device-wake-gpios = &amp;lt;&amp;amp;gpio1 15 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;+ reset-gpios = &amp;lt;&amp;amp;gpio1 27 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+};&lt;/P&gt;&lt;P&gt;+ pinctrl_ecspi2: ecspi2grp {&lt;BR /&gt;+ fsl,pins = &amp;lt;&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x116&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x116&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x116&lt;BR /&gt;+ MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x1916&lt;BR /&gt;+ &amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;In according to the documentations present in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/net/can/tcan4x5x.txt?h=linux-5.10.y" target="_self"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/net/can/tcan4x5x.txt?h=linux-5.10.y&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and&lt;BR /&gt;+CONFIG_CAN_M_CAN=m&lt;BR /&gt;+CONFIG_CAN_M_CAN_TCAN4X5X=m&lt;BR /&gt;to enable the driver into the kernel, patching "defconfig" file&lt;BR /&gt;Now the dmesg command shows :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dmsg.png" style="width: 533px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/209730i966DDF7759950354/image-size/large?v=v2&amp;amp;px=999" role="button" title="dmsg.png" alt="dmsg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;so in not clear what I've forgotten in *.dts&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 12:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Enabling-TCAN4x5x/m-p/1593945#M5448</guid>
      <dc:creator>Ratataplam</dc:creator>
      <dc:date>2023-02-06T12:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling TCAN4x5x</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Enabling-TCAN4x5x/m-p/1702838#M5690</link>
      <description>&lt;P&gt;I am also getting same error, but i am doing dts change for imx6ul.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;root@imx6ul:~# dmesg | grep "tcan"&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.162594] tcan4x5x spi0.0: no clock found&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.167263] tcan4x5x spi0.0: no CAN clock source defined&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.410935] tcan4x5x spi0.0: Unsupported version number:&amp;nbsp; 0&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.417023] tcan4x5x spi0.0: Probe failed, err=-22&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.425333] tcan4x5x: probe of spi0.0 failed with error -22&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved the error caused due to absence of clock configuration in dts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clocks {&lt;/P&gt;&lt;P&gt;hclk: clock@4 {&lt;BR /&gt;compatible = "fixed-clock";&lt;BR /&gt;reg = &amp;lt;3&amp;gt;;&lt;BR /&gt;#clock-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;40000000&amp;gt;;&lt;BR /&gt;clock-output-names = "hclk";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;cclk: clock@5 {&lt;BR /&gt;compatible = "fixed-clock";&lt;BR /&gt;reg = &amp;lt;3&amp;gt;;&lt;BR /&gt;#clock-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;40000000&amp;gt;;&lt;BR /&gt;clock-output-names = "cclk";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;But not able to solve below errors:&lt;/P&gt;&lt;P&gt;root@imx6ul:~# dmesg | grep -i "tcan"&lt;BR /&gt;[ 9.625906] tcan4x5x spi0.0: Unsupported version number: 0&lt;BR /&gt;[ 9.631985] tcan4x5x spi0.0: Probe failed, err=-22&lt;BR /&gt;[ 9.639763] tcan4x5x: probe of spi0.0 failed with error -22&lt;/P&gt;&lt;P&gt;Whether you found the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you or anyone got the solution, please share with us. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 18:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Enabling-TCAN4x5x/m-p/1702838#M5690</guid>
      <dc:creator>SGDev</dc:creator>
      <dc:date>2023-08-10T18:01:00Z</dc:date>
    </item>
  </channel>
</rss>

