<?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>Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77528/missing-binding-for-out-of-tree-driver</link><description>I have an out-of-tree driver. It has an I2C that is working but also GPIO that are only working with compatible = &amp;quot;gpio-leds&amp;quot; but not with the driver compatible = &amp;quot;st,vl53lx&amp;quot;. 
 
 The project is on git. See NRFconnect_out-of-tree_example 
 The root error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Aug 2021 12:48:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77528/missing-binding-for-out-of-tree-driver" /><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/327425?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 12:48:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccad9f79-dec4-4e3d-b332-37a0abd18652</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;There is a additional repository that is much simpler than the&amp;nbsp;&lt;a href="https://github.com/dev889/NRFconnect_out-of-tree_example.git" rel="noopener noreferrer" target="_blank"&gt;NRFconnect_out-of-tree_example&lt;/a&gt;&amp;nbsp;but shows the same problem. See&amp;nbsp;&lt;a href="https://github.com/dev889/NordicDTSgpioExample"&gt;NordicDTSgpioExample&lt;/a&gt;. Read the README.rst to build.&lt;/p&gt;
&lt;p&gt;Change to&amp;nbsp;&lt;em&gt;compatible&amp;nbsp;=&amp;nbsp;&amp;quot;valve&amp;quot;&lt;/em&gt; in the overlay file to generate the error.&lt;/p&gt;
&lt;p&gt;Finally the problem is solved:&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The valve.yaml has to be placed (out-of-tree-project)\dts\bindings&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Another improvement is not to use a costume board but define&amp;nbsp;&lt;strong&gt;nrf52dk_nrf52832.overlay&lt;/strong&gt; and compile with&amp;nbsp;&lt;em&gt;west build -p -b nrf52dk_nrf52832 --build-dir build. &lt;/em&gt;The&amp;nbsp;nrf52dk_nrf52832.overlay is placed in&lt;em&gt;&lt;span&gt;&amp;nbsp;&lt;strong&gt;(out-of-tree-project)\boards&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/326985?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 11:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b6df9b-d32b-4a92-8e68-522f69381b20</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;The issue is still open and need an answer. So I made some additional tests.&lt;/p&gt;
&lt;p&gt;My custom boards is still out of tree in ./boards/arm/&lt;span&gt;test_nrf52832&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I copied the&amp;nbsp;gpio-leds.yaml and placed a valve.yaml in the same directory.&lt;/p&gt;
&lt;p&gt;/dts-v1/;&lt;br /&gt;#include &amp;lt;nordic/nrf52832_qfaa.dtsi&amp;gt;&lt;br /&gt;#include &amp;lt;dt-bindings/gpio/gpio.h&amp;gt;&lt;/p&gt;
&lt;p&gt;/ {&lt;/p&gt;
&lt;p&gt;model = &amp;quot;Some readable text&amp;quot;;&lt;br /&gt; compatible = &amp;quot;test,test_nrf52832,nordic&amp;quot;;&lt;/p&gt;
&lt;p&gt;.... only part of the &lt;span&gt;test_nrf52832.&lt;/span&gt;dts file&lt;/p&gt;
&lt;p&gt;led {&lt;br /&gt;&amp;nbsp; &amp;nbsp; compatible = &amp;quot;gpio-leds&amp;quot;; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port06: _P06 {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;Signal LED&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gpios = &amp;lt;&amp;amp;gpio0 6 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; };&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;valve {&lt;br /&gt;&amp;nbsp; &amp;nbsp;//compatible = &amp;quot;gpio-leds&amp;quot;; // HACK that works&lt;br /&gt;&amp;nbsp; &amp;nbsp;compatible = &amp;quot;valve&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;port020: _P020 {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;Valve auf&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gpios = &amp;lt;&amp;amp;gpio0 20 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp;};&lt;br /&gt;&amp;nbsp; &amp;nbsp;port08: _P08 {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &amp;quot;Valve zu&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp;};&lt;/p&gt;
&lt;p&gt;aliases {&lt;br /&gt;&amp;nbsp; &amp;nbsp; auf = &amp;amp;port020;&lt;br /&gt;&amp;nbsp; &amp;nbsp; zu = &amp;amp;port08;&lt;br /&gt;&amp;nbsp; &amp;nbsp; signal-led = &amp;amp;port06;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;The error I get seems to be in divicetree_unfixed.h. I suspect the&amp;nbsp;&lt;span&gt;&lt;strong&gt;gpio0&lt;/strong&gt; that is defined in the&amp;nbsp;nrf52832.dtsi is not linked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;comparing the signal-led and the &amp;quot;Valve zu&amp;quot; the gpio0 part is not generated:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/* Generic property macros: */&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_EXISTS 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_PH DT_N_S_soc_S_gpio_50000000&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_VAL_pin 6&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_VAL_pin_EXISTS 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_VAL_flags 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#99cc00;"&gt;#define DT_N_S_led_S__p06_P_gpios_IDX_0_VAL_flags_EXISTS 1&lt;/span&gt;&lt;br /&gt;#define DT_N_S_led_S__p06_P_gpios_LEN 1&lt;br /&gt;#define DT_N_S_led_S__p06_P_gpios_EXISTS 1&lt;br /&gt;#define DT_N_S_led_S__p06_P_label &amp;quot;Signal LED&amp;quot;&lt;br /&gt;#define DT_N_S_led_S__p06_P_label_EXISTS 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/* Generic property macros: */&lt;br /&gt;#define DT_N_S_valve_P_compatible {&amp;quot;valve&amp;quot;}&lt;br /&gt;#define DT_N_S_valve_P_&lt;span style="color:#ff0000;"&gt;compatible_IDX_0 &amp;quot;valve&amp;quot;&lt;/span&gt;&lt;br /&gt;#define DT_N_S_valve_P_compatible_IDX_0_EXISTS 1&lt;br /&gt;#define DT_N_S_valve_P_compatible_LEN 1&lt;br /&gt;#define DT_N_S_valve_P_compatible_EXISTS 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any idea what is missing so that the valve binding is incomplete.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/324882?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 14:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8abb9aa0-e76e-448f-905d-239b3e9a6a1c</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;Sorry for the delay. Holidays are over now and I am at work again.&lt;/p&gt;
&lt;p&gt;Please see the content of the buildall.bat below. The path that have to be modified for your installations are in blue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for help&lt;/p&gt;
&lt;p&gt;&lt;em&gt;cls&lt;/em&gt;&lt;br /&gt;&lt;em&gt;@echo off&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;&lt;em&gt;set GNUARMEMB_TOOLCHAIN_PATH=C:/Users/yourName/ncs/v1.5.1/toolchain/opt/bin&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb&lt;/em&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&lt;em&gt;set ZEPHYR_BASE=C:\Users\yourName\ncs\v1.5.1\zephyr&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&lt;em&gt;set JLINK_ROOT=&amp;quot;C:\Program Files (x86)\SEGGER\JLink&amp;quot;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;set DEVICE=nrf52832&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set JLINK_SERIAL=960084090&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set GDB_PORT_NUMBER=2331&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set JLINKGDBSERVER=%JLINK_ROOT%/GDBServer&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;set BOARD=tece_filo_bt_nrf52810&lt;/em&gt;&lt;br /&gt;&lt;em&gt;set BUILDDIR=build-%BOARD%&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;echo %GNUARMEMB_TOOLCHAIN_PATH%&lt;/em&gt;&lt;br /&gt;&lt;em&gt;echo %ZEPHYR_BASE%&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;west build -p -b test_bt_nrf52832 --build-dir build&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/321651?ContentTypeID=1</link><pubDate>Sun, 25 Jul 2021 13:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99a2424-bdd6-4de9-919b-603c47fc6eb1</guid><dc:creator>Hakon</dc:creator><description>[quote user="AndreasM"]The buildall.bat can be used for build with WEST but some paths have to be changed for your local installation.[/quote]
&lt;p&gt;&amp;nbsp;Where can I find buildall.bat? What are you referring to specifically by &amp;quot;some paths&amp;quot;? Is there anything else I need to know before I try to build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/321246?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 07:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a97325-02a8-481f-825b-47144d8d4ac6</guid><dc:creator>AndreasM</dc:creator><description>&lt;p&gt;I build to&amp;nbsp;test_bt_nrf52832. It is a copy of&amp;nbsp;nrf52dk_nrf52832 with some modifications for the TOF sensor.&lt;/p&gt;
&lt;p&gt;The buildall.bat can be used for build with WEST but some paths have to be changed for your local installation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing binding for out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/320719?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 13:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c17726d-3f05-4498-80dc-b544100dd5cd</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;what NCS tag is this? What board are you building for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>