<!-- **Notes** Github Discussions (https://github.com/zephyrproject-rtos/zephyr/discussions) are available to first verify that the issue is a genuine Zephyr bug and not a consequence of Zephyr services misuse. This issue list is only for bugs in the main Zephyr code base (https://github.com/zephyrproject-rtos/zephyr/). If the bug is for a project fork (such as NCS) specific feature, please open an issue in the fork project instead. --> **Describe the bug** <!-- A clear and concise description of what the bug is. Please also mention any information which could help others to understand the problem you're facing: - What target platform are you using? - What have you tried to diagnose or workaround this issue? - Is this a regression? If yes, have you been able to "git bisect" it to a specific commit? - ... --> CONFIG_DEVICE_DT_METADATA=y not tested with usespace enabled. **To Reproduce** <!-- Steps to reproduce the behavior: 1. mkdir build; cd build 2. cmake -DBOARD=board\_xyz 3. make 4. See error --> **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Impact** <!-- What impact does this issue have on your progress (e.g., annoyance, showstopper) --> **Logs and console output** <!-- If applicable, add console logs or other types of debug information e.g Wireshark capture or Logic analyzer capture (upload in zip archive). copy-and-paste text and put a code fence (\`\`\`) before and after, to help explain the issue. (if unable to obtain text log, add a screenshot) --> **Environment (please complete the following information):** - OS: (e.g. Linux, MacOS, Windows) - Toolchain (e.g Zephyr SDK, ...) - Commit SHA or Version used **Additional context** <!-- Add any other context that could be relevant to your issue, such as pin setting, target configuration, ... -->