summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVdragon <mail@massdriver.space>2025-11-20 21:01:20 +0100
committerDamien George <damien@micropython.org>2025-11-26 23:40:08 +1100
commitbd111ccd4b4932ea94ba7c66007840cb88e3b4a7 (patch)
treecc2f7eb567436f5d6bc59be2f826e1d54cb5a9be
parentd5ad2cdcca3e94e4d1822dbedc2c3f42057a6ce4 (diff)
zephyr: Allow a custom dts.
Allows using custom DTS things such as bindings. Signed-off-by: Vdragon <mail@massdriver.space>
-rw-r--r--ports/zephyr/CMakeLists.txt2
-rw-r--r--ports/zephyr/dts/bindings/vendor-prefixes.txt15
2 files changed, 17 insertions, 0 deletions
diff --git a/ports/zephyr/CMakeLists.txt b/ports/zephyr/CMakeLists.txt
index 9db0a95c6..cf35ba73d 100644
--- a/ports/zephyr/CMakeLists.txt
+++ b/ports/zephyr/CMakeLists.txt
@@ -35,6 +35,8 @@ string(TOUPPER ZEPHYR_${BOARD} MICROPY_BOARD)
include(${MICROPY_DIR}/py/py.cmake)
include(${MICROPY_DIR}/extmod/extmod.cmake)
+list(APPEND DTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/dts)
+
if (CONFIG_MICROPY_FROZEN_MODULES)
cmake_path(ABSOLUTE_PATH CONFIG_MICROPY_FROZEN_MANIFEST BASE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
set(MICROPY_FROZEN_MANIFEST ${CONFIG_MICROPY_FROZEN_MANIFEST})
diff --git a/ports/zephyr/dts/bindings/vendor-prefixes.txt b/ports/zephyr/dts/bindings/vendor-prefixes.txt
new file mode 100644
index 000000000..f2dc741d9
--- /dev/null
+++ b/ports/zephyr/dts/bindings/vendor-prefixes.txt
@@ -0,0 +1,15 @@
+# Device tree binding vendor prefix registry. Keep this list in
+# alphabetical order.
+#
+# This isn't an exhaustive list, but you should add new prefixes to it
+# before using them to avoid name-space collisions.
+#
+# The contents of this file are parsed during documentation generation.
+# Anything that starts with a '#' is treated as a comment and ignored.
+# Non-empty lines should be in this format:
+#
+# <vendor-prefix><TAB><Full name of vendor>
+
+# zephyr-keep-sorted-start
+micropython MicroPython Project
+# zephyr-keep-sorted-stop