I spun off the circuitdojo_feather_nrf9151_ns_2.overlay file into my project, and put it under a board folder:
Looks like this now:
&i2c2 {
sts4x: sts4x@44 {
compatible = "sensirion,sts4x";
reg = <0x44>;
repeatability = <2>;
};
};
npm1300_regulators: regulators {
compatible = "nordic,npm1300-regulator";
npm1300_buck1: BUCK1 {
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <3300000>;
regulator-init-microvolt = <3300000>;
startup-delay-us = <2000>;
regulator-always-on;
};
npm1300_buck2: BUCK2 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};
But building a configuration for it, yields an error:
-- Found devicetree overlay: src/spidevice/spidevice.overlay
devicetree error: ./src/spidevice/spidevice.overlay:1 (column 1): parse error: expected '/' or label reference (&foo)
CMake Error at C:/nrf_workspace/mydevice/zephyr/cmake/modules/dts.cmake:305 (execute_process):
execute_process failed command indexes:
1: "Child return code: 1"
Call Stack (most recent call first):
C:/nrf_workspace/mydevice/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
C:/nrf_workspace/mydevice/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/nrf_workspace/mydevice/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: mydevice
Location: C:/nrf_workspace/mydevice/nfed/mydevice
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:21 (include)
C:/nrf_workspace/mydevice/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/nrf_workspace/mydevice/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/nrf_workspace/mydevice/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "C:/nrf_workspace/mydevice/nfed/mydevice/build/CMakeFiles/CMakeOutput.log".
←[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-Bc:\nrf_workspace\mydevice\nfed\mydevice\build' -GNinja -DBOARD=circuitdojo_feather_nrf9151@1/nrf9151/ns -DCONF_FILE=prj.conf -DEXTRA_DTC_OVERLAY_FILE=src/spidevice/spidevice.overlay '-SC:\nrf_workspace\mydevice\zephyr\share\sysbuild' '-DAPP_DIR
:PATH=c:\nrf_workspace\mydevice\nfed\mydevice'
←[0m
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
Sorry, but what am I doing wrong here?