<?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>Compatible for two version of a ST7735R driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107202/compatible-for-two-version-of-a-st7735r-driver</link><description>Good day everyone, 
 I am working on implementing a ST7735R LED display together with a nRF51840. In Zephyr a driver for the ST7735R and a compatible already exist. I added the device into the overlay as below using SPI. Here i have used the &amp;quot;sitronix</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jan 2024 09:12:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107202/compatible-for-two-version-of-a-st7735r-driver" /><item><title>RE: Compatible for two version of a ST7735R driver</title><link>https://devzone.nordicsemi.com/thread/463476?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 09:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621c0c57-78d4-47fa-a869-b781b096bc84</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can think of compatible as &amp;quot;use this driver&amp;quot;, so you are effectively&amp;nbsp;trying to include both drivers,&amp;nbsp;which will cause conflict. So that will not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compatible for two version of a ST7735R driver</title><link>https://devzone.nordicsemi.com/thread/463156?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 13:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af11eb65-b6ff-40e4-a9df-8f0f5a955dc8</guid><dc:creator>Trymme</dc:creator><description>&lt;p&gt;Thank you for you answer Einar.&lt;/p&gt;
&lt;p&gt;I already have different naming conventions so this should not be an issue.&lt;/p&gt;
&lt;p&gt;I solved the issues by adjusting config includes in the prj.conf.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To add my driver i added the Kconfig CONFIG_BM_ST7735R=y (different name than the Zephyr driver CONFIG_ST7735R ). &lt;/p&gt;
&lt;p&gt;However, to use it i also needed to add the Kconfig CONFIG_DISPLAY=y. And after looking into this Kconfig i found out that when i set this to yes, it implicitly include CONFIG_ST7735R=y by default, which result in duplicates. Therefore, to remove the include of the Zephyr driver i had to explicitly remove the driver by adding CONFIG_ST7735R=n to the prj.conf.&lt;/p&gt;
&lt;p&gt;Therefore, for it too function correctly i had these configuration:&lt;/p&gt;
&lt;p&gt;CONFIG_BM_ST7735R=y&lt;/p&gt;
&lt;p&gt;CONFIG_DISPLAY=y&lt;/p&gt;
&lt;p&gt;CONFIG_ST7735R=n&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It would still be interesting to understand why i could not use 1 compatible for two drivers, with both driver included. What made the compiler believe that these where duplicates when the only link between them was that they shared the same compatible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compatible for two version of a ST7735R driver</title><link>https://devzone.nordicsemi.com/thread/463141?ContentTypeID=1</link><pubDate>Mon, 08 Jan 2024 12:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f39f8f0-8b15-4539-961c-92865b408fab</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you name your driver something else, to avoid conflict (then refer to the device by the new name you use for your driver to use it).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>