<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sample mcp23s17 driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64024/sample-mcp23s17-driver</link><description>Hello, I&amp;#39;quiet new in Zephyr. 
 So tell me if I&amp;#39;m wrong. 
 I would like to test driver mcp23s17 present on zephyr. 
 I&amp;#39;ve add in .overlay file 
 
 
 And now I want to initialize my driver in main file 
 
 I&amp;#39;ve also add in prj.conf 
 
 
 the DT_LABEL is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2020 16:32:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64024/sample-mcp23s17-driver" /><item><title>RE: Sample mcp23s17 driver</title><link>https://devzone.nordicsemi.com/thread/271863?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 16:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ca0e15-c014-473f-935b-dc37177c70ec</guid><dc:creator>trug</dc:creator><description>&lt;p&gt;Hi Thomas&lt;/p&gt;
&lt;p&gt;Can you help me with the mcp23s17 driver?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66454/zephyr-customboard-with-nrf52840-and-mcp23s17"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66454/zephyr-customboard-with-nrf52840-and-mcp23s17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I really don&amp;#39;t know how to bind the device in the main.c&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Dominique&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sample mcp23s17 driver</title><link>https://devzone.nordicsemi.com/thread/261197?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 12:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17dbc8e0-e6d5-419c-a239-3b22b2fe880c</guid><dc:creator>thomas oggier</dc:creator><description>&lt;p&gt;I found the way:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
    label=&amp;quot;SPI3&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    sck-pin = &amp;lt;2&amp;gt;;
    mosi-pin = &amp;lt;3&amp;gt;;
    miso-pin = &amp;lt;4&amp;gt;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 5 0&amp;gt;;

    myspidevice: gpio@0 {
    	label=&amp;quot;mcp23s08&amp;quot;;
        compatible=&amp;quot;microchip,mcp23s17&amp;quot;;
        gpio-controller;
        #gpio-cells = &amp;lt;2&amp;gt;;
        spi-max-frequency = &amp;lt;800000&amp;gt;;
        reg = &amp;lt;0&amp;gt;;
		ngpios = &amp;lt;16&amp;gt;;
    };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the line 11 (compatible) is used to found the yaml file that we can found in zephyr/dts/bindings/gpio&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>