<?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>topic Re: spidev: spidev listed directly in DT in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/1412566#M186930</link>
    <description>&lt;P&gt;For me just "spidev" wasn't enough ! i added "brand,spidev" , that did the job!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your solution!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 17:10:34 GMT</pubDate>
    <dc:creator>SicScar</dc:creator>
    <dc:date>2022-02-11T17:10:34Z</dc:date>
    <item>
      <title>spidev: spidev listed directly in DT</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426379#M64607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I work with custom board on iMX287 CPU and linux-fscl 4.1.3.&lt;/P&gt;&lt;P&gt;Board have slave SPI device, I describe it in dt-file:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14413495620214829 jive_text_macro" data-renderedposition="71_8_1232_128" jivemacro_uid="_14413495620214829"&gt;&lt;P&gt;ssp2: ssp@80014000 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dm631@0 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "spidev";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi-max-frequency = &amp;lt;10000000&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;After booting I found follow message in linux log:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.087049] spidev spi1.1: buggy DT: spidev listed directly in DT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.093503] ------------[ cut here ]------------&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.098231] WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:730 spidev_probe+0x184/0x1c8()&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.106572] Modules linked in:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.109723] CPU: 0 PID: 1 Comm: swapper Not tainted 4.1.3+ #1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[&lt;/TD&gt;&lt;TD&gt;1.115623] Hardware name: Freescale MXS (Device Tree)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For fix this message I modify spidev_dt_ids in driver/spi/spidev.c and change compatible string in dt-file.&lt;/P&gt;&lt;P&gt;After this boot log is clear, but I think my method is not very correct.&lt;/P&gt;&lt;P&gt;How can solve this problem without modify driver/spi/spidev.c? Now I see one way - write driver for device, may be I have another way?&lt;/P&gt;&lt;P&gt;Thank you and excuse my bad english.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 06:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426379#M64607</guid>
      <dc:creator>BrilliantovKiri</dc:creator>
      <dc:date>2015-09-04T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: spidev: spidev listed directly in DT</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426380#M64608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value behind the @ must match the reg value. But i'm not sure if this fixes the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 09:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426380#M64608</guid>
      <dc:creator>lategoodbye</dc:creator>
      <dc:date>2015-09-04T09:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: spidev: spidev listed directly in DT</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426381#M64609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone stumbling on this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error occurs because you have entered "spidev" in your compatible string. The dts should describe specific hardware, and "spidev" isn't sufficient. The warning occurs because the compatible string doesn't exist in the driver its of_device_id struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can solve this in two ways. The correct way is to add a compatible string to spidev_dt_ids after drivers/spi/spidev.c:709, but you'll have to find out which string to use instead of "spidev". This is usually in the format "brand,product". Then use this string as compatible string in your device tree and the warning doesn't occur any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fastest is to add "spidev" to the spidev_dt_ids after drivers/spi/spidev.c:709&lt;BR /&gt;{ compatible = "spidev" },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional reading:&lt;BR /&gt;&lt;A href="https://github.com/raspberrypi/linux/issues/1054"&gt;https://github.com/raspberrypi/linux/issues/1054&lt;/A&gt;&lt;BR /&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree" title="https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree"&gt;spi - Linux, spidev: why it shouldn't be directly in devicetree? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Off topic:&lt;BR /&gt;It doesn't matter if your node is called dm631@0, dm631@1 of even dm631@derp since it's only the name of the node. It doesn't have to match your register. However, for debugging purposes, it is comes in handy to do so. I don't remember if it's a naming convention or something, tho.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 10:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426381#M64609</guid>
      <dc:creator>timgruijters</dc:creator>
      <dc:date>2019-02-15T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: spidev: spidev listed directly in DT</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426382#M64610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also for spidev example one can look on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx28-tx28.dts?h=imx_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx28-tx28.dts?h=imx_4.1.15_2.0.0_ga"&gt;imx28-tx28.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 01:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/426382#M64610</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-02-19T01:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: spidev: spidev listed directly in DT</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/1412566#M186930</link>
      <description>&lt;P&gt;For me just "spidev" wasn't enough ! i added "brand,spidev" , that did the job!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your solution!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:10:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/spidev-spidev-listed-directly-in-DT/m-p/1412566#M186930</guid>
      <dc:creator>SicScar</dc:creator>
      <dc:date>2022-02-11T17:10:34Z</dc:date>
    </item>
  </channel>
</rss>

