<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[V851S  SPI2 死机]]></title><description><![CDATA[<p dir="auto">板子的设备树默认没有 SPI2，设备树里 仿照SPI3配置了一下，内核里的sun8iw21p1.dtsi 也需要配置，<br />
spi2也是仿照写的，注册地址，和中断不知道怎么写合适<br />
按图配置远行 SPI2时 死机!<br />
请各位同好 指点</p>
<p dir="auto"><img src="/assets/uploads/files/1698203786028-%E6%97%A0%E6%A0%87%E9%A2%98.png" alt="无标题.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://bbs.aw-ol.com/topic/4492/v851s-spi2-死机</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 07:09:52 GMT</lastBuildDate><atom:link href="https://bbs.aw-ol.com/topic/4492.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Oct 2023 03:16:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to V851S  SPI2 死机 on Fri, 27 Oct 2023 03:52:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/3341">@email10000</a> 这个是软件配置问题了，接收spi信息超时</p>
]]></description><link>https://bbs.aw-ol.com/post/19460</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/19460</guid><dc:creator><![CDATA[awwwwa]]></dc:creator><pubDate>Fri, 27 Oct 2023 03:52:10 GMT</pubDate></item><item><title><![CDATA[Reply to V851S  SPI2 死机 on Fri, 27 Oct 2023 03:22:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/1915">@awwwwa</a> <img src="/assets/uploads/files/1698376920391-5dd89691-6bb5-46da-9ed0-ef86c8403d4b-image.png" alt="5dd89691-6bb5-46da-9ed0-ef86c8403d4b-image.png" class=" img-responsive img-markdown" width="777" height="111" /><br />
还是不行</p>
]]></description><link>https://bbs.aw-ol.com/post/19457</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/19457</guid><dc:creator><![CDATA[email10000]]></dc:creator><pubDate>Fri, 27 Oct 2023 03:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to V851S  SPI2 死机 on Wed, 25 Oct 2023 03:39:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://bbs.aw-ol.com/uid/1915">@awwwwa</a> 666，真是来帮大忙了</p>
]]></description><link>https://bbs.aw-ol.com/post/19407</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/19407</guid><dc:creator><![CDATA[xjy_5]]></dc:creator><pubDate>Wed, 25 Oct 2023 03:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to V851S  SPI2 死机 on Wed, 25 Oct 2023 03:36:14 GMT]]></title><description><![CDATA[<p dir="auto">对照手册：</p>
<ul>
<li>
<p dir="auto">SPI2 地址 0x04027000， 没问题<br />
<img src="/assets/uploads/files/1698204599608-0f2f1b97-2298-4112-923a-c25db5428943-image.png" alt="0f2f1b97-2298-4112-923a-c25db5428943-image.png" class=" img-responsive img-markdown" width="914" height="162" /></p>
</li>
<li>
<p dir="auto">SPI2 中断号 49，配置时需要减掉SIG和PPI的数量32，也就是17<br />
<img src="/assets/uploads/files/1698204887705-eeb6838d-b14f-441f-870b-badb6672796a-lqlpjxe-6sonlpdm2s0b87b4x1hs1fjttauq12ehl88a_499_218.png" alt="eeb6838d-b14f-441f-870b-badb6672796a-lQLPJxe-6SonLpDM2s0B87B4X1hs1FJTtAUq12ehL88A_499_218.png" class=" img-responsive img-markdown" width="499" height="218" /></p>
</li>
</ul>
<p dir="auto">中断号配置错误，应该为17不是18</p>
<pre><code>		spi2: spi@04027000 {
			#address-cells = &lt;1&gt;;
			#size-cells = &lt;0&gt;;
			compatible = "allwinner,sun8i-spi";
			device_type = "spi2";
			reg = &lt;0x0 0x04027000 0x0 0x1000&gt;;
			interrupts = &lt;GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH&gt;;
			clocks = &lt;&amp;clk_pll_periph0300m&gt;, &lt;&amp;clk_spi2&gt;;
			status = "disabled";
		};
</code></pre>
]]></description><link>https://bbs.aw-ol.com/post/19404</link><guid isPermaLink="true">https://bbs.aw-ol.com/post/19404</guid><dc:creator><![CDATA[awwwwa]]></dc:creator><pubDate>Wed, 25 Oct 2023 03:36:14 GMT</pubDate></item></channel></rss>