You can do this with the zephyr,user devicetree node : https://docs.zephyrproject.org/latest/build/dts/zephyr-user-node.html#devices