<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div>As promised, Cal has prepared an example spidev board file:</div><div><br></div><div><a href="https://github.com/MinnowBoard/minnow-max-extras/blob/master/modules/low-speed-spidev/low-speed-spidev.c">https://github.com/MinnowBoard/minnow-max-extras/blob/master/modules/low-speed-spidev/low-speed-spidev.c</a></div><div><br></div><div>This one was written for the MinnowBoard-Max, and was tested using a python ioctl interface with a mcp3204 ADC attached on chip select 0.</div><div><br></div><div>For use on any other board - such as the MinnowBoard v1, be sure to check which bus number and which chip select line you are using. Those are the only things you should have to change, and Cal made those easily changed via the #define statements.</div><div><br></div><div>It should be noted that none of this is particularly Minnow-specific, this is just an example Linux spidev board file.</div><div><br></div><div>Ultimately we want to do things like this without board files by using the _DSD mechanisms introduced by the ACPI 5.1 specification last week. Once the supporting code is upstream, we will provide examples of how to go about that as well, eliminating the need for the board file entirely.</div><div><br></div><div><div>-- </div><div>Darren Hart<span class="Apple-tab-span" style="white-space:pre"> </span>Open Source Technology Center</div><div>darren.hart@intel.com<span class="Apple-tab-span" style="white-space:pre"> </span> Intel Corporation</div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Darren Hart <<a href="mailto:dvhart@linux.intel.com">dvhart@linux.intel.com</a>><br><span style="font-weight:bold">Date: </span> Monday, August 4, 2014 at 12:47<br><span style="font-weight:bold">To: </span> Joel Whitehouse <<a href="mailto:joelw@softronicsltd.com">joelw@softronicsltd.com</a>>, MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [MinnowBoard] SPI support on minnowboard v1<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div><div><div>We will provide an example spidev board file that you can work from. We'll announce here when it is available (should be this week).</div><div><br></div><div><div>-- </div><div>Darren Hart<span class="Apple-tab-span" style="white-space:pre"> </span>Open Source Technology Center</div><div><a href="mailto:darren.hart@intel.com">darren.hart@intel.com</a><span class="Apple-tab-span" style="white-space:pre"> </span> Intel Corporation</div></div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Joel Whitehouse <<a href="mailto:joelw@softronicsltd.com">joelw@softronicsltd.com</a>><br><span style="font-weight:bold">Reply-To: </span> Joel Whitehouse <<a href="mailto:joelw@softronicsltd.com">joelw@softronicsltd.com</a>>, MinnowBoard Development and Community Discussion <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold">Date: </span> Monday, August 4, 2014 at 12:31<br><span style="font-weight:bold">To: </span> "<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>" <<a href="mailto:elinux-minnowboard@lists.elinux.org">elinux-minnowboard@lists.elinux.org</a>><br><span style="font-weight:bold">Subject: </span> [MinnowBoard] SPI support on minnowboard v1<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div class="" style="">My company is incorporating the minnowboard v1 into a product. We need to get SPI working before a customer deadline.</div><div class="" style=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">We have some working python-spidev code that's been tested on another board. We can't get it running on the minnow (using the stock angstrom image) because there are no spidev devices in /dev/, even after<span style="background-color: transparent;" class=""> running `modprobe spidev'. I have seen the calamari code, but there are no instructions for converting that into an
actual </span><span style="font-size: 10pt;" class="">/dev/spidev1.0 type device.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">Has anyone got a spi device working on the v1? How can we request support for this feature?</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
sans-serif; background-color: transparent; font-style: normal;" class="">Thanks!</div><div class="" style=""><span style="background-color: transparent; font-size: 10pt;" class=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">--</span></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">Joel Whitehouse</span></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">Softronics Ltd.</span></div><div class="" style=""><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;" class=""><i class="" style=""><span style="color:black;" class="">ISO 9001:2008 Certified</span></i></span></div><div class="" style=""><span style="font-family:Courier New, courier, monaco, monospace, sans-serif;" class=""><span class="" id="lw_1355413954_0" style="">1080 East Post Road, Marion, Iowa, 52302 USA</span></span></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">Tel. +1.319.447.1446</span></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">Fax +1.866.422.4280</span></div><div class="" style=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class="">Email <a rel="nofollow" class="" style="" href=""><span id="lw_1355413954_1" class="" style="">joelw@softronicsltd.com</span></a></span></div><div style="color:rgb(0, 0,
255);font-size:13px;background-color:transparent;font-style:normal;" class=""><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;" class=""><span style="color:rgb(0, 0, 0);" class="">Website</span> <a rel="nofollow" target="_blank" href="http://www.softronicsltd.com/" class="" style=""><span class="" id="lw_1355413954_2" style="">www.softronicsltd.com</span></a></span></div></div></div></div>_______________________________________________
elinux-MinnowBoard mailing list
<a href="mailto:elinux-MinnowBoard@lists.elinux.org">elinux-MinnowBoard@lists.elinux.org</a><a href="http://lists.elinux.org/mailman/listinfo/elinux-minnowboard">http://lists.elinux.org/mailman/listinfo/elinux-minnowboard</a></blockquote></span></div></div></blockquote></span></body></html>